aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2011-04-17 14:39:07 -0400
committerSven Eckelmann <sven@narfation.org>2011-04-17 15:11:02 -0400
commitaf20b710479ae662829cf739b521390daa7fcbcb (patch)
tree270732ac1ca5381c192c55925038271d6d2661f4 /net
parentba85fac28005a59e6e03fdb13918fc6f6e69a3ca (diff)
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 Lüssing <linus.luessing@web.de> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net')
-rw-r--r--net/batman-adv/soft-interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c
index ad6da4c7ddb5..58ce4400d581 100644
--- a/net/batman-adv/soft-interface.c
+++ b/net/batman-adv/soft-interface.c
@@ -584,6 +584,7 @@ static void interface_setup(struct net_device *dev)
584 dev->hard_start_xmit = interface_tx; 584 dev->hard_start_xmit = interface_tx;
585#endif 585#endif
586 dev->destructor = free_netdev; 586 dev->destructor = free_netdev;
587 dev->tx_queue_len = 0;
587 588
588 /** 589 /**
589 * can't call min_mtu, because the needed variables 590 * can't call min_mtu, because the needed variables