Skip to content

Commit 6ead9c9

Browse files
Shenwei Wangdavem330
authored andcommitted
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. Fixes: 26312c6 ("net: fec: correct the counting of XDP sent frames") Signed-off-by: Shenwei Wang <[email protected]> Reviewed-by: Horatiu Vultur <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c83b493 commit 6ead9c9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/ethernet/freescale/fec_main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3798,7 +3798,6 @@ static int fec_enet_txq_xmit_frame(struct fec_enet_private *fep,
37983798
entries_free = fec_enet_get_free_txdesc_num(txq);
37993799
if (entries_free < MAX_SKB_FRAGS + 1) {
38003800
netdev_err(fep->netdev, "NOT enough BD for SG!\n");
3801-
xdp_return_frame(frame);
38023801
return NETDEV_TX_BUSY;
38033802
}
38043803

0 commit comments

Comments
 (0)