Add notification call for devlink port param set, register and unregister functions. Add devlink_port_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. v7->v8: Order devlink_port_param_value_changed() definitions followed by devlink_param_value_changed()
Showing the changes to include/uapi/linux (1 of 3 files). Show all
Unified · Split
| @@ -91,6 +91,8 @@ enum devlink_command { · 90 unmodified lines | |||
| 91 | 91 | ||
| 92 | DEVLINK_CMD_PORT_PARAM_GET, /* can dump */ | 92 | DEVLINK_CMD_PORT_PARAM_GET, /* can dump */ |
| 93 | DEVLINK_CMD_PORT_PARAM_SET, | 93 | DEVLINK_CMD_PORT_PARAM_SET, |
| 94 | DEVLINK_CMD_PORT_PARAM_NEW, | ||
| 95 | DEVLINK_CMD_PORT_PARAM_DEL, | ||
| 94 | 96 | ||
| 95 | /* add new commands above here */ | 97 | /* add new commands above here */ |
| 96 | __DEVLINK_CMD_MAX, | 98 | __DEVLINK_CMD_MAX, |