]> git.droids-corp.org - dpdk.git/commitdiff
net/cnxk: update environment variable for debug IV
authorAkhil Goyal <gakhil@marvell.com>
Sun, 8 May 2022 07:48:27 +0000 (13:18 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 10 May 2022 14:27:04 +0000 (16:27 +0200)
Changed environment variable name for specifying
debug IV for unit testing of inline IPsec offload
with known test vectors.

Signed-off-by: Akhil Goyal <gakhil@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/net/cnxk/cn10k_ethdev_sec.c

index f860687af0bcbc533b26a1f881682ad499123bae..edef62c746fe84340d7d331e1270b684dc86685d 100644 (file)
@@ -543,10 +543,11 @@ cn10k_eth_sec_session_create(void *device,
                        goto mempool_put;
                }
 
-               iv_str = getenv("CN10K_ETH_SEC_IV_OVR");
-               if (iv_str)
-                       outb_dbg_iv_update(outb_sa_dptr, iv_str);
-
+               if (conf->ipsec.options.iv_gen_disable == 1) {
+                       iv_str = getenv("ETH_SEC_IV_OVR");
+                       if (iv_str)
+                               outb_dbg_iv_update(outb_sa_dptr, iv_str);
+               }
                /* Fill outbound sa misc params */
                rc = cn10k_eth_sec_outb_sa_misc_fill(&dev->nix, outb_sa_dptr,
                                                     outb_sa, ipsec, sa_idx);