Skip to content

Commit d187a88

Browse files
AndybnACTmehmetb0
authored andcommitted
net: axienet: start napi before enabling Rx/Tx
BugLink: https://bugs.launchpad.net/bugs/2086242 commit 799a829 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: cc37610 ("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> Signed-off-by: Koichiro Den <koichiro.den@canonical.com> Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
1 parent 622c6f8 commit d187a88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/xilinx/xilinx_axienet_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1912,9 +1912,9 @@ static void axienet_dma_err_handler(struct work_struct *work)
19121912
~(XAE_OPTION_TXEN | XAE_OPTION_RXEN));
19131913
axienet_set_mac_address(ndev, NULL);
19141914
axienet_set_multicast_list(ndev);
1915-
axienet_setoptions(ndev, lp->options);
19161915
napi_enable(&lp->napi_rx);
19171916
napi_enable(&lp->napi_tx);
1917+
axienet_setoptions(ndev, lp->options);
19181918
}
19191919

19201920
/**

0 commit comments

Comments
 (0)