Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18543a64 authored by Guillaume Chazarain's avatar Guillaume Chazarain Committed by David S. Miller
Browse files

net: Detect and ignore netif_stop_queue() calls before register_netdev()



After e6484930: net: allocate tx queues in register_netdevice
These calls make net drivers oops at load time, so let's avoid people
git-bisect'ing known problems.

Signed-off-by: default avatarGuillaume Chazarain <guichaz@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 63f4e190
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1554,6 +1554,11 @@ static inline void netif_tx_wake_all_queues(struct net_device *dev)

static inline void netif_tx_stop_queue(struct netdev_queue *dev_queue)
{
	if (WARN_ON(!dev_queue)) {
		printk(KERN_INFO "netif_stop_queue() cannot be called before "
		       "register_netdev()");
		return;
	}
	set_bit(__QUEUE_STATE_XOFF, &dev_queue->state);
}