net/af_xdp: fix fill queue addresses
authorCiara Loftus <ciara.loftus@intel.com>
Thu, 13 Feb 2020 08:49:13 +0000 (08:49 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 14 Feb 2020 11:42:12 +0000 (12:42 +0100)
commit96d8ae9990c0a213255b4dc45c53368ea2c92bfa
treeaa8b5bd96cb3a5dfbf432a7b6c8ddd0b86ed4b87
parentb79ae90c78a143605610ed5c7d59d42c0846847f
net/af_xdp: fix fill queue addresses

The fill queue addresses should start at the beginning of the mempool
object instead of the beginning of the mbuf. This is because the umem
frame headroom includes the mp hdrobj size. Starting at this point
ensures AF_XDP doesn't write past the available room in the frame, in
the case of larger packets which are close to the size of the mbuf.

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