Skip to content

Commit 7009212

Browse files
Zhang Shengjudavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f551588 commit 7009212

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/macvlan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ EXPORT_SYMBOL_GPL(macvlan_common_setup);
10691069
static void macvlan_setup(struct net_device *dev)
10701070
{
10711071
macvlan_common_setup(dev);
1072-
dev->tx_queue_len = 0;
1072+
dev->priv_flags |= IFF_NO_QUEUE;
10731073
}
10741074

10751075
static int macvlan_port_create(struct net_device *dev)

0 commit comments

Comments
 (0)