Commit 95357907 authored by Jesper Dangaard Brouer's avatar Jesper Dangaard Brouer Committed by David S. Miller
Browse files

mlx4: fix XDP_TX is acting like XDP_PASS on TX ring full

The XDP_TX action can fail transmitting the frame in case the TX ring
is full or port is down.  In case of TX failure it should drop the
frame, and not as now call 'break' which is the same as XDP_PASS.

Fixes: 9ecc2d86

 ("net/mlx4_en: add xdp forwarding and data write support")
Signed-off-by: default avatarJesper Dangaard Brouer <>
Reviewed-by: default avatarBrenden Blanco <>
Signed-off-by: default avatarDavid S. Miller <>
parent 8ddda653
......@@ -906,7 +906,7 @@ int mlx4_en_process_rx_cq(struct net_device *dev, struct mlx4_en_cq *cq, int bud
length, tx_index,
goto consumed;
goto next; /* Drop on xmit failure */
Markdown is supported
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