summaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index e71de66e3792..bcddf951ccee 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -463,16 +463,17 @@ static inline bool napi_reschedule(struct napi_struct *napi)
463 return false; 463 return false;
464} 464}
465 465
466void __napi_complete(struct napi_struct *n); 466bool __napi_complete(struct napi_struct *n);
467void napi_complete_done(struct napi_struct *n, int work_done); 467bool napi_complete_done(struct napi_struct *n, int work_done);
468/** 468/**
469 * napi_complete - NAPI processing complete 469 * napi_complete - NAPI processing complete
470 * @n: NAPI context 470 * @n: NAPI context
471 * 471 *
472 * Mark NAPI processing as complete. 472 * Mark NAPI processing as complete.
473 * Consider using napi_complete_done() instead. 473 * Consider using napi_complete_done() instead.
474 * Return false if device should avoid rearming interrupts.
474 */ 475 */
475static inline void napi_complete(struct napi_struct *n) 476static inline bool napi_complete(struct napi_struct *n)
476{ 477{
477 return napi_complete_done(n, 0); 478 return napi_complete_done(n, 0);
478} 479}