]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: xilinx: axienet: Schedule NAPI in two steps
authorSean Anderson <sean.anderson@linux.dev>
Fri, 13 Sep 2024 14:57:11 +0000 (10:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:12:02 +0000 (15:12 +0200)
commit1b62ef7f23c3fcf0902aaa5b8f8c9cba5092f544
tree75a9ae84bd12e28658eeb19d2449a25dd70f5412
parent56d5ca2ef0d7bea43f249d0efbae30bbf530d2be
net: xilinx: axienet: Schedule NAPI in two steps

commit ba0da2dc934ec5ac32bbeecbd0670da16ba03565 upstream.

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: 9e2bc267e780 ("net: axienet: Use NAPI for TX completion path")
Fixes: cc37610caaf8 ("net: axienet: implement NAPI and GRO receive")
Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Reviewed-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20240913145711.2284295-1-sean.anderson@linux.dev
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c