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
8383 DEVLINK_CMD_PARAM_NEW,
8484 DEVLINK_CMD_PARAM_DEL,
8585
86+ DEVLINK_CMD_REGION_GET,
87+ DEVLINK_CMD_REGION_SET,
88+
8689 /* add new commands above here */
8790 __DEVLINK_CMD_MAX,
8891 DEVLINK_CMD_MAX = __DEVLINK_CMD_MAX - 1
@@ -262,6 +265,9 @@ enum devlink_attr { · 173 unmodified lines
262265 DEVLINK_ATTR_PARAM_VALUE_DATA, /* dynamic */
263266 DEVLINK_ATTR_PARAM_VALUE_CMODE, /* u8 */
264267
268+ DEVLINK_ATTR_REGION_NAME, /* string */
269+ DEVLINK_ATTR_REGION_SIZE, /* u64 */
270+
265271 /* add new attributes above here, update the policy in devlink.c */
266272
267273 __DEVLINK_ATTR_MAX,