diff mbox

[net-next] net: napi_watchdog() can use napi_schedule_irqoff()

Message ID 1487694056.9415.27.camel@edumazet-glaptop3.roam.corp.google.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Eric Dumazet Feb. 21, 2017, 4:20 p.m. UTC
From: Eric Dumazet <edumazet@google.com>

hrtimer handlers run with masked hard IRQ, we can therefore
use napi_schedule_irqoff()

Signed-off-by: Eric Dumazet <edumazet@google.com>
---
 net/core/dev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Miller Feb. 21, 2017, 6:28 p.m. UTC | #1
From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Tue, 21 Feb 2017 08:20:56 -0800

> From: Eric Dumazet <edumazet@google.com>
> 
> hrtimer handlers run with masked hard IRQ, we can therefore
> use napi_schedule_irqoff()
> 
> Signed-off-by: Eric Dumazet <edumazet@google.com>

Applied, thanks Eric.
diff mbox

Patch

diff --git a/net/core/dev.c b/net/core/dev.c
index 05d19c6acf9460e072195e185b64e19088de13da..304f2deae5f9897e60a79ed8b69d6ef208295ded 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -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;
 }