summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/devlink.h
diff options
context:
space:
mode:
authorMoshe Shemesh2018-07-04 13:30:32 +0200
committerDavid S. Miller2018-07-05 12:58:35 +0200
commitea601e17098856ee059f35c2a75659e57df81f25 (patch)
treee284ad51c121344f1dbf3dde8ed7ca64841b3143 /include/uapi/linux/devlink.h
parentdevlink: Add support for get/set driverinit value (diff)
downloadkernel-qcow2-linux-ea601e17098856ee059f35c2a75659e57df81f25.tar.gz
kernel-qcow2-linux-ea601e17098856ee059f35c2a75659e57df81f25.tar.xz
kernel-qcow2-linux-ea601e17098856ee059f35c2a75659e57df81f25.zip
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. Signed-off-by: Moshe Shemesh <moshe@mellanox.com> Signed-off-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h
index ea0623e568f0..68641fb56654 100644
--- a/include/uapi/linux/devlink.h
+++ b/include/uapi/linux/devlink.h
@@ -80,6 +80,8 @@ enum devlink_command {
DEVLINK_CMD_PARAM_GET, /* can dump */
DEVLINK_CMD_PARAM_SET,
+ DEVLINK_CMD_PARAM_NEW,
+ DEVLINK_CMD_PARAM_DEL,
/* add new commands above here */
__DEVLINK_CMD_MAX,