From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A0EB5A034C; Thu, 28 Apr 2022 17:18:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 479C442819; Thu, 28 Apr 2022 17:18:45 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 9AEBF40E50 for ; Thu, 28 Apr 2022 17:18:43 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 23SA6dLL016776; Thu, 28 Apr 2022 08:18:41 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=QNtNRqTY6REWyoWLuCfowmMZFy4TVALLJDx0l/VI/70=; b=Z3/cW7UPX9Nr+H7KzOlOfNw5XSOESV00WLJco5i9mqxo1bVEQBfrcP9+Gv8NQqw5zXH3 RINq6G1queCsiy58xhzcHJgAyS2h+lsrQbx2dcF49cddEQr/PoopNBaqhEjonneMECD2 DvGKjLuK/6OZWKiILNVt5cQr95wUg+kJiO30llrfQajHTksjHptuuMBpmP2iNWuK+1Ik 5SBmuVTo1jLbBAQSbAMQ5v62HlJxLIz+6OLPxET8rnWdCOrmo7zolQ5/R/zYmXLnIuWK gio3oA9Qs93x3t/TWbnmFCzywb0wNcoSNDyBfQSVcujBGrpRa4cIAv7InlqoIyr9YD5D Ew== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3fqpvy1m7v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 28 Apr 2022 08:18:41 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 28 Apr 2022 08:18:39 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 28 Apr 2022 08:18:39 -0700 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 263125B6933; Thu, 28 Apr 2022 08:18:36 -0700 (PDT) From: Nithin Dabilpuram To: , , Radu Nicolau CC: , , Nithin Dabilpuram , Subject: [PATCH] examples/ipsec-secgw: fix promiscuous mode option Date: Thu, 28 Apr 2022 20:48:30 +0530 Message-ID: <20220428151830.25867-1-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: eo4qkd0tT2hwZj4cvgT_N867Ms1Tv14y X-Proofpoint-ORIG-GUID: eo4qkd0tT2hwZj4cvgT_N867Ms1Tv14y X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-28_02,2022-04-28_01,2022-02-23_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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: sergio.gonzalez.monroy@intel.com Signed-off-by: Nithin Dabilpuram --- examples/ipsec-secgw/ipsec-secgw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c index 42b5081..931d35c 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -175,7 +175,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; static uint32_t single_sa; -- 2.8.4