Acked-by: Kai Ji <[email protected]>
> -----Original Message-----
> From: Karas, Krzysztof <[email protected]>
> Sent: Monday, March 13, 2023 12:01 PM
> To: Thomas Monjalon <[email protected]>; Ji, Kai <[email protected]>;
> De Lara Guarch, Pablo <[email protected]>; Kusztal,
> ArkadiuszX <[email protected]>
> Cc: [email protected]; Karas, Krzysztof <[email protected]>
> Subject: [PATCH v2] crypto/ipsec_mb: expect ENOTSUP
>
> Commit b35848bc01f6 ("crypto/ipsec_mb: add multi-process IPC request
> handler") is part of DPDK 22.11 release and it enforces usage of shared
> config and multiprocess mode.
>
> DPDK is not required to be run with more than one process in general, so
> instead of erroring out, catch the error and proceed with ipsec_mb
> device creation normally.
>
> Fixes: b35848bc01f6 ("crypto/ipsec_mb: add multi-process IPC request
> handler")
> Signed-off-by: Krzysztof Karas <[email protected]>
> ---
> v2:
> * Modified patch title and added "Fixes:" note.
> * Restored original comparison "rte_errno == EEXIST".
>
> .mailmap | 1 +
> drivers/crypto/ipsec_mb/ipsec_mb_private.c | 2 +-
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/.mailmap b/.mailmap
> index a9f4f28fba..dad475b9d0 100644
> --- a/.mailmap
> +++ b/.mailmap
> @@ -1583,3 +1583,4 @@ Ziye Yang <[email protected]> Zoltan Kiss
> <[email protected]> <[email protected]> Zorik Machulsky
> <[email protected]> Zyta Szpak <[email protected]> <[email protected]>
> <[email protected]>
> +Krzysztof Karas <[email protected]>
> diff --git a/drivers/crypto/ipsec_mb/ipsec_mb_private.c
> b/drivers/crypto/ipsec_mb/ipsec_mb_private.c
> index 50b789a29b..64f2b4b604 100644
> --- a/drivers/crypto/ipsec_mb/ipsec_mb_private.c
> +++ b/drivers/crypto/ipsec_mb/ipsec_mb_private.c
> @@ -170,7 +170,7 @@ ipsec_mb_create(struct rte_vdev_device *vdev,
>
> if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
> retval = ipsec_mb_mp_request_register();
> - if (retval && (rte_errno == EEXIST))
> + if (retval && ((rte_errno == EEXIST) || (rte_errno ==
> ENOTSUP)))
> /* Safe to proceed, return 0 */
> return 0;
>
> --
> 2.34.1