History

devlink: Add devlink notifications support for params

Add devlink_param_notify() function to support devlink param notifications. Add notification call to devlink param set, register and unregister functions. Add devlink_param_value_changed() function to enable the driver notify devlink on value change. Driver should use this function after value was changed on any configuration mode part to driverinit.

Moshe Shemesh committed 8 years ago

Commit ea601e11 parent ec01aeb3 files · +59 −0Browse files

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

Unified · Split

include/uapi/linux/devlink.h+2−0
@@ -80,6 +80,8 @@ enum devlink_command { · 79 unmodified lines
8080
8181 DEVLINK_CMD_PARAM_GET, /* can dump */
8282 DEVLINK_CMD_PARAM_SET,
83+ DEVLINK_CMD_PARAM_NEW,
84+ DEVLINK_CMD_PARAM_DEL,
8385
8486 /* add new commands above here */
8587 __DEVLINK_CMD_MAX,