Skip to content

Commit 0a5f107

Browse files
Phil Sutterdavem330
authored andcommitted
net: dsa: convert to using IFF_NO_QUEUE
Signed-off-by: Phil Sutter <[email protected]> Cc: Lennert Buytenhek <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent bf485bc commit 0a5f107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/dsa/slave.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ int dsa_slave_create(struct dsa_switch *ds, struct device *parent,
11471147
slave_dev->features = master->vlan_features;
11481148
slave_dev->ethtool_ops = &dsa_slave_ethtool_ops;
11491149
eth_hw_addr_inherit(slave_dev, master);
1150-
slave_dev->tx_queue_len = 0;
1150+
slave_dev->priv_flags |= IFF_NO_QUEUE;
11511151
slave_dev->netdev_ops = &dsa_slave_netdev_ops;
11521152
slave_dev->switchdev_ops = &dsa_slave_switchdev_ops;
11531153

0 commit comments

Comments
 (0)