From: Tejasree Kondoj Date: Fri, 9 Jul 2021 09:41:47 +0000 (+0530) Subject: crypto/cnxk: fix build with asserts X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4a3e72a2ee8d8065bf29f3ce26e54826850c657f;p=dpdk.git crypto/cnxk: fix build with asserts Removing usage of unavailable macro. Fixes: baee42a6beff ("crypto/cnxk: add IPsec datapath") Reported-by: Ali Alnubani Suggested-by: David Marchand Signed-off-by: Tejasree Kondoj --- diff --git a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c b/drivers/crypto/cnxk/cn10k_cryptodev_ops.c index 6d322a9cb6..2e1a73939c 100644 --- a/drivers/crypto/cnxk/cn10k_cryptodev_ops.c +++ b/drivers/crypto/cnxk/cn10k_cryptodev_ops.c @@ -275,7 +275,7 @@ cn10k_cpt_sec_post_process(struct rte_crypto_op *cop, m_len = rte_be_to_cpu_16(ip->total_length); } else { PLT_ASSERT(((ip->version_ihl & 0xf0) >> - RTE_IPV4_IHL_MULTIPLIER) == IPV6_VERSION); + RTE_IPV4_IHL_MULTIPLIER) == 6); ip6 = (struct rte_ipv6_hdr *)ip; m_len = rte_be_to_cpu_16(ip6->payload_len) + sizeof(struct rte_ipv6_hdr);