History

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.

Jiri Pirko committed 8 years ago

Commit b9ffcba1 parent eb384018 files · +64 −25Browse files

Showing the changes to include/uapi/linux (1 of 8 files). Show all

Unified · Split

include/uapi/linux/devlink.h+3−0
@@ -224,6 +224,9 @@ enum devlink_attr { · 223 unmodified lines
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,