]> git.hungrycats.org Git - linux/commitdiff
[NET]: Do not forget to initialize tx_queue_len in tunneling drivers.
authorDavid S. Miller <davem@nuts.davemloft.net>
Wed, 11 Feb 2004 16:03:13 +0000 (08:03 -0800)
committerDavid S. Miller <davem@nuts.davemloft.net>
Wed, 11 Feb 2004 16:03:13 +0000 (08:03 -0800)
net/ipv4/ip_gre.c
net/ipv4/ipip.c
net/ipv6/sit.c

index e33f1cd2812b27f289004b4e3b63bdac89ea8014..2ec2c7ffb9deba9f8117036cd043be752aad3115 100644 (file)
@@ -276,6 +276,7 @@ static struct ip_tunnel * ipgre_tunnel_locate(struct ip_tunnel_parm *parms, int
          return NULL;
 
        dev->init = ipgre_tunnel_init;
+       dev->tx_queue_len = 1;
        nt = dev->priv;
        nt->parms = *parms;
 
@@ -1269,6 +1270,7 @@ int __init ipgre_init(void)
        }
 
        ipgre_fb_tunnel_dev->init = ipgre_fb_tunnel_init;
+       ipgre_fb_tunnel_dev->tx_queue_len = 1;
 
        if ((err = register_netdev(ipgre_fb_tunnel_dev)))
                goto fail;
index 0b7e4b21bdfe5935ddd865c26b57f5c906148976..d2553fd3855666633ae5798eaacb9fcb4999ebd4 100644 (file)
@@ -246,6 +246,7 @@ static struct ip_tunnel * ipip_tunnel_locate(struct ip_tunnel_parm *parms, int c
        nt = dev->priv;
        SET_MODULE_OWNER(dev);
        dev->init = ipip_tunnel_init;
+       dev->tx_queue_len = 1;
        dev->destructor = free_netdev;
        nt->parms = *parms;
 
@@ -892,6 +893,7 @@ int __init ipip_init(void)
        }
 
        ipip_fb_tunnel_dev->init = ipip_fb_tunnel_init;
+       ipip_fb_tunnel_dev->tx_queue_len = 1;
 
        if ((err = register_netdev(ipip_fb_tunnel_dev)))
            goto fail;
index 13c993e164ab9006e7ae2ba7235ed120ac36cbbd..58598d6d3e09aa9184bd83175d872c21bbfe288a 100644 (file)
@@ -184,6 +184,7 @@ static struct ip_tunnel * ipip6_tunnel_locate(struct ip_tunnel_parm *parms, int
 
        nt = dev->priv;
        dev->init = ipip6_tunnel_init;
+       dev->tx_queue_len = 1;
        nt->parms = *parms;
 
        if (register_netdevice(dev) < 0) {
@@ -832,6 +833,7 @@ int __init sit_init(void)
        }
 
        ipip6_fb_tunnel_dev->init = ipip6_fb_tunnel_init;
+       ipip6_fb_tunnel_dev->tx_queue_len = 1;
 
        if ((err =  register_netdev(ipip6_fb_tunnel_dev)))
                goto fail;