Commit 7009212b authored by Zhang Shengju's avatar Zhang Shengju Committed by David S. Miller

macvlan: convert to use IFF_NO_QUEUE

Use IFF_NO_QUEUE to indicate that a device can run without a qdisc.
Signed-off-by: default avatarZhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f5515885
...@@ -1069,7 +1069,7 @@ EXPORT_SYMBOL_GPL(macvlan_common_setup); ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment