[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230512135713.lwfpw4lzreece4rb@soft-dev3-1>
Date: Fri, 12 May 2023 15:57:13 +0200
From: Horatiu Vultur <horatiu.vultur@...rochip.com>
To: Shenwei Wang <shenwei.wang@....com>
CC: Wei Fang <wei.fang@....com>, "David S. Miller" <davem@...emloft.net>, Eric
Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni
<pabeni@...hat.com>, Clark Wang <xiaoning.wang@....com>, NXP Linux Team
<linux-imx@....com>, Alexei Starovoitov <ast@...nel.org>, Daniel Borkmann
<daniel@...earbox.net>, Jesper Dangaard Brouer <hawk@...nel.org>, John
Fastabend <john.fastabend@...il.com>, Alexander Lobakin
<alexandr.lobakin@...el.com>, Simon Horman <horms@...nel.org>,
<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<imx@...ts.linux.dev>
Subject: Re: [PATCH net] net: fec: remove the xdp_return_frame when lack of
tx BDs
The 05/12/2023 08:38, Shenwei Wang wrote:
>
> 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.
Reviewed-by: Horatiu Vultur <horatiu.vultur@...rochip.com>
>
> Fixes: 26312c685ae0 ("net: fec: correct the counting of XDP sent frames")
> Signed-off-by: Shenwei Wang <shenwei.wang@....com>
> ---
> drivers/net/ethernet/freescale/fec_main.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethernet/freescale/fec_main.c
> index 42ec6ca3bf03..2a3e8b69b70a 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;
> }
>
> --
> 2.34.1
>
>
--
/Horatiu
Powered by blists - more mailing lists