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.
Showing the changes to include/uapi/linux (1 of 8 files). Show all
Unified · Split
| @@ -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, |