]> git.karo-electronics.de Git - linux-beck.git/commit
mlx4: fix XDP_TX is acting like XDP_PASS on TX ring full
authorJesper Dangaard Brouer <brouer@redhat.com>
Fri, 16 Sep 2016 20:36:12 +0000 (22:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Sep 2016 05:32:19 +0000 (01:32 -0400)
commit95357907ae73a8039c2106897ee2694f26ac3caf
tree12714655a7899a1ebb3890b0c02c897ebe855d79
parent8ddda65315f08b1273095edc1afab4872ea22fe5
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: 9ecc2d86171a ("net/mlx4_en: add xdp forwarding and data write support")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Reviewed-by: Brenden Blanco <bblanco@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c