History

devlink: Add relation between dpipe and resource

The hardware processes which are modeled via dpipe commonly use some internal hardware resources. Such relation can improve the understanding of hardware limitations. The number of resource's unit consumed per table's entry are also provided for each table.

Arkadi Sharshevsky committed 8 years ago

Commit 56dc7cd1 parent 2d8dc5b3 files · +56 −0Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/devlink.h+2−0
@@ -221,6 +221,8 @@ enum devlink_attr { · 220 unmodified lines
221 DEVLINK_ATTR_RESOURCE_SIZE_GRAN, /* u64 */221 DEVLINK_ATTR_RESOURCE_SIZE_GRAN, /* u64 */
222 DEVLINK_ATTR_RESOURCE_UNIT, /* u8 */222 DEVLINK_ATTR_RESOURCE_UNIT, /* u8 */
223 DEVLINK_ATTR_RESOURCE_OCC, /* u64 */223 DEVLINK_ATTR_RESOURCE_OCC, /* u64 */
224 DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_ID, /* u64 */
225 DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_UNITS,/* u64 */
224 226
225 /* add new attributes above here, update the policy in devlink.c */227 /* add new attributes above here, update the policy in devlink.c */
226 228