Skip to content

Commit 559c59b

Browse files
edumazetdavem330
authored andcommitted
net: napi_watchdog() can use napi_schedule_irqoff()
hrtimer handlers run with masked hard IRQ, we can therefore use napi_schedule_irqoff() Signed-off-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 29869d6 commit 559c59b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/core/dev.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5089,7 +5089,7 @@ static enum hrtimer_restart napi_watchdog(struct hrtimer *timer)
50895089

50905090
napi = container_of(timer, struct napi_struct, timer);
50915091
if (napi->gro_list)
5092-
napi_schedule(napi);
5092+
napi_schedule_irqoff(napi);
50935093

50945094
return HRTIMER_NORESTART;
50955095
}

0 commit comments

Comments
 (0)