mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-07-04 00:03:25 -04:00
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:
parent
2d8dc5bbf4
commit
56dc7cd0a8
3 changed files with 56 additions and 0 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue