diff options
author | Zhang Shengju <zhangshengju@cmss.chinamobile.com> | 2016-02-14 09:10:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-17 15:19:44 -0500 |
commit | 7009212b157d3558bacb23bb037bdba75700e3fd (patch) | |
tree | 1b0b279159c3d1a0bc89620326922286e48d68e1 /drivers/net/macvlan.c | |
parent | f55158859504ead847e56211f3dadadaf883a6ee (diff) |
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>
Diffstat (limited to 'drivers/net/macvlan.c')
-rw-r--r-- | drivers/net/macvlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 94e688805dd2..426a2cc27ac8 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c | |||
@@ -1069,7 +1069,7 @@ EXPORT_SYMBOL_GPL(macvlan_common_setup); | |||
1069 | static void macvlan_setup(struct net_device *dev) | 1069 | static void macvlan_setup(struct net_device *dev) |
1070 | { | 1070 | { |
1071 | macvlan_common_setup(dev); | 1071 | macvlan_common_setup(dev); |
1072 | dev->tx_queue_len = 0; | 1072 | dev->priv_flags |= IFF_NO_QUEUE; |
1073 | } | 1073 | } |
1074 | 1074 | ||
1075 | static int macvlan_port_create(struct net_device *dev) | 1075 | static int macvlan_port_create(struct net_device *dev) |