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 8492841CFE for ; Tue, 21 Feb 2023 14:13:20 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 75669431DC; Tue, 21 Feb 2023 14:13:20 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 0941D40E0F; Tue, 21 Feb 2023 14:13:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676985197; x=1708521197; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=hMaUHIwBJ6k37+IlbAc2mh/hBguoxgDgZifxe2qKyhc=; b=OMqFj2o5Z6XUV9t1LI9oYvSdJdzA5SN6sDLoMcWdhtq4WaDotEdMFbQE 7jQKP1o3lnH7fUJezRvVXzs+XCJngXS7953Sqez/9k4fPMXHw5B7d66x/ 4NL16do0oqE5yW1BTaVpu1mhA8UlwdlCHEHlZRVoQWH+EI5TZqqk2dOnY DskdYR9MH90P7OFRx90cI1wjnKCGR54Uzu1d/8kassjSW72BTcak/2jZ4 S3fSh8BdaEgiLy0cEC4OYVI4Z03q/XqVw0G3ArDIU5lD2OAbBRZXEkevz y7M/HZyGaAZpHg0Wih/+/3GaA0RswXfkdAONLKDOsZK0TtWwza00dImCk Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10627"; a="360096854" X-IronPort-AV: E=Sophos;i="5.97,315,1669104000"; d="scan'208";a="360096854" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Feb 2023 05:13:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10627"; a="701999299" X-IronPort-AV: E=Sophos;i="5.97,315,1669104000"; d="scan'208";a="701999299" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga008.jf.intel.com with ESMTP; 21 Feb 2023 05:13:11 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 21 Feb 2023 05:13:10 -0800 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16; Tue, 21 Feb 2023 05:13:10 -0800 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.16 via Frontend Transport; Tue, 21 Feb 2023 05:13:10 -0800 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.48) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.16; Tue, 21 Feb 2023 05:13:10 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ioxpMBJqJeUmT3VZ0+95sfBDeHbf8xxb+1L+VE3rLuT2/7cixsfzdvjIt6KhWaQ8HZqkKpQzPmm2tSDqhL4LiKRHvVuykbUcKeWhwLD0RsYhVghQ28XASM06oIAUYFEb2/mh0vmPNkuo7fNiovL5AARf/ibuYTuzlXF1D7ywCdoWDAaEPQ0/ODMG6eQk7K/n4+NX6cRqgXHBCor7upjwxlrF6sfIAHnO4wWMwgwsqiU9ghVTce0GZLWmXrKZTrCS9LGjWa4UxEvDmyMqbYRg5Qfi+vIEfpadC7GG/+6/oKfARi8LNyHolgT0J9LDf2vJdE+tHRXbnnoWp2JS5/IWyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hMaUHIwBJ6k37+IlbAc2mh/hBguoxgDgZifxe2qKyhc=; b=gCNxkd9wlbpmP8pEWtvUl/h8NuTzoso/R881dMbrX39JYjlNk8YfqgHklxlVHaffcQtrJBOWMx/MEnHAWRyel8sqj76YrBaL/np2K8K5H6aqxBbEcqzw1m2ZqwXHLhu1V0B/6vEJeaeatdl6f4b937w5pLpdBYCj4If/nJmt4IRP/H0g+6BuP2l79mO6DTy9aPiLjdweLmVjXqPQEykDF0bcT3VMzd32s7b/gTEcAic0BqOQhReQN8FQz/goW2m5wigTHwnH+y2mnots3gCXU+8YiUcAoczjpxKsrN5S11xMc6ObTLDVTEITkFu5K+bgHoYBs/sXbDwkRwX/2mc+kQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from SN6PR11MB3408.namprd11.prod.outlook.com (2603:10b6:805:bc::22) by LV2PR11MB6070.namprd11.prod.outlook.com (2603:10b6:408:179::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.20; Tue, 21 Feb 2023 13:13:08 +0000 Received: from SN6PR11MB3408.namprd11.prod.outlook.com ([fe80::651a:1bea:27fd:f02d]) by SN6PR11MB3408.namprd11.prod.outlook.com ([fe80::651a:1bea:27fd:f02d%7]) with mapi id 15.20.6111.019; Tue, 21 Feb 2023 13:13:08 +0000 From: "Ji, Kai" To: Akhil Goyal , "dev@dpdk.org" CC: "Nicolau, Radu" , "anoobj@marvell.com" , "g.singh@nxp.com" , "hemant.agrawal@nxp.com" , "ruifeng.wang@arm.com" , "sunilprakashrao.uttarwar@amd.com" , "rnagadheeraj@marvell.com" , "matan@nvidia.com" , "stable@dpdk.org" Subject: RE: [PATCH 1/3] examples/ipsec-secgw: fix auth IV length Thread-Topic: [PATCH 1/3] examples/ipsec-secgw: fix auth IV length Thread-Index: AQHZQhKBxJ8TLaEWqEKRImaLIQBkUq7ZaC7w Date: Tue, 21 Feb 2023 13:13:08 +0000 Message-ID: References: <20230216142442.3657742-1-gakhil@marvell.com> In-Reply-To: <20230216142442.3657742-1-gakhil@marvell.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SN6PR11MB3408:EE_|LV2PR11MB6070:EE_ x-ms-office365-filtering-correlation-id: 3cc55eae-2ef5-4709-7949-08db140d6036 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /mCZgnf8JHd5usA+F7I50A4b2eCr7Z8xkcguLf7Wh90zIJAAFGqMBzF+wbDu6/YaBhcYUCYI8V9oo9TkVTY2T9A/lH/LJP2fCeBSSjvXrBeTqsrl7+h4RhtHJ+s4gcu3+CL4hU5ppFNUA2/NJfVaf2sT9JCjucYyNNIaNieBseWOsogpd5fkTzn8SO4EsOHJixkEDpz9/iwSHqX4kHBDTO5LUPcSlcIQez2GRrbN+oUSmODFzUl/exlXYWDcClUXYCmNAXZpwO6mu50aCvQwALjaASYSXfXHrQWKDx0PavEvMPPlsYFZAnAdLD5WVD1jv6vjlClF2HvmHkMH5cIZ34c6YaDp9TthoptzSeSkoMgTCQGK99haYXe+RBtWWvjnuRoWXueXY/UfvApLcF289Y0M2O8rsKM/560uSXe+SmmJgcf9r2Kn9J8khZ0Oaf7AgJKDYUmpsdl+TTGloLHa7hjMfHpg9Sfl9uQUqxEMUbfKOofM0l3T0+i9OIo++4O7uQ0dJlZVxSKtQHktLSOby1gewqs9+gUHb/WKjT1ZgHYM1o270uP9BX8Vo3lU6Keoq6KhIL7YiVKmf68qvcvZLdIzCB/So7HdvOt7k5VQArYsuwQ3/bHxomWxj0HxcY1XTHBbCj8OqPB+KAxltFx7vD7BHmI7c6Jn4V2mc7CZwGKMBlbZc9Nu7VTqoEqbgcwKDpC2u8jbzmXtQKlhmEYAsw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SN6PR11MB3408.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(39860400002)(376002)(366004)(396003)(136003)(346002)(451199018)(38070700005)(55016003)(4744005)(7696005)(83380400001)(8936002)(52536014)(5660300002)(41300700001)(33656002)(86362001)(7416002)(9686003)(2906002)(4326008)(71200400001)(66476007)(54906003)(186003)(26005)(6506007)(66446008)(66946007)(64756008)(76116006)(66556008)(53546011)(316002)(110136005)(8676002)(478600001)(82960400001)(122000001)(38100700002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?brVvwTwqREhtCtTY6SjujW9TPElFXKeNTagZQrV04VMn+mr6UoReGedIYS5f?= =?us-ascii?Q?XrTuJqkk3z3lJRrR+THVbQZhYh+7fCPoXlgkTdIoOffAJTRr1CtKvY/tsr/0?= =?us-ascii?Q?VeEB3jaeE4JPFslW4Hx9v8Xz7gN3Q0ZHTZsqb88pCckOmbBA0xC6d1R6vqEt?= =?us-ascii?Q?/dLj7mUv0N6ef2SHU6foCIbh3+uS+gnRiuVvvx2gc8vjIbIgf5rwBv8iOnaG?= =?us-ascii?Q?MPF8iTk0fIzw5r52DLQ2ZjvPMPsfsu8zN/spVqhbM4/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bXzZixitmx5W7DupmV5twMLk2kArCLldIU6wJZMJKzepUD?= =?us-ascii?Q?4HPFE8Yks2nIpjJ2RY6/oVvCohTQ1nXF4xdnekQvcF9Tmi2qFF3ozpQpfPgZ?= =?us-ascii?Q?R0TUQuUkHd1X5ZGijtnDpy5CWR+iaTqFnf0x5LLix8JwlNYmSBuddvmj3Zzn?= =?us-ascii?Q?aBnZBS/NbagNd22Y8i1m+xtI9l9iSdwUgsgTd8me88bxV/eS41/328lpHlhp?= =?us-ascii?Q?1Lzf8D6LQDzxmU9WQTOy1+bR2e8xxUD9hLY25aYsZI/IOVrNyXvYD06S4S6Q?= =?us-ascii?Q?Nn/TXskQ8PKHLztKb31iR9WcSYgkYfqrl0VQ6BaIM874E995qmSuiFxBeeOH?= =?us-ascii?Q?0ghlPLWdEjBBdgpjjMYORas56F+2HpXwnH2m6FhMcj3AZIh+sq31ppXEGj8f?= =?us-ascii?Q?gfL2VI4rvdfcSo2DVB85wSqrUWRzMLDvm3M5jrjz?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB3408.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3cc55eae-2ef5-4709-7949-08db140d6036 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2023 13:13:08.4057 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: oDUrVEPcBJiAMEH/aOIvzeX3wwXgjiYri6HO/RNsgia4kTHOJ7ykPU+qcSMY5VmP3ZCql6pTvla9KEhwHvCNrA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR11MB6070 X-OriginatorOrg: intel.com X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Acked-by: Kai Ji > -----Original Message----- > From: Akhil Goyal > Sent: Thursday, February 16, 2023 2:25 PM > To: dev@dpdk.org > Cc: Nicolau, Radu ; anoobj@marvell.com; > g.singh@nxp.com; hemant.agrawal@nxp.com; Ji, Kai ; > ruifeng.wang@arm.com; sunilprakashrao.uttarwar@amd.com; > rnagadheeraj@marvell.com; matan@nvidia.com; Akhil Goyal > ; stable@dpdk.org > Subject: [PATCH 1/3] examples/ipsec-secgw: fix auth IV length >=20 > Currently, cipher IV length is getting used to set auth xform IV length. > Auth IV is needed for AES-GMAC case, and in all other cases, auth IV > should be 0. > Used a separate auth IV length to separate out cipher and auth cases. >=20 > Fixes: 9413c3901f31 ("examples/ipsec-secgw: support additional > algorithms") > Cc: stable@dpdk.org >=20 > Signed-off-by: Akhil Goyal > ---