Skip to content

Commit e65db2b

Browse files
Phil Sutterdavem330
authored andcommitted
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>
1 parent ed961ac commit e65db2b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/net/loopback.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,9 @@ static void loopback_setup(struct net_device *dev)
165165
dev->mtu = 64 * 1024;
166166
dev->hard_header_len = ETH_HLEN; /* 14 */
167167
dev->addr_len = ETH_ALEN; /* 6 */
168-
dev->tx_queue_len = 0;
169168
dev->type = ARPHRD_LOOPBACK; /* 0x0001*/
170169
dev->flags = IFF_LOOPBACK;
171-
dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
170+
dev->priv_flags |= IFF_LIVE_ADDR_CHANGE | IFF_NO_QUEUE;
172171
netif_keep_dst(dev);
173172
dev->hw_features = NETIF_F_ALL_TSO | NETIF_F_UFO;
174173
dev->features = NETIF_F_SG | NETIF_F_FRAGLIST

0 commit comments

Comments
 (0)