Patch "net: fec: remove the xdp_return_frame when lack of tx BDs" has been added to the 6.3-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: fec: remove the xdp_return_frame when lack of tx BDs

to the 6.3-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-fec-remove-the-xdp_return_frame-when-lack-of-tx-.patch
and it can be found in the queue-6.3 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 04cf26e8e6dfc54aeb16f16c74443eec6b79d495
Author: Shenwei Wang <shenwei.wang@xxxxxxx>
Date:   Fri May 12 08:38:43 2023 -0500

    net: fec: remove the xdp_return_frame when lack of tx BDs
    
    [ Upstream commit 6ead9c98cafcbc6992cf35f0ca393df2c03e3316 ]
    
    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.
    
    Fixes: 26312c685ae0 ("net: fec: correct the counting of XDP sent frames")
    Signed-off-by: Shenwei Wang <shenwei.wang@xxxxxxx>
    Reviewed-by: Horatiu Vultur <horatiu.vultur@xxxxxxxxxxxxx>
    Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
index 241df41d500f1..577d94821b3e7 100644
--- a/drivers/net/ethernet/freescale/fec_main.c
+++ b/drivers/net/ethernet/freescale/fec_main.c
@@ -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;
 	}
 



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux