The following commit has been merged in the master branch: commit a2f8a49168d145e30f12523badfaaea32207ddf4 Author: Andrew Lunn andrew@lunn.ch Date: Mon Mar 21 21:31:44 2011 +0100
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: Andrew Lunn andrew@lunn.ch Tested-by: Linus Luesing linus.luessing@web.de
diff --git a/soft-interface.c b/soft-interface.c index cdc165e..599b668 100644 --- a/soft-interface.c +++ b/soft-interface.c @@ -584,6 +584,7 @@ static void interface_setup(struct net_device *dev) dev->hard_start_xmit = interface_tx; #endif dev->destructor = free_netdev; + dev->tx_queue_len = 0;
/** * can't call min_mtu, because the needed variables