Skip to content

Commit

Permalink
net: napi_watchdog() can use napi_schedule_irqoff()
Browse files Browse the repository at this point in the history
hrtimer handlers run with masked hard IRQ, we can therefore
use napi_schedule_irqoff()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Feb 21, 2017
1 parent 29869d6 commit 559c59b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -5089,7 +5089,7 @@ static enum hrtimer_restart napi_watchdog(struct hrtimer *timer)

napi = container_of(timer, struct napi_struct, timer);
if (napi->gro_list)
napi_schedule(napi);
napi_schedule_irqoff(napi);

return HRTIMER_NORESTART;
}
Expand Down

0 comments on commit 559c59b

Please sign in to comment.