This patch will print some more information when doing ifconfig bat0 up & down
please report the output.
Signed-off-by: Antonio Quartulli ordex@autistici.org --- soft-interface.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/soft-interface.c b/soft-interface.c index d018c49..7876476 100644 --- a/soft-interface.c +++ b/soft-interface.c @@ -525,6 +525,9 @@ static int batadv_interface_add_vid(struct net_device *dev, __be16 proto,
vid |= BATADV_VLAN_HAS_TAG;
+ printk("batadv_add_vid(): creating vlan %s %d\n", dev->name, + BATADV_PRINT_VID(vid)); + return batadv_softif_create_vlan(bat_priv, vid); }
@@ -551,9 +554,14 @@ static int batadv_interface_kill_vid(struct net_device *dev, __be16 proto, if (proto != htons(ETH_P_8021Q)) return -EINVAL;
+ printk("batadv_kill_vid(): %s %d\n", dev->name, + BATADV_PRINT_VID(vid | BATADV_VLAN_HAS_TAG)); + vlan = batadv_softif_vlan_get(bat_priv, vid | BATADV_VLAN_HAS_TAG); - if (!vlan) + if (!vlan) { + printk("batadv_kill_vid(): couldn't find vlan to kill\n"); return -ENOENT; + }
batadv_softif_destroy_vlan(bat_priv, vlan);