net: fec: remove the xdp_return_frame when lack of tx BDs
Shenwei Wang
reviewerPATCH 1/1 net: fec: remove the xdp_return_frame when lack of tx BDs
In the implementation, the sent_frame count does not increment when transmit errors occur. Therefore, bq_xmit_all() will take care of returning the XDP frames.
--- drivers/net/ethernet/freescale/fec_main.c | 1 - 1 file changed, 1 deletion(-)
drivers/net/ethernet/freescale/fec_main.c +0 -1
@@ -3798,7 +3798,6 @@ static int fec_enet_txq_xmit_frame(struct fec_enet_private *fep, entries_free =fec_enet_get_free_txdesc_num (txq);if (entries_free <MAX_SKB_FRAGS +1 ) {netdev_err (fep->netdev,"NOT enough BD for SG!\n" ); -xdp_return_frame (frame);return NETDEV_TX_BUSY ; }
--
2.34.1
Quoted 4 lines · Shenwei Wang
In the implementation, the
sent_framecount does not increment when transmit errors occur. Therefore,bq_xmit_all()will take care of returning the XDP frames.
Quoted 23 lines
Fixes 26312c685ae0 ("net: fec: correct the counting of XDP sent frames")Signed-off-by Shenwei Wang <[email protected]>--- drivers/net/ethernet/freescale/fec_main.c | 1 - 1 file changed, 1 deletion(-)drivers/net/ethernet/freescale/fec_main.c +0
-2@@ -3798,7 +3798,6 @@ static int fec_enet_txq_xmit_frame(struct fec_enet_private *fep, entries_free =fec_enet_get_free_txdesc_num (txq);if (entries_free <MAX_SKB_FRAGS +1 ) {netdev_err (fep->netdev,"NOT enough BD for SG!\n" ); -xdp_return_frame (frame);return NETDEV_TX_BUSY ; } --2.34.1
Signature · 1 line
/Horatiu
This patch was applied to netdev/net.git (main) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by David S. Miller <[email protected]>:
Quoted 8 lines · On Fri, 12 May 2023 08:38:43 -0500 you wrote:
In the implementation, the
sent_framecount does not increment when transmit errors occur. Therefore,bq_xmit_all()will take care of returning the XDP frames.Fixes 26312c685ae0 ("net: fec: correct the counting of XDP sent frames")Signed-off-by Shenwei Wang <[email protected]>[...]
Here is the summary with links:
- [net] net: fec: remove the xdp_return_frame when lack of tx BDs
https://git.kernel.org/netdev/net/c/6ead9c98cafc
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html