net/af_xdp: fix zero-copy Tx queue drain
authorBaruch Siach <baruch@tkos.co.il>
Wed, 25 Aug 2021 10:05:44 +0000 (13:05 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 7 Sep 2021 15:55:23 +0000 (17:55 +0200)
commit0f2ffb49ce29351fad043377a6d2f144f3c52afb
treefb4fb6bc166752ecc19824109c709ce53b1303be
parenta550baf24af90f76354eab0d4f91165a78157d38
net/af_xdp: fix zero-copy Tx queue drain

Call xsk_ring_prod__submit() before kick_tx() so that the kernel
consumer sees the updated state of Tx ring. Otherwise, Tx packets are
stuck in the ring until the next call to af_xdp_tx_zc().

Fixes: d8a210774e1d ("net/af_xdp: support unaligned umem chunks")
Cc: stable@dpdk.org
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Ciara Loftus <ciara.loftus@intel.com>
drivers/net/af_xdp/rte_eth_af_xdp.c