]> git.droids-corp.org - dpdk.git/commit
net/af_xdp: allow probing when multiprocess is disabled
authorJunxiao Shi <git@mail1.yoursunny.com>
Thu, 17 Feb 2022 11:09:06 +0000 (11:09 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 17 Feb 2022 17:26:00 +0000 (18:26 +0100)
commit17ec9678d4647f0e90b04dc2a091e36451d16ad4
treebdb146fcafa52cbfeba908e13b59ed5757e76853
parent8540d7dbfcbe463c2ae988f92339a8486c5c0587
net/af_xdp: allow probing when multiprocess is disabled

If EAL multiprocess feature has been disabled via rte_mp_disable()
function, AF_XDP driver may not be able to register its IPC callback.
Previously this leads to probe failure.
This commit adds a check for this condition so that AF_XDP can still be
used even if multiprocess is disabled.

Fixes: 9876cf8316b3 ("net/af_xdp: re-enable secondary process support")
Signed-off-by: Junxiao Shi <git@mail1.yoursunny.com>
Acked-by: Ciara Loftus <ciara.loftus@intel.com>
drivers/net/af_xdp/rte_eth_af_xdp.c