]> git.droids-corp.org - dpdk.git/commit
net/af_xdp: re-enable secondary process support
authorCiara Loftus <ciara.loftus@intel.com>
Wed, 9 Feb 2022 09:48:08 +0000 (09:48 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 11 Feb 2022 13:19:13 +0000 (14:19 +0100)
commit9876cf8316b3ef31dea2381024cf92a5af945616
tree8197b01968d00da9f2c434b47091c34ab803e5c7
parent238170abe7e41c75bbf77897eb84f637fb8936fd
net/af_xdp: re-enable secondary process support

Secondary process support had been disabled for the AF_XDP PMD because
there was no logic in place to share the AF_XDP socket file descriptors
between the processes. This commit introduces this logic using the IPC
APIs.

Rx and Tx are disabled in the secondary process due to memory mapping of
the AF_XDP rings being assigned by the kernel in the primary process only.
However other operations including retrieval of stats are permitted.

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
doc/guides/nics/af_xdp.rst
doc/guides/nics/features/af_xdp.ini
doc/guides/rel_notes/release_22_03.rst
drivers/net/af_xdp/rte_eth_af_xdp.c