net/af_xdp: revert to MP/MC ring for copy mode
authorCiara Loftus <ciara.loftus@intel.com>
Thu, 25 Jun 2020 13:39:50 +0000 (13:39 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 14:24:37 +0000 (16:24 +0200)
commit5b2baff902e0e0815d860ae912d36c0c3fca37fb
tree0469d4e9f0a311244a0272cae6ac2130821c4c8c
parenta63d4fca68d984c7a0ae68dfba0ec4ccda62456d
net/af_xdp: revert to MP/MC ring for copy mode

This reverts commit 489e0b5b33209d929dc490cc591abd840dcefdfc.

The ring used in copy mode should be multi-producer multi-consumer
because enqueues and dequeues to the ring are performed on both the rx
and tx paths, which can be running on different threads.

Fixes: 489e0b5b3320 ("net/af_xdp: use single producer/consumer ring")
Cc: stable@dpdk.org
Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
drivers/net/af_xdp/rte_eth_af_xdp.c