Commit 1ebcca47 authored by David S. Miller's avatar David S. Miller

[NAPI]: Do not check netif_running() in netif_rx_schedule_prep.

parent 31b321e3
...@@ -711,8 +711,7 @@ enum { ...@@ -711,8 +711,7 @@ enum {
static inline int netif_rx_schedule_prep(struct net_device *dev) static inline int netif_rx_schedule_prep(struct net_device *dev)
{ {
return netif_running(dev) && return !test_and_set_bit(__LINK_STATE_RX_SCHED, &dev->state);
!test_and_set_bit(__LINK_STATE_RX_SCHED, &dev->state);
} }
/* Add interface to tail of rx poll list. This assumes that _prep has /* Add interface to tail of rx poll list. This assumes that _prep has
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment