]> git.baikalelectronics.ru Git - kernel.git/commit
mlx4: add missed recycle opportunity for XDP_TX on TX failure
authorJesper Dangaard Brouer <brouer@redhat.com>
Mon, 19 Sep 2016 15:46:38 +0000 (17:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Sep 2016 08:58:17 +0000 (04:58 -0400)
commitf390b64e1150e33c3f462923bb8d6d51631008ed
tree52f9c4f03ecfbc9a84fef11cde79a38fcb802f0e
parentd6cf05a3ddbd9a23269ee3cc95f1b300a2c1b343
mlx4: add missed recycle opportunity for XDP_TX on TX failure

Correct drop handling for XDP_TX on TX failure, were recently added in
commit f72e01686811 ("mlx4: fix XDP_TX is acting like XDP_PASS on TX
ring full").

The change missed an opportunity for recycling the RX page, instead of
going through the page allocator, like the regular XDP_DROP action does.
This patch cease the opportunity, by going through the XDP_DROP case.

Fixes: f72e01686811 ("mlx4: fix XDP_TX is acting like XDP_PASS on TX ring full")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_rx.c