crypto/cnxk: fix debug build failure

Message ID 20210709094147.12710-1-ktejasree@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: David Marchand
Headers
Series crypto/cnxk: fix debug build failure |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/github-robot success github build: passed
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-abi-testing warning Testing issues
ci/iol-testing success Testing PASS

Commit Message

Tejasree Kondoj July 9, 2021, 9:41 a.m. UTC
  Removing usage of unavailable macro.

Reported-by: Ali Alnubani <alialnu@mellanox.com>
Suggested-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
---
 drivers/crypto/cnxk/cn10k_cryptodev_ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

David Marchand July 9, 2021, 12:10 p.m. UTC | #1
On Fri, Jul 9, 2021 at 10:47 AM Tejasree Kondoj <ktejasree@marvell.com> wrote:
>
> Removing usage of unavailable macro.

Fixes: baee42a6beff ("crypto/cnxk: add IPsec datapath")

>
> Reported-by: Ali Alnubani <alialnu@mellanox.com>
> Suggested-by: David Marchand <david.marchand@redhat.com>
> Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>

Applied, thanks.
  

Patch

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);