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 8C943A00C4; Fri, 30 Sep 2022 14:41:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3EBB340684; Fri, 30 Sep 2022 14:41:02 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id EFE2F4003F for ; Fri, 30 Sep 2022 14:41:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664541661; x=1696077661; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=MA4qG8c1ZuswZdQdJumW/vaomYOPNeK7uyI80KA1n2Y=; b=MXPUrovZ3XaqUnJicew9Uqovh3jMxc4kPJ0tUV4ygXAAzdmcLHhIbofC LLw4k0v8jGOf5ykyj5x3MJLaeJarT+C/Ph7D9ESok/MAWnSZapqIHbVN+ CNJ3Z3d5tDgcDg62tfUs0J6z9on6EcPc1uNEYQLTQe9raZJYVpi5jTpgR CmIhs+2pVohjuWosVm/tOzkKJ1FVkBJwVhHMMvvmC5/882/MFmBAEq2DP 0oUKhZemwdV/e6sVHOgrFgQIdmgfnpYwsFiXxI2lCwY1L5H89vQltGGC+ WGhgpXDZWXwpn/dOKoXCIN1slxS7J7SuFWqQagZvfhQRmEMLCEVPl654W A==; X-IronPort-AV: E=McAfee;i="6500,9779,10485"; a="282544957" X-IronPort-AV: E=Sophos;i="5.93,358,1654585200"; d="scan'208";a="282544957" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2022 05:40:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10485"; a="624974856" X-IronPort-AV: E=Sophos;i="5.93,358,1654585200"; d="scan'208";a="624974856" Received: from silpixa00400884.ir.intel.com ([10.243.22.82]) by fmsmga007.fm.intel.com with ESMTP; 30 Sep 2022 05:40:58 -0700 From: Radu Nicolau To: Radu Nicolau , Akhil Goyal Cc: dev@dpdk.org, ndabilpuram@marvell.com Subject: [PATCH] examples/ipsec-secgw: fix Tx checksum offload flag Date: Fri, 30 Sep 2022 13:40:55 +0100 Message-Id: <20220930124055.2682935-1-radu.nicolau@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Fix a typo in computing port mask for Tx checksum offload capability. Fixes: 4edcee19fc20 ("examples/ipsec-secgw: use Tx checksum offload conditionally") Cc: ndabilpuram@marvell.com Signed-off-by: Radu Nicolau --- 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 8a25b83535..75ba359e69 100644 --- a/examples/ipsec-secgw/ipsec-secgw.c +++ b/examples/ipsec-secgw/ipsec-secgw.c @@ -3042,7 +3042,7 @@ main(int32_t argc, char **argv) port_init(portid, req_rx_offloads[portid], req_tx_offloads[portid]); if ((req_tx_offloads[portid] & RTE_ETH_TX_OFFLOAD_IPV4_CKSUM)) - ipv4_cksum_port_mask = 1U << portid; + ipv4_cksum_port_mask |= 1U << portid; } for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) { -- 2.25.1