summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/devlink.h
diff options
context:
space:
mode:
authorArkadi Sharshevsky2018-01-15 08:59:05 +0100
committerDavid S. Miller2018-01-16 20:15:34 +0100
commit56dc7cd0a87a1ff4f49ee1e67bd88e768385d51a (patch)
tree2140397e0976eeadf51f9881ca456e852e081ad7 /include/uapi/linux/devlink.h
parentdevlink: Add support for reload (diff)
downloadkernel-qcow2-linux-56dc7cd0a87a1ff4f49ee1e67bd88e768385d51a.tar.gz
kernel-qcow2-linux-56dc7cd0a87a1ff4f49ee1e67bd88e768385d51a.tar.xz
kernel-qcow2-linux-56dc7cd0a87a1ff4f49ee1e67bd88e768385d51a.zip
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>
Diffstat (limited to 'include/uapi/linux/devlink.h')
-rw-r--r--include/uapi/linux/devlink.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 555ddcaf0be2..1df65a4c2044 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux/devlink.h
@@ -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 */