]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: axienet: start napi before enabling Rx/Tx
authorAndy Chiu <andy.chiu@sifive.com>
Fri, 26 Jul 2024 07:06:50 +0000 (15:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:12:02 +0000 (15:12 +0200)
commit7ef0ff59324a97ccdf4a1e65d6b663b0dc49a17f
tree0d6a2103a6f7ee89eb401b9fd4a8bd04152e8eca
parenta97eacadb09632579ef57b0c49f6606ddf965490
net: axienet: start napi before enabling Rx/Tx

commit 799a829507506924add8a7620493adc1c3cfda30 upstream.

softirq may get lost if an Rx interrupt comes before we call
napi_enable. Move napi_enable in front of axienet_setoptions(), which
turns on the device, to address the issue.

Link: https://lists.gnu.org/archive/html/qemu-devel/2024-07/msg06160.html
Fixes: cc37610caaf8 ("net: axienet: implement NAPI and GRO receive")
Signed-off-by: Andy Chiu <andy.chiu@sifive.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c