History

devlink: Add support for region get command

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

Alex Vesker committed 8 years ago

Commit d8db7ea1 parent d7e52722 files · +120 −0Browse files

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

Unified · Split

include/uapi/linux/devlink.h+6−0
@@ -83,6 +83,9 @@ enum devlink_command { · 82 unmodified lines
83 DEVLINK_CMD_PARAM_NEW,83 DEVLINK_CMD_PARAM_NEW,
84 DEVLINK_CMD_PARAM_DEL,84 DEVLINK_CMD_PARAM_DEL,
85 85
86 DEVLINK_CMD_REGION_GET,
87 DEVLINK_CMD_REGION_SET,
88
86 /* add new commands above here */89 /* add new commands above here */
87 __DEVLINK_CMD_MAX,90 __DEVLINK_CMD_MAX,
88 DEVLINK_CMD_MAX = __DEVLINK_CMD_MAX - 191 DEVLINK_CMD_MAX = __DEVLINK_CMD_MAX - 1
@@ -262,6 +265,9 @@ enum devlink_attr { · 173 unmodified lines
262 DEVLINK_ATTR_PARAM_VALUE_DATA, /* dynamic */265 DEVLINK_ATTR_PARAM_VALUE_DATA, /* dynamic */
263 DEVLINK_ATTR_PARAM_VALUE_CMODE, /* u8 */266 DEVLINK_ATTR_PARAM_VALUE_CMODE, /* u8 */
264 267
268 DEVLINK_ATTR_REGION_NAME, /* string */
269 DEVLINK_ATTR_REGION_SIZE, /* u64 */
270
265 /* add new attributes above here, update the policy in devlink.c */271 /* add new attributes above here, update the policy in devlink.c */
266 272
267 __DEVLINK_ATTR_MAX,273 __DEVLINK_ATTR_MAX,