[EXTERNAL] [PATCH] cryptodev: fix C++ include
Akhil Goyal
gakhil at marvell.com
Thu Dec 19 13:24:02 CET 2024
> Some cryptodev functions were not included in the extern "C" block,
> so it is moved to start before.
>
> An include is also moved to avoid being part of this block.
>
> Fixes: 719834a6849e ("use C linkage where appropriate in headers")
> Cc: stable at dpdk.org
>
> Reported-by: Zhigang Hu <zhigang.hu at intel.com>
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> ---
> .mailmap | 1 +
> lib/cryptodev/rte_cryptodev.h | 10 +++++-----
> 2 files changed, 6 insertions(+), 5 deletions(-)
>
> diff --git a/.mailmap b/.mailmap
> index 2bf38f9e8c..1e4bb06d6e 100644
> --- a/.mailmap
> +++ b/.mailmap
> @@ -1794,6 +1794,7 @@ Zhenghua Zhou <zhenghuax.zhou at intel.com>
> Zhenning Xiao <zhenning.xiao at intel.com>
> Zhe Tao <zhe.tao at intel.com>
> Zhichao Zeng <zhichaox.zeng at intel.com>
> +Zhigang Hu <zhigang.hu at intel.com>
> Zhigang Lu <zlu at ezchip.com>
> Zhiguang He <hezhiguang3 at huawei.com>
> Zhihong Peng <zhihongx.peng at intel.com>
> diff --git a/lib/cryptodev/rte_cryptodev.h b/lib/cryptodev/rte_cryptodev.h
> index c64d2f83a0..31a7edb189 100644
> --- a/lib/cryptodev/rte_cryptodev.h
> +++ b/lib/cryptodev/rte_cryptodev.h
> @@ -21,6 +21,11 @@
> #include <rte_rcu_qsbr.h>
>
> #include "rte_cryptodev_trace_fp.h"
> +#include "rte_cryptodev_core.h"
Fix is ok but rte_cryptodev_core.h should not be moved up.
It is added in the middle to segregate the fast path APIs.
And it is an internal header which cannot be included by app directly.
I think the same schema is followed in ethdev as well.
> +
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
>
> /**
> * @internal Logtype used for cryptodev related messages.
> @@ -1928,11 +1933,6 @@ int rte_cryptodev_remove_deq_callback(uint8_t
> dev_id,
> uint16_t qp_id,
> struct rte_cryptodev_cb *cb);
>
> -#include <rte_cryptodev_core.h>
> -
> -#ifdef __cplusplus
> -extern "C" {
> -#endif
> /**
> *
> * Dequeue a burst of processed crypto operations from a queue on the crypto
> --
> 2.47.1
More information about the stable
mailing list