Przeglądaj źródła

macvlan: convert to use IFF_NO_QUEUE

Use IFF_NO_QUEUE to indicate that a device can run without a qdisc.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Zhang Shengju 9 lat temu
rodzic
commit
7009212b15
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      drivers/net/macvlan.c

+ 1 - 1
drivers/net/macvlan.c

@@ -1069,7 +1069,7 @@ EXPORT_SYMBOL_GPL(macvlan_common_setup);
 static void macvlan_setup(struct net_device *dev)
 static void macvlan_setup(struct net_device *dev)
 {
 {
 	macvlan_common_setup(dev);
 	macvlan_common_setup(dev);
-	dev->tx_queue_len	= 0;
+	dev->priv_flags |= IFF_NO_QUEUE;
 }
 }
 
 
 static int macvlan_port_create(struct net_device *dev)
 static int macvlan_port_create(struct net_device *dev)