Skip to content

Commit 24e3fce

Browse files
yoongsiang2kuba-moo
authored andcommitted
net: stmmac: Add queue reset into stmmac_xdp_open() function
Queue reset was moved out from __init_dma_rx_desc_rings() and __init_dma_tx_desc_rings() functions. Thus, the driver fails to transmit and receive packet after XDP prog setup. This commit adds the missing queue reset into stmmac_xdp_open() function. Fixes: f9ec572 ("net: ethernet: stmicro: stmmac: move queue reset to dedicated functions") Cc: <[email protected]> # 6.0+ Signed-off-by: Song Yoong Siang <[email protected]> Reviewed-by: Alexander Duyck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 38e058c commit 24e3fce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6624,6 +6624,8 @@ int stmmac_xdp_open(struct net_device *dev)
66246624
goto init_error;
66256625
}
66266626

6627+
stmmac_reset_queues_param(priv);
6628+
66276629
/* DMA CSR Channel configuration */
66286630
for (chan = 0; chan < dma_csr_ch; chan++) {
66296631
stmmac_init_chan(priv, priv->ioaddr, priv->plat->dma_cfg, chan);

0 commit comments

Comments
 (0)