Skip to content

Commit

Permalink
examples/ipsec-secgw: fix promiscuous mode option
Browse files Browse the repository at this point in the history
[ upstream commit 23d3a468c42ac8b63a36c9c4a6f01e459350f777 ]

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: d299106 ("examples/ipsec-secgw: add IPsec sample application")

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
  • Loading branch information
nithind1988 authored and cpaelzer committed Jul 6, 2022
1 parent f616893 commit 386ada6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ipsec-secgw/ipsec-secgw.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static const struct option lgopts[] = {
static uint32_t enabled_port_mask;
static uint64_t enabled_cryptodev_mask = UINT64_MAX;
static uint32_t unprotected_port_mask;
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;
static uint32_t single_sa;
Expand Down

0 comments on commit 386ada6

Please sign in to comment.