diff options
| author | Jiri Pirko <jiri@mellanox.com> | 2018-05-18 03:29:00 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-05-19 16:30:39 -0400 |
| commit | b9ffcbaf56d3040efee64d3818688083c29b2a44 (patch) | |
| tree | b9ecd9e63e51be84e5050ba94b754de9ea9050a8 /include/uapi/linux | |
| parent | eb38401c779d350e9e31396471ea072fa29aec9b (diff) | |
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')
| -rw-r--r-- | include/uapi/linux/devlink.h | 3 |
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 { | |||
| 224 | DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_ID, /* u64 */ | 224 | DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_ID, /* u64 */ |
| 225 | DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_UNITS,/* u64 */ | 225 | DEVLINK_ATTR_DPIPE_TABLE_RESOURCE_UNITS,/* u64 */ |
| 226 | 226 | ||
| 227 | DEVLINK_ATTR_PORT_NUMBER, /* u32 */ | ||
| 228 | DEVLINK_ATTR_PORT_SPLIT_SUBPORT_NUMBER, /* u32 */ | ||
| 229 | |||
| 227 | /* add new attributes above here, update the policy in devlink.c */ | 230 | /* add new attributes above here, update the policy in devlink.c */ |
| 228 | 231 | ||
| 229 | __DEVLINK_ATTR_MAX, | 232 | __DEVLINK_ATTR_MAX, |
