diff options
author | Phil Sutter <phil@nwl.cc> | 2015-08-18 10:30:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-18 20:55:05 +0200 |
commit | e65db2b724a2758ede002cb995bee1470f805b1a (patch) | |
tree | 1ef7667d179329b0d8d98da441171e3ac9f5bf61 /drivers/net/loopback.c | |
parent | net: geneve: convert to using IFF_NO_QUEUE (diff) | |
download | linux-e65db2b724a2758ede002cb995bee1470f805b1a.tar.xz linux-e65db2b724a2758ede002cb995bee1470f805b1a.zip |
net: loopback: convert to using IFF_NO_QUEUE
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/loopback.c')
-rw-r--r-- | drivers/net/loopback.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/loopback.c b/drivers/net/loopback.c index c76283c2f84a..dc7d970bd1c0 100644 --- a/drivers/net/loopback.c +++ b/drivers/net/loopback.c @@ -165,10 +165,9 @@ static void loopback_setup(struct net_device *dev) dev->mtu = 64 * 1024; dev->hard_header_len = ETH_HLEN; /* 14 */ dev->addr_len = ETH_ALEN; /* 6 */ - dev->tx_queue_len = 0; dev->type = ARPHRD_LOOPBACK; /* 0x0001*/ dev->flags = IFF_LOOPBACK; - dev->priv_flags |= IFF_LIVE_ADDR_CHANGE; + dev->priv_flags |= IFF_LIVE_ADDR_CHANGE | IFF_NO_QUEUE; netif_keep_dst(dev); dev->hw_features = NETIF_F_ALL_TSO | NETIF_F_UFO; dev->features = NETIF_F_SG | NETIF_F_FRAGLIST |