On 2/17/2022 12:44 PM, David Marchand wrote:
On Wed, Feb 9, 2022 at 10:48 AM Ciara Loftus <[email protected]> wrote:@@ -1836,6 +2008,17 @@ rte_pmd_af_xdp_probe(struct rte_vdev_device *dev) return -1; }+ /* Register IPC callback which shares xsk fds from primary to secondary */ + if (!afxdp_dev_count) { + ret = rte_mp_action_register(ETH_AF_XDP_MP_KEY, afxdp_mp_send_fds); + if (ret < 0) {This breaks --in-memory mode. It should be instead ret < 0 && rte_errno != ENOTSUP Can you double check? Thanks.
There is already a patch for it [1], if it is reviewed/tested, I can merge quickly. [1] https://patches.dpdk.org/project/dpdk/patch/[email protected]/
+ AF_XDP_LOG(ERR, "%s: Failed to register multi-process IPC callback: %s", + name, strerror(rte_errno)); + return -1; + } + }

