diff options
| author | Vasundhara Volam <vasundhara-v.volam@broadcom.com> | 2019-01-28 07:30:25 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-01-30 01:13:09 -0500 |
| commit | c1e5786d6771c67fe044c3bcaa23e631e0503261 (patch) | |
| tree | dee489f045746e24f0abc96ef8d0f9703aa61685 /include/uapi/linux/devlink.h | |
| parent | 5473a7bdad78f2efe8ee508e8c7bbb762896e78f (diff) | |
devlink: Add devlink notifications support for port params
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()
Cc: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/devlink.h')
| -rw-r--r-- | include/uapi/linux/devlink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h index 3658fb20b190..61b4447a6c5b 100644 --- a/include/uapi/linux/devlink.h +++ b/include/uapi/linux/devlink.h | |||
| @@ -91,6 +91,8 @@ enum devlink_command { | |||
| 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, |
