summaryrefslogtreecommitdiff
path: root/drivers/net/dummy.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-08-18 11:55:08 -0700
committerDavid S. Miller <davem@davemloft.net>2015-08-18 11:55:08 -0700
commit61ed713bbb043f333ca9576c79a3d33d2ad17438 (patch)
tree018c84769b8c270f6bec9020da36e9916985a061 /drivers/net/dummy.c
parent0b233dc7167884f95f08e796ac6a6767ae7d0d70 (diff)
parent348e3435cbefa815bd56a5205c1412b5afe7b92e (diff)
downloadlinux-61ed713bbb043f333ca9576c79a3d33d2ad17438.tar.gz
linux-61ed713bbb043f333ca9576c79a3d33d2ad17438.tar.bz2
linux-61ed713bbb043f333ca9576c79a3d33d2ad17438.zip
Merge branch 'drivers_iff_no_queue'
Phil Sutter says: ==================== net: Convert drivers to IFF_NO_QUEUE and cleanup afterwards This series converts in-tree users away from the old and deprecated 'tx_queue_len = 0' idiom, adds a warning to notify out-of-tree driver maintainers that there is need for action on their behalf and finally drops any workarounds in scheduling algorithm implementations. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dummy.c')
-rw-r--r--drivers/net/dummy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/dummy.c b/drivers/net/dummy.c
index 49adbf1b7574..815eb94990f5 100644
--- a/drivers/net/dummy.c
+++ b/drivers/net/dummy.c
@@ -144,10 +144,9 @@ static void dummy_setup(struct net_device *dev)
dev->destructor = free_netdev;
/* Fill in device structure with ethernet-generic values. */
- dev->tx_queue_len = 0;
dev->flags |= IFF_NOARP;
dev->flags &= ~IFF_MULTICAST;
- dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
+ dev->priv_flags |= IFF_LIVE_ADDR_CHANGE | IFF_NO_QUEUE;
dev->features |= NETIF_F_SG | NETIF_F_FRAGLIST | NETIF_F_TSO;
dev->features |= NETIF_F_HW_CSUM | NETIF_F_HIGHDMA | NETIF_F_LLTX;
eth_hw_addr_random(dev);