summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/devlink.h
diff options
context:
space:
mode:
authorJiri Pirko2018-05-18 09:29:00 +0200
committerDavid S. Miller2018-05-19 22:30:39 +0200
commitb9ffcbaf56d3040efee64d3818688083c29b2a44 (patch)
treeb9ecd9e63e51be84e5050ba94b754de9ea9050a8 /include/uapi/linux/devlink.h
parentnet: stmmac: Populate missing callbacks in HWIF initialization (diff)
downloadkernel-qcow2-linux-b9ffcbaf56d3040efee64d3818688083c29b2a44.tar.gz
kernel-qcow2-linux-b9ffcbaf56d3040efee64d3818688083c29b2a44.tar.xz
kernel-qcow2-linux-b9ffcbaf56d3040efee64d3818688083c29b2a44.zip
devlink: introduce devlink_port_attrs_set
Change existing setter for split port information into more generic attrs setter. Alongside with that, allow to set port number and subport number for split ports. 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index 1df65a4c2044..15b031a5ee7a 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux/devlink.h
@@ -224,6 +224,9 @@ enum devlink_attr {
DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_ID, /* u64 */
DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_UNITS,/* u64 */
+ DEVLINK_ATTR_PORT_NUMBER, /* u32 */
+ DEVLINK_ATTR_PORT_SPLIT_SUBPORT_NUMBER, /* u32 */
+
/* add new attributes above here, update the policy in devlink.c */
__DEVLINK_ATTR_MAX,