Commit 364b605
net: busy-poll: return busypolling status to drivers
NAPI drivers use napi_complete_done() or napi_complete() when
they drained RX ring and right before re-enabling device interrupts.
In busy polling, we can avoid interrupts being delivered since
we are polling RX ring in a controlled loop.
Drivers can chose to use napi_complete_done() return value
to reduce interrupts overhead while busy polling is active.
This is optional, legacy drivers should work fine even
if not updated.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Willem de Bruijn <willemb@google.com>
Cc: Adam Belay <abelay@google.com>
Cc: Tariq Toukan <tariqt@mellanox.com>
Cc: Yuval Mintz <Yuval.Mintz@cavium.com>
Cc: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 21cb84c commit 364b605
2 files changed
+10
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
467 | | - | |
| 466 | + | |
| 467 | + | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| 474 | + | |
474 | 475 | | |
475 | | - | |
| 476 | + | |
476 | 477 | | |
477 | 478 | | |
478 | 479 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4898 | 4898 | | |
4899 | 4899 | | |
4900 | 4900 | | |
4901 | | - | |
| 4901 | + | |
4902 | 4902 | | |
4903 | 4903 | | |
4904 | 4904 | | |
4905 | 4905 | | |
4906 | 4906 | | |
4907 | 4907 | | |
4908 | 4908 | | |
4909 | | - | |
| 4909 | + | |
4910 | 4910 | | |
4911 | 4911 | | |
4912 | 4912 | | |
4913 | 4913 | | |
| 4914 | + | |
4914 | 4915 | | |
4915 | 4916 | | |
4916 | 4917 | | |
4917 | | - | |
| 4918 | + | |
4918 | 4919 | | |
4919 | 4920 | | |
4920 | 4921 | | |
| |||
4926 | 4927 | | |
4927 | 4928 | | |
4928 | 4929 | | |
4929 | | - | |
| 4930 | + | |
4930 | 4931 | | |
4931 | 4932 | | |
4932 | 4933 | | |
| |||
4948 | 4949 | | |
4949 | 4950 | | |
4950 | 4951 | | |
| 4952 | + | |
4951 | 4953 | | |
4952 | 4954 | | |
4953 | 4955 | | |
| |||
0 commit comments