summaryrefslogtreecommitdiff
path: root/lib/ipsec
diff options
context:
space:
mode:
authorBruce Richardson <[email protected]>2022-02-10 15:42:36 +0000
committerThomas Monjalon <[email protected]>2022-02-10 23:05:32 +0100
commite82470e22528ad7c0277aa94ecbc6b97f3bdb4c2 (patch)
treea1dc82b0efb2294ce037bf07ea7d30f9120be979 /lib/ipsec
parentca6732316c23e158da10b0e3a7b2eaab9d3e1368 (diff)
ipsec: fix C++ include
C++ does not have automatic casting to/from void pointers, so need explicit cast if header is to be included in C++ code Fixes: f901d9c82688 ("ipsec: add helpers to group completed crypto-ops") Cc: [email protected] Signed-off-by: Bruce Richardson <[email protected]> Acked-by: Konstantin Ananyev <[email protected]>
Diffstat (limited to 'lib/ipsec')
-rw-r--r--lib/ipsec/rte_ipsec_group.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ipsec/rte_ipsec_group.h b/lib/ipsec/rte_ipsec_group.h
index 60ab297710..62c2bd7217 100644
--- a/lib/ipsec/rte_ipsec_group.h
+++ b/lib/ipsec/rte_ipsec_group.h
@@ -49,10 +49,10 @@ rte_ipsec_ses_from_crypto(const struct rte_crypto_op *cop)
if (cop->sess_type == RTE_CRYPTO_OP_SECURITY_SESSION) {
ss = cop->sym[0].sec_session;
- return (void *)(uintptr_t)ss->opaque_data;
+ return (struct rte_ipsec_session *)(uintptr_t)ss->opaque_data;
} else if (cop->sess_type == RTE_CRYPTO_OP_WITH_SESSION) {
cs = cop->sym[0].session;
- return (void *)(uintptr_t)cs->opaque_data;
+ return (struct rte_ipsec_session *)(uintptr_t)cs->opaque_data;
}
return NULL;
}