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 6D654A0093; Tue, 14 Jun 2022 17:44:10 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1157841145; Tue, 14 Jun 2022 17:44:10 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 970CB40DDD; Tue, 14 Jun 2022 17:44:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655221448; x=1686757448; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=lYDtdGjuQyNjnT0cTXJEaPlPD21AQKFAoncOQO/jDn8=; b=n86ucy7wTN0fnC6gx9WsiF4I8ZjPz3aCazDiq2ZU5Ru4zHgJKzr6832Y a36lwFiqr87ys8UC8GpMoJiOFmfJUzMKl8e/P4HchPknZxKxmJSYVNGFy wjYR+8BgdzkQPZTmXTggrQOmTvdDJ9vo9vUcxuTBU9EfO1/P1TRnXgNdU 0et/FiKwQ6WKEEzrGLwJMxRjkEj0f+6FeylfmaoTnTWBKs4+AEYUN6mYa sxHXEXLc1Aja2qzPThg4MzkxNzz6ioGhA3yTBMZ4WNMVrFbY54tYGgzFP NfJkDOLY8kl57F2FNCWPrLtWh3JakVmxuanVwhwYrWlEQUc2pXrlNjjVy w==; X-IronPort-AV: E=McAfee;i="6400,9594,10378"; a="304072248" X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="304072248" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2022 08:44:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,300,1647327600"; d="scan'208";a="618051018" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga001.jf.intel.com with ESMTP; 14 Jun 2022 08:44:07 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Tue, 14 Jun 2022 08:44:07 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Tue, 14 Jun 2022 08:44:07 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.102) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.27; Tue, 14 Jun 2022 08:44:06 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GH3T6r4ygNg/zJ1wnXyTKQy2pF6eLy850qc4XUxiELpv7MEV6E2u/GOkyovvnmNCuqrmjahB8OuynkkrWZRHxl5FO0NrC5/reklULaaclgmWvqzRWsKqRBZfN3HAY+i1+TbirD8+iUiMziS8oXYCvKaQ9R6Q0XNbTrIsUtwTgjo0zm1mEXTLPRvHDrKNN+NnxEHXkLDkC+0VgKQNPTTeF4zPOgS/ehfybrF7XlAiD17c6mzfLfN/+wDav3VXa2xYFFo/NYeokyCaUn4cVuoeazQ0f8e0VTDq9hWoQu0IXRXY3WkLEyZeLSEDeIQ4v2aAnDY6TUVr+bQIMXu22D+48A== 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=Y8/nHRXJPghdxMXw9FoPDhNNKYx3tq1d+WoF2ko89RU=; b=mgEe6hGvpYbTniRFn2xKLy5E/g/G8qRrGP3vSMiPJVWEMHGgDZfMdX7dThjKpQTPxIYvC6y67qWFfd5sDbuOPI36fX+YEltKn5cuWt9VPrHOVL9EtbmJC7+6UGb33YCtqmJgSBjzPL5tEENjVYsf+ob9kznvOwkrinsFTZYqWx5ImSeJYgYlddYwKCcfOlrd4hD2ZR0+Tm0I4VlWngbui+wOBTY9ZWm0pNJ+iIPkH7A+SKmhHMvGB474i2xzN+ikxfuRPJTe6ImKgUIoTIL9E8VUlLicu89gP6c+qwNvUwrVjLLDkmAuxcvAhxFCZXzqYHnXfzlBq/7lJkxffYQKTg== 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 MW5PR11MB5809.namprd11.prod.outlook.com (2603:10b6:303:197::6) by BL0PR11MB3091.namprd11.prod.outlook.com (2603:10b6:208:7f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Tue, 14 Jun 2022 15:43:55 +0000 Received: from MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::6537:6de6:7337:1b87]) by MW5PR11MB5809.namprd11.prod.outlook.com ([fe80::6537:6de6:7337:1b87%6]) with mapi id 15.20.5332.017; Tue, 14 Jun 2022 15:43:55 +0000 From: "Zhang, Roy Fan" To: "Nicolau, Radu" , "Nicolau, Radu" , Akhil Goyal CC: "dev@dpdk.org" , "stable@dpdk.org" Subject: RE: [PATCH] examples/ipsec-secgw: fix ESN setting Thread-Topic: [PATCH] examples/ipsec-secgw: fix ESN setting Thread-Index: AQHYf+xi821aEFlcaUW3RXLX60K7pK1PCyXQ Date: Tue, 14 Jun 2022 15:43:54 +0000 Message-ID: References: <20220614124313.1562369-1-radu.nicolau@intel.com> In-Reply-To: <20220614124313.1562369-1-radu.nicolau@intel.com> Accept-Language: zh-Hans-HK, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 55f092c4-92a6-4796-db19-08da4e1cb044 x-ms-traffictypediagnostic: BL0PR11MB3091:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8POx2LbXPWDixF/DT14zq4bXY4HPBrtwNFR61LgR5FDIcFJIVD00q9u57S+GmQBL0/trbsdbC+210d4HVAVL68LZydEXjNByNB6qAjpGp9Yxf2a1LaMGKXsoioQbR1u6P8zRIEd7/OfDJrSAGgJCoy48YsHBaLgCmkwSsG8B334bVqEp+G6UY2KYg/Rh9Xnw3+jskMg79PA2L635uvrG/a1Uk/zk7mGUnYTrJ14Tg9AcEoF363YCr5d9JfH/np5SRyeetLhmnm+vgNdA6IeYT5VxCOjV2NAGxxolUL57RS1vekYfyC7ux5bz+ZRno33YVXVEzpHIcAHzgnFIUlvcoWy/P0qCgI/w23IpLD1X1Q8giLCJG7JvK6GmLdFkXUwoh0xk+xkBe/0QM1iBu3KhSXfUh34dlh6yu4h+w2KXV9ZEkS8S2wYJY8WnRGfovwhQIirFmDPyt2enncNt9ydCD37X8MQATpJDLinCBVV0fUWZ/zxAqO7t6mCESPVhz2WQ6FyaCERJ/pqA+X+7GEzW/d9UfGs+A8XgBS1BSc6Z3fHq0YvMv9PvzU51m0dYjxD2axI1bNaRI61FH18jROEKE36srZuGkrPZ6/u1diiKQaEKlUMbGxuzpblpelWKWxC0y5ejyZx1kz57Flmmgo3H7GOSU53RXl4UTkTF5jyGFX5kAys1fhfiV4pVKtP+TgUIgRc2LdSH1Be33W+A1MdkTg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MW5PR11MB5809.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230016)(366004)(55016003)(83380400001)(186003)(2906002)(82960400001)(38100700002)(86362001)(54906003)(33656002)(508600001)(26005)(316002)(8936002)(52536014)(122000001)(110136005)(7696005)(6506007)(53546011)(9686003)(71200400001)(66946007)(66446008)(4326008)(8676002)(64756008)(38070700005)(66556008)(66476007)(76116006)(5660300002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?W4ib0Zv3ySYGs+dox69DxrEpKv0pt36sqFLWkVyxYUNwAdDxWsgKO4Hx?= =?Windows-1252?Q?tX/5NEcHo08+osGT0WovTR4qRbPWEWovrHsbOFmhoMrxeq+Ulmo1J8Xm?= =?Windows-1252?Q?FLEZqXSx0DO74IcVjKRaTtgvZzp+u93Rbq8m11J9t9uesHLJVhlN21+X?= =?Windows-1252?Q?GOKhn2I1/FNAWofo+FftHlSIAqjNC6/G0J1ji+yzpjYxsb9BeJ+71MRs?= =?Windows-1252?Q?B/caiSoZ84KHhpPm9l0ufirzA9vVKJNErCCT2S5Dvbo0hg5yLGk7KdsR?= =?Windows-1252?Q?8o95sBlF+QwbaV6tqoFjx8mr+VwktQV65sg6Jt6Q0xsjEUS9uHWlyV2/?= =?Windows-1252?Q?sF+52fZhcXv181PzakHZVNr1gg37A0UWrl5KWluGUfuYIW3KkVw74YwY?= =?Windows-1252?Q?0IcY6tTgMLX8hQZyCsMSIBmRMEz5ByfmGqGGMpzasw9FQzDCtgVG+7s+?= =?Windows-1252?Q?3u0bGtBMmMWnODSdpTN6gh5CI72JMrW/agNPT/+fjJMjsALB1MQVXLMf?= =?Windows-1252?Q?JNtaaVRycLnMBnbl5nWyo/CAsVaqxzC+/nUL6UGjNe2U65tABiSuldod?= =?Windows-1252?Q?j+z2CoWWTLgTm7m4OmiWu06d6gN0wVliVgjAE0jEPJ/AEn9TolDAj0+S?= =?Windows-1252?Q?2sbGj55UJFnw99IyGheLU8hnSZvgK47mrT4kA7CdQGZip3j9k0Hn4IAV?= =?Windows-1252?Q?Jlu8XARoCATMMEaME/Qk4r0kVz8fluZ/Twb6Gi1HeuSgcfuNZS0o4yXU?= =?Windows-1252?Q?MvIqg98bPHvtC2IVL3O0RxRePtCxi4wSsszBubFv18ipWgWPz4Xj7gvH?= =?Windows-1252?Q?q0wokAA6eVlpoBXBmAfxf9JaHsEGv7F9SJtLycTs8ov1yJ1FgVReX2Bg?= =?Windows-1252?Q?OfOU13ZsX8NeNOyygm89XA4btJi9BrRALBKCKoGtbhahdiLF3CiMl3RM?= =?Windows-1252?Q?jfSzOJ6PjjLvbdLeBSzDeHeLYSmiDISbcAftq3OjQSzc+ZGQwkO1u29U?= =?Windows-1252?Q?eFdDxfgSRjZEacFUgSsrNsVwkGe/EKEsbBkpr7GZZ1af006Y0irioLzk?= =?Windows-1252?Q?iNKcBC4FPNv1RhughsgpDqHUHRqhIkyrzqxQ4eqsfLgj8OM/cOUBmQTN?= =?Windows-1252?Q?BbeESXxPV9ug5M5NYdWmU0z2V8dRxcKNamqwhptM8KnhZQI+oNa2VF9V?= =?Windows-1252?Q?wqgmw82+efK+2wRN7M7ntRR+fsQ5UxvmaPqHfI0/0kCmFPyWDRQ4mPsJ?= =?Windows-1252?Q?NcAtJY2W/UE6kP9jf6KChVS5KSCOA4hlatQhWh7l7/s2S2XzoxnuqlYJ?= =?Windows-1252?Q?UXyZGAElL4A3C5xUTk4yz7OJ8wgroJiogr/f9tNr40IadFaGnKNxSb/2?= =?Windows-1252?Q?+mauehGBDZ5DKDCR8/i7LkVpMPUoVWWx+g+xru5lQ25B3dI1TBIb+Qd6?= =?Windows-1252?Q?Qlz4jIbBtGAfDErswE5zva5sybpi+3pvkvVcibzUMYnmh4JGr1MWaEk9?= =?Windows-1252?Q?CzRZVbL1OsFKfOOEymHsOGx4CZH0MeKRMjbxZYG+n+6ntdrryHXW2Hl6?= =?Windows-1252?Q?nKqSUrunB7EY1AzlHnWHFVuEJLo099ywRif8AvAnqXB54hehoOT76z1h?= =?Windows-1252?Q?Uh71FYYZpSwbDscdWvLntMjYr4vIYVOj1HdPqm8OxZvkYs7w+7ij1NFF?= =?Windows-1252?Q?O/Ti2C6NnLu4NcVzONKrPhfK1mkVVtqF/wVUn8+qhQc9wozswCvqPVzP?= =?Windows-1252?Q?zAg6Byar3OqV0tgWLlIVDF4uVHKeL8RGqJKcGjIByxID7Qq9eowLja4R?= =?Windows-1252?Q?zaVB0oiMCU6NGDcCBhbTm9J1ByHgJ4zKeIO85cDTm/dnqD43EQV8fnXB?= =?Windows-1252?Q?Zvpki/sIxOUGiA=3D=3D?= Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW5PR11MB5809.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 55f092c4-92a6-4796-db19-08da4e1cb044 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2022 15:43:54.9377 (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: gn4QBRZEjw/o7dQutJSSPfrR4trcIW1x5TgFwrAwTo0iWjAee2otpILf4srwW4su0jbQA5gCXo+vRdZIBLEmpw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR11MB3091 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Radu Nicolau > Sent: Tuesday, June 14, 2022 1:43 PM > To: Nicolau, Radu ; Akhil Goyal > Cc: dev@dpdk.org; stable@dpdk.org > Subject: [PATCH] examples/ipsec-secgw: fix ESN setting >=20 > Fix ESN option flag and initial value for the rte_ipsec library path. >=20 > Fixes: 560029d5cfc9 ("examples/ipsec-secgw: define initial ESN value") > Cc: stable@dpdk.org >=20 > Signed-off-by: Radu Nicolau > --- > examples/ipsec-secgw/sa.c | 5 +++++ > 1 file changed, 5 insertions(+) >=20 > diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c > index 0b27f11fc0..8505a676ef 100644 > --- a/examples/ipsec-secgw/sa.c > +++ b/examples/ipsec-secgw/sa.c > @@ -1488,6 +1488,11 @@ fill_ipsec_sa_prm(struct rte_ipsec_sa_prm *prm, > const struct ipsec_sa *ss, > prm->ipsec_xform.options.ecn =3D 1; > prm->ipsec_xform.options.copy_dscp =3D 1; >=20 > + if (ss->esn > 0) { > + prm->ipsec_xform.options.esn =3D 1; > + prm->ipsec_xform.esn.value =3D ss->esn; > + } > + > if (IS_IP4_TUNNEL(ss->flags)) { > prm->ipsec_xform.tunnel.type =3D > RTE_SECURITY_IPSEC_TUNNEL_IPV4; > prm->tun.hdr_len =3D sizeof(*v4); > -- > 2.25.1 Acked-by: Fan Zhang