* [net-next] macvlan: convert to use IFF_NO_QUEUE
@ 2016-02-14 14:10 Zhang Shengju
2016-02-17 20:19 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Zhang Shengju @ 2016-02-14 14:10 UTC (permalink / raw)
To: kaber, netdev
Use IFF_NO_QUEUE to indicate that a device can run without a qdisc.
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
---
drivers/net/macvlan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
index 94e6888..426a2cc 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)
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [net-next] macvlan: convert to use IFF_NO_QUEUE
2016-02-14 14:10 [net-next] macvlan: convert to use IFF_NO_QUEUE Zhang Shengju
@ 2016-02-17 20:19 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-02-17 20:19 UTC (permalink / raw)
To: zhangshengju; +Cc: kaber, netdev
From: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Date: Sun, 14 Feb 2016 14:10:39 +0000
> Use IFF_NO_QUEUE to indicate that a device can run without a qdisc.
>
> Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-17 20:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-14 14:10 [net-next] macvlan: convert to use IFF_NO_QUEUE Zhang Shengju
2016-02-17 20:19 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).