]> www.infradead.org Git - users/hch/configfs.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2024 10:35:37 +0000 (11:35 +0100)
commit799a829507506924add8a7620493adc1c3cfda30
treeed38d7c826b8dc63bd997cc5da06293482d167cb
parent05f76b2d634e65ab34472802d9b142ea9e03f74e
net: axienet: start napi before enabling Rx/Tx

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>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c