Add support for DEVLINK_CMD_REGION_GET command which is used for querying for the supported DEV/REGION values of devlink devices. The support is both for doit and dumpit. Reply includes: BUS_NAME, DEVICE_NAME, REGION_NAME, REGION_SIZE
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -83,6 +83,9 @@ enum devlink_command { · 82 unmodified lines | ||
| 83 | 83 | DEVLINK_CMD_PARAM_NEW, |
| 84 | 84 | DEVLINK_CMD_PARAM_DEL, |
| 85 | 85 | |
| 86 | + DEVLINK_CMD_REGION_GET, | |
| 87 | + DEVLINK_CMD_REGION_SET, | |
| 88 | + | |
| 86 | 89 | /* add new commands above here */ |
| 87 | 90 | __DEVLINK_CMD_MAX, |
| 88 | 91 | DEVLINK_CMD_MAX = __DEVLINK_CMD_MAX - 1 |
| @@ -262,6 +265,9 @@ enum devlink_attr { · 173 unmodified lines | ||
| 262 | 265 | DEVLINK_ATTR_PARAM_VALUE_DATA, /* dynamic */ |
| 263 | 266 | DEVLINK_ATTR_PARAM_VALUE_CMODE, /* u8 */ |
| 264 | 267 | |
| 268 | + DEVLINK_ATTR_REGION_NAME, /* string */ | |
| 269 | + DEVLINK_ATTR_REGION_SIZE, /* u64 */ | |
| 270 | + | |
| 265 | 271 | /* add new attributes above here, update the policy in devlink.c */ |
| 266 | 272 | |
| 267 | 273 | __DEVLINK_ATTR_MAX, |