Commit af20b710 authored by Andrew Lunn's avatar Andrew Lunn Committed by Sven Eckelmann

batman-adv: Set the txqueuelen to zero when creating soft interface

Like other virtual interfaces, e.g. br0, we don't need a transmit
queue. Packets should only be queued on real interfaces which are
underneath. In practice this patch makes little difference since the
virtual interfaces can accept packets as fast as they come, but the
patch will avoid bufferbloat questions to the mailling lists in the
future.
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Tested-by: default avatarLinus Lüssing <linus.luessing@web.de>
Signed-off-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
parent ba85fac2
...@@ -584,6 +584,7 @@ static void interface_setup(struct net_device *dev) ...@@ -584,6 +584,7 @@ static void interface_setup(struct net_device *dev)
dev->hard_start_xmit = interface_tx; dev->hard_start_xmit = interface_tx;
#endif #endif
dev->destructor = free_netdev; dev->destructor = free_netdev;
dev->tx_queue_len = 0;
/** /**
* can't call min_mtu, because the needed variables * can't call min_mtu, because the needed variables
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment