[ovs-dev] [PATCH 3/8] gre: Disable tx queue.

Jesse Gross jesse at nicira.com
Thu Mar 4 18:22:08 UTC 2010


GRE is a software device that processes packets synchronously and
doesn't need a queue.  Currently we are using the default for
Ethernet devices but that is unnecessary.
---
 datapath/linux-2.6/compat-2.6/ip_gre.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/datapath/linux-2.6/compat-2.6/ip_gre.c b/datapath/linux-2.6/compat-2.6/ip_gre.c
index d39dfb0..f5a8600 100644
--- a/datapath/linux-2.6/compat-2.6/ip_gre.c
+++ b/datapath/linux-2.6/compat-2.6/ip_gre.c
@@ -1586,6 +1586,7 @@ static void ipgre_tap_setup(struct net_device *dev)
 
 	dev->iflink		= 0;
 	dev->features		|= NETIF_F_NETNS_LOCAL;
+	dev->tx_queue_len	= 0;
 
 	SET_ETHTOOL_OPS(dev, &ethtool_ops);
 }
-- 
1.6.3.3





More information about the dev mailing list