net/af_xdp: enqueue buf ring when allocate Tx queue fails
authorXiaolong Ye <xiaolong.ye@intel.com>
Wed, 17 Apr 2019 13:49:43 +0000 (21:49 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:54 +0000 (14:51 +0200)
commitf57ea89c6967b9fa62fa156af97956798d24960c
tree98c71315e9085f76799826360ab0484c79bb0c28
parent7dee8c79483e370a346d68060b0b890b273e9a46
net/af_xdp: enqueue buf ring when allocate Tx queue fails

When it fails to allocate enough slots in Tx queue for transmitting
packets, we need to return the dequeued addrs to buf ring.

Fixes: f1debd77efaf ("net/af_xdp: introduce AF_XDP PMD")

Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
drivers/net/af_xdp/rte_eth_af_xdp.c