Skip to contentSkip to conversation

batman-adv: Add extack to ndo_add_slave

RFC New Sven Eckelmann 1 participant 2 messages Oct 7, 2017 Batman advanced

lore
Share & tools
lore

Sven Eckelmann

author maintainer
#0 lore raw

RFC 1/2 batman-adv: Add extack to ndo_add_slave

From: David Ahern <[email protected]>

Pass extack to do_set_master and down to ndo_add_slave

---
This change is already part of net-next (queued up for 4.15) we must therefore apply it after the compat code was added.

 net/batman-adv/soft-interface.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
net/batman-adv/soft-interface.c +2 -1
index 3af4b0b2..543d2c3e 100644
@@ -867,7 +867,8 @@ static int batadv_softif_init_late(struct net_device *dev)
  * Return: 0 if successful or error otherwise.
  */
 static int batadv_softif_slave_add(struct net_device *dev,
-				   struct net_device *slave_dev)
+				   struct net_device *slave_dev,
+				   struct netlink_ext_ack *extack)
 {
 	struct batadv_hard_iface *hard_iface;
 	struct net *net = dev_net(dev);
Signature · 1 line
2.11.0
author maintainer
#1 lore raw

RFC 2/2 batman-adv: Add extack to upper device linking

From: David Ahern <[email protected]>

Add extack arg to netdev_upper_dev_link and netdev_master_upper_dev_link

---
This change is already part of net-next (queued up for 4.15) we must therefore apply it after the compat code was added.

 net/batman-adv/hard-interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/batman-adv/hard-interface.c +1 -1
index d4aa99c0..4e3d5340 100644
@@ -738,7 +738,7 @@ int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface,
 	bat_priv = netdev_priv(hard_iface->soft_iface);
 
 	ret = netdev_master_upper_dev_link(hard_iface->net_dev,
-					   soft_iface, NULL, NULL);
+					   soft_iface, NULL, NULL, NULL);
 	if (ret)
 		goto err_dev;
 
Signature · 1 line
2.11.0