]> git.droids-corp.org - dpdk.git/blobdiff - lib/ipsec/rte_ipsec_group.h
common/cnxk: fix channel number setting in MCAM entries
[dpdk.git] / lib / ipsec / rte_ipsec_group.h
index 60ab2977104a840b213106f4cedd524f1c4c02e5..62c2bd7217023ff80c8d08e3543c66d1024ba7b7 100644 (file)
@@ -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;
 }