devlink: Add devlink notifications support for params
authorMoshe Shemesh <moshe@mellanox.com>
Wed, 4 Jul 2018 11:30:32 +0000 (14:30 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jul 2018 10:58:35 +0000 (19:58 +0900)
commitea601e17098856ee059f35c2a75659e57df81f25
treee284ad51c121344f1dbf3dde8ed7ca64841b3143
parentec01aeb1803eaaf0d006e7b07b5ddb5e429c38a4
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>
include/net/devlink.h
include/uapi/linux/devlink.h
net/core/devlink.c