From 892f7b726b5b7fadc9d565b2e3d22566be346d60 Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Fri, 10 Aug 2012 18:33:31 +0400 Subject: ipoe: set dev->tx_queue_len=100 --- drivers/ipoe/ipoe.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c index 9db9d8c1..b3968669 100644 --- a/drivers/ipoe/ipoe.c +++ b/drivers/ipoe/ipoe.c @@ -26,6 +26,7 @@ #include #include #include +#include #include "ipoe.h" @@ -348,6 +349,8 @@ static netdev_tx_t ipoe_xmit(struct sk_buff *skb, struct net_device *dev) if (!ses->peer_addr) goto drop; + skb->tc_verd = SET_TC_NCLS(0); + noff = skb_network_offset(skb); if (skb->protocol == htons(ETH_P_IP)) { @@ -718,6 +721,8 @@ static unsigned int ipt_in_hook(unsigned int hook, struct sk_buff *skb, const st cb_ptr = skb1->cb + sizeof(skb1->cb) - 2; *(__u16 *)cb_ptr = IPOE_MAGIC; + skb1->tc_verd = SET_TC_NCLS(0); + netif_rx(skb1); #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,35) @@ -939,6 +944,8 @@ static int ipoe_create(__be32 peer_addr, __be32 addr, const char *link_ifname, c IPV4_DEVCONF(in_dev->cnf, RP_FILTER) = 1; } + dev->tx_queue_len = 100; + rtnl_lock(); r = register_netdevice(dev); rtnl_unlock(); -- cgit v1.2.3