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.
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -80,6 +80,8 @@ enum devlink_command { · 79 unmodified lines | |||
| 80 | 80 | ||
| 81 | DEVLINK_CMD_PARAM_GET, /* can dump */ | 81 | DEVLINK_CMD_PARAM_GET, /* can dump */ |
| 82 | DEVLINK_CMD_PARAM_SET, | 82 | DEVLINK_CMD_PARAM_SET, |
| 83 | DEVLINK_CMD_PARAM_NEW, | ||
| 84 | DEVLINK_CMD_PARAM_DEL, | ||
| 83 | 85 | ||
| 84 | /* add new commands above here */ | 86 | /* add new commands above here */ |
| 85 | __DEVLINK_CMD_MAX, | 87 | __DEVLINK_CMD_MAX, |