summaryrefslogtreecommitdiff
path: root/drivers/ipoe/ipoe.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-08-10 18:33:31 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-08-10 18:33:31 +0400
commit892f7b726b5b7fadc9d565b2e3d22566be346d60 (patch)
tree48fc137171f94ed7d931267be1d1df9076a2c67c /drivers/ipoe/ipoe.c
parentacacb1907f3f24589763abebcf4546949d0cccc5 (diff)
downloadaccel-ppp-xebd-892f7b726b5b7fadc9d565b2e3d22566be346d60.tar.gz
accel-ppp-xebd-892f7b726b5b7fadc9d565b2e3d22566be346d60.zip
ipoe: set dev->tx_queue_len=100
Diffstat (limited to 'drivers/ipoe/ipoe.c')
-rw-r--r--drivers/ipoe/ipoe.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c
index 9db9d8c..b396866 100644
--- a/drivers/ipoe/ipoe.c
+++ b/drivers/ipoe/ipoe.c
@@ -26,6 +26,7 @@
#include <net/flow.h>
#include <net/net_namespace.h>
#include <net/netns/generic.h>
+#include <net/pkt_sched.h>
#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();