diff options
| author | Paul Barker <[email protected]> | 2024-06-04 07:28:20 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-06-06 07:59:57 +0000 |
| commit | b0e0e20dc60e9e37b7e5bc71f0c912f66ad75529 (patch) | |
| tree | a2eb8c4f77d983ceab2db24f3657b7583c3eb33d /net/unix/af_unix.c | |
| parent | net: ravb: Simplify poll & receive functions (diff) | |
| download | kernel-b0e0e20dc60e9e37b7e5bc71f0c912f66ad75529.tar.gz kernel-b0e0e20dc60e9e37b7e5bc71f0c912f66ad75529.zip | |
net: ravb: Align poll function with NAPI docs
Align ravb_poll() with the documentation in
`Documentation/networking/kapi.rst` and
`Documentation/networking/napi.rst`.
The documentation says that we should prefer napi_complete_done() over
napi_complete(), and using the former allows us to properly support busy
polling. We should ensure that napi_complete_done() is only called if
the work budget has not been exhausted, and we should only re-arm
interrupts if it returns true.
Signed-off-by: Paul Barker <[email protected]>
Reviewed-by: Sergey Shtylyov <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
