]> git.droids-corp.org - dpdk.git/commitdiff
examples/ipsec-secgw: fix promiscuous mode option
authorNithin Dabilpuram <ndabilpuram@marvell.com>
Thu, 28 Apr 2022 15:18:30 +0000 (20:48 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Wed, 1 Jun 2022 14:26:34 +0000 (16:26 +0200)
Currently default value of promiscuous mode flag is true and
even there is command line argument to set it to true.
So it never is in non-promiscuous mode. Fix it by
changing default value to false.

Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application")
Cc: stable@dpdk.org
Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
examples/ipsec-secgw/ipsec-secgw.c

index ad1b55f85cbf15c11015a7bd89487f517c48c67d..25255e053c34872c9f3d65fcca5ade3333ca03e4 100644 (file)
@@ -168,7 +168,7 @@ uint32_t single_sa_idx;
 /* mask of enabled ports */
 static uint32_t enabled_port_mask;
 static uint64_t enabled_cryptodev_mask = UINT64_MAX;
-static int32_t promiscuous_on = 1;
+static int32_t promiscuous_on;
 static int32_t numa_on = 1; /**< NUMA is enabled by default. */
 static uint32_t nb_lcores;
 uint32_t single_sa;