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. Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
2d8dc5bbf4
commit
56dc7cd0a8
@@ -221,6 +221,8 @@ enum devlink_attr {
|
||||
DEVLINK_ATTR_RESOURCE_SIZE_GRAN, /* u64 */
|
||||
DEVLINK_ATTR_RESOURCE_UNIT, /* u8 */
|
||||
DEVLINK_ATTR_RESOURCE_OCC, /* u64 */
|
||||
DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_ID, /* u64 */
|
||||
DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_UNITS,/* u64 */
|
||||
|
||||
/* add new attributes above here, update the policy in devlink.c */
|
||||
|
||||
|
Reference in New Issue
Block a user