summaryrefslogtreecommitdiff
path: root/net/batman-adv/netlink.c
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2018-11-23 18:07:12 +0300
committerSimon Wunderlich <sw@simonwunderlich.de>2019-02-09 16:28:15 +0300
commit7e6f461efe2554e35b740f3faea2994fc9551947 (patch)
tree5296a62240edac69b4877e3d9f55c26fde294cff /net/batman-adv/netlink.c
parent9a182242f17c06fad620663e6fdf992e97661e66 (diff)
downloadlinux-7e6f461efe2554e35b740f3faea2994fc9551947.tar.xz
batman-adv: Trigger genl notification on sysfs config change
The generic netlink code is expected to trigger notification messages when configuration might have been changed. But the configuration of batman-adv is most of the time still done using sysfs. So the sysfs interface should also trigger the corresponding netlink messages via the "config" multicast group. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/netlink.c')
-rw-r--r--net/batman-adv/netlink.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/batman-adv/netlink.c b/net/batman-adv/netlink.c
index 476b4c6017c9..67a58da2e6a0 100644
--- a/net/batman-adv/netlink.c
+++ b/net/batman-adv/netlink.c
@@ -385,7 +385,7 @@ nla_put_failure:
*
* Return: 0 on success, < 0 on error
*/
-static int batadv_netlink_notify_mesh(struct batadv_priv *bat_priv)
+int batadv_netlink_notify_mesh(struct batadv_priv *bat_priv)
{
struct sk_buff *msg;
int ret;
@@ -852,8 +852,8 @@ nla_put_failure:
*
* Return: 0 on success, < 0 on error
*/
-static int batadv_netlink_notify_hardif(struct batadv_priv *bat_priv,
- struct batadv_hard_iface *hard_iface)
+int batadv_netlink_notify_hardif(struct batadv_priv *bat_priv,
+ struct batadv_hard_iface *hard_iface)
{
struct sk_buff *msg;
int ret;
@@ -1057,8 +1057,8 @@ nla_put_failure:
*
* Return: 0 on success, < 0 on error
*/
-static int batadv_netlink_notify_vlan(struct batadv_priv *bat_priv,
- struct batadv_softif_vlan *vlan)
+int batadv_netlink_notify_vlan(struct batadv_priv *bat_priv,
+ struct batadv_softif_vlan *vlan)
{
struct sk_buff *msg;
int ret;