net/af_xdp: use single producer/consumer ring
authorXiao Wang <xiao.w.wang@intel.com>
Wed, 8 Jan 2020 13:37:08 +0000 (08:37 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:02 +0000 (19:46 +0100)
commit489e0b5b33209d929dc490cc591abd840dcefdfc
tree35b8bf8fb60992bc502396f26e388e367c0e6c93
parentdcd05da0aed1674263918b3b25b987c7bc99da88
net/af_xdp: use single producer/consumer ring

The ring is used only by af_xdp PMD itself, so no need to support
multi-producer and multi-consumer mode. This patch changes the ring
to single-producer and single-consumer mode, which could yield better
performance for addr enqueue and dequeue.

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Tested-by: Ciara Loftus <ciara.loftus@intel.com>
Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/net/af_xdp/rte_eth_af_xdp.c