net/af_xdp: fix error handling during Rx queue setup
authorCiara Loftus <ciara.loftus@intel.com>
Mon, 1 Mar 2021 10:34:13 +0000 (10:34 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 1 Mar 2021 22:44:43 +0000 (23:44 +0100)
commit831268022300cfbc338f65d43b8f685e50011c86
tree8c92d40967ed3e3d5758e0b172bc8ae00480d751
parent05cc6e33961b41df6cdc37fd429e06c28c78a84e
net/af_xdp: fix error handling during Rx queue setup

Prior to this commit, if rte_pktmbuf_alloc_bullk failed during rx queue
setup the error was not returned to the user and they may incorrectly
assume that the rx queue had been successfully set up. This commit ensures
that the error is returned to the user.

Bugzilla ID: 643
Fixes: d8a210774e1d ("net/af_xdp: support unaligned umem chunks")
Cc: stable@dpdk.org
Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
drivers/net/af_xdp/rte_eth_af_xdp.c