From: Zhang Shengju Date: Sun, 14 Feb 2016 14:10:39 +0000 (+0000) Subject: macvlan: convert to use IFF_NO_QUEUE X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7009212b157d3558bacb23bb037bdba75700e3fd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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); static void macvlan_setup(struct net_device *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)