diff options
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 74fd5d37f15a..c85e06512246 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -386,6 +386,7 @@ typedef enum rx_handler_result rx_handler_result_t; | |||
386 | typedef rx_handler_result_t rx_handler_func_t(struct sk_buff **pskb); | 386 | typedef rx_handler_result_t rx_handler_func_t(struct sk_buff **pskb); |
387 | 387 | ||
388 | void __napi_schedule(struct napi_struct *n); | 388 | void __napi_schedule(struct napi_struct *n); |
389 | void __napi_schedule_irqoff(struct napi_struct *n); | ||
389 | 390 | ||
390 | static inline bool napi_disable_pending(struct napi_struct *n) | 391 | static inline bool napi_disable_pending(struct napi_struct *n) |
391 | { | 392 | { |
@@ -420,6 +421,18 @@ static inline void napi_schedule(struct napi_struct *n) | |||
420 | __napi_schedule(n); | 421 | __napi_schedule(n); |
421 | } | 422 | } |
422 | 423 | ||
424 | /** | ||
425 | * napi_schedule_irqoff - schedule NAPI poll | ||
426 | * @n: napi context | ||
427 | * | ||
428 | * Variant of napi_schedule(), assuming hard irqs are masked. | ||
429 | */ | ||
430 | static inline void napi_schedule_irqoff(struct napi_struct *n) | ||
431 | { | ||
432 | if (napi_schedule_prep(n)) | ||
433 | __napi_schedule_irqoff(n); | ||
434 | } | ||
435 | |||
423 | /* Try to reschedule poll. Called by dev->poll() after napi_complete(). */ | 436 | /* Try to reschedule poll. Called by dev->poll() after napi_complete(). */ |
424 | static inline bool napi_reschedule(struct napi_struct *napi) | 437 | static inline bool napi_reschedule(struct napi_struct *napi) |
425 | { | 438 | { |