Commit ba0da2dc authored by Sean Anderson's avatar Sean Anderson Committed by Paolo Abeni
Browse files

net: xilinx: axienet: Schedule NAPI in two steps



As advised by Documentation/networking/napi.rst, masking IRQs after
calling napi_schedule can be racy. Avoid this by only masking/scheduling
if napi_schedule_prep returns true.

Fixes: 9e2bc267 ("net: axienet: Use NAPI for TX completion path")
Fixes: cc37610c ("net: axienet: implement NAPI and GRO receive")
Signed-off-by: default avatarSean Anderson <sean.anderson@linux.dev>
Reviewed-by: default avatarShannon Nelson <shannon.nelson@amd.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20240913145711.2284295-1-sean.anderson@linux.dev


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 194ef9d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment