]> git.baikalelectronics.ru Git - kernel.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)
commitf72e0168681120d3aa8846264b96f3893c571fc9
tree12714655a7899a1ebb3890b0c02c897ebe855d79
parent9c46a168e677f1e4b8ef19a0ce0e7904dab389db
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: 5a5e5814fef6 ("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