Skip to content
Commit fce20c41 authored by Shenwei Wang's avatar Shenwei Wang Committed by Xiaolei Wang
Browse files

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

commit 2a4945950c3193cdd3da190300d28beeadb9f3f8 from
https://github.com/nxp-imx/linux-imx.git

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: 26312c68

 ("net: fec: correct the counting of XDP sent frames")
Signed-off-by: default avatarShenwei Wang <shenwei.wang@nxp.com>
Reviewed-by: default avatarHoratiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarXiaolei Wang <xiaolei.wang@windriver.com>
parent ab28caa1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment