From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C4332A0487 for ; Fri, 5 Jul 2019 12:12:59 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D03711BE23; Fri, 5 Jul 2019 12:12:58 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-eopbgr130058.outbound.protection.outlook.com [40.107.13.58]) by dpdk.org (Postfix) with ESMTP id 8264E1BE1B for ; Fri, 5 Jul 2019 12:12:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f1L92HaeDJkPQc6z/m4szuwZ/j0lIW07XwGXISAIKwU=; b=euH0xoS67A2aXixGJ6CXzP5hZu5EibfnH+vmR8L0qjiwejnQaJ3EN1wxJwuKF4iqNeBhengus3s1ADDWBmQl86UmfzcNapQtMeUv4nyZUUNLpA9LGBEhk7b+YpIgKU5dUnLtba+IUvZgQpZz3bAk0X2sEJOD5wBJUbjqwNlYLkE= Received: from VE1PR04MB6639.eurprd04.prod.outlook.com (20.179.235.82) by VE1PR04MB6447.eurprd04.prod.outlook.com (20.179.232.216) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2032.20; Fri, 5 Jul 2019 10:12:56 +0000 Received: from VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::a929:3d03:7bb7:d5e0]) by VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::a929:3d03:7bb7:d5e0%7]) with mapi id 15.20.2052.010; Fri, 5 Jul 2019 10:12:56 +0000 From: Akhil Goyal To: Fan Zhang , "dev@dpdk.org" CC: "konstantin.ananyev@intel.com" Thread-Topic: [PATCH v7 0/2] ipsec: ECN and DSCP header reconstruction Thread-Index: AQHVMlU1QY5BcYe580CMMapxrAbJKKa7z41w Date: Fri, 5 Jul 2019 10:12:56 +0000 Message-ID: References: <20190701120124.70418-1-roy.fan.zhang@intel.com> <20190704104236.65578-1-roy.fan.zhang@intel.com> In-Reply-To: <20190704104236.65578-1-roy.fan.zhang@intel.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=akhil.goyal@nxp.com; x-originating-ip: [92.120.1.65] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f9183b5e-e055-4998-fc56-08d701315984 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VE1PR04MB6447; x-ms-traffictypediagnostic: VE1PR04MB6447: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 008960E8EC x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(136003)(376002)(346002)(39860400002)(366004)(189003)(199004)(73956011)(66556008)(66476007)(478600001)(76116006)(7736002)(66446008)(305945005)(2906002)(5660300002)(86362001)(64756008)(66946007)(74316002)(4326008)(25786009)(14444005)(256004)(486006)(476003)(8936002)(8676002)(81156014)(81166006)(52536014)(2501003)(14454004)(68736007)(44832011)(6246003)(446003)(99286004)(6506007)(33656002)(110136005)(7696005)(71190400001)(71200400001)(11346002)(3846002)(66066001)(6116002)(6436002)(9686003)(76176011)(55016002)(229853002)(53936002)(316002)(102836004)(186003)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6447; H:VE1PR04MB6639.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 4TkTN9zRjxzwxOKvAicxBK4XcgiqiIfxjJw1ZZbUJE08BZQs/UH6UqFUoPJVZsl2nVstXpgRno0Xlu1NKeL5mU+RNulJnQx1irP+vkKAKGqBpkCHfL98YvdkbMGVCspunJPOB04Glhbkcpo0YgXdyPpFdMeJzRmrMhme7AOPIYfGeaxLQ2GRcDEiC0JiJlpdpzdgoghXgcDJQov5qA4wATjr8q3RT9B82u7cNT1SHng39quTVvA2zZRGxlq54bZTwGpuxOiVd0HsAxHwy/qeahZv4sCRIyBlS/Ol/JTmUaZ5uN1YFnPuv/eTs/p+nHVn+ODyjwSGKCJWIA5iJYk3D8DGMuVH5S5y3NGe42LEEVRNEvCfufxu7Eoz0RddUIUvYykBoJBJwRnoxIeSvKUh5h5+hvAkVGOsAlIkfJTXijM= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f9183b5e-e055-4998-fc56-08d701315984 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Jul 2019 10:12:56.1808 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: akhil.goyal@nxp.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6447 Subject: Re: [dpdk-dev] [PATCH v7 0/2] ipsec: ECN and DSCP header reconstruction X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" >=20 > This patchset adds the ECN and DSCP tunnel mode header reconstruction > support for rte_ipsec library. The ipsec-secgw sample application is > updated with the feature's enabling and a python3 script for testing > the correctness of the implementation. >=20 > v7: > - rebased on top of latest dpdk-next-crypto. >=20 > v6: > - update_tun_tos function split for inbound/outbound. > - get/set ipv6 tc change from macro back to inline functions. >=20 > v5: > - Fixed a checkpatch error. >=20 > v4: > - Fixed a bug. > - Refrabricated the code a bit. >=20 > v3: > - Rebased on top of latest dpdk-next-crypto. > - Updated the library with individual header reconstruction function. >=20 > v2: > - Fixed a few bugs. > - Updated according to Konstantin's comments. > - Added python script for testing. >=20 > Fan Zhang (2): > lib/ipsec: add support for header construction > examples/ipsec-secgw: support header reconstruction >=20 > doc/guides/rel_notes/release_19_08.rst | 6 + > examples/ipsec-secgw/sa.c | 2 + > examples/ipsec-secgw/test/run_test.sh | 3 +- > .../test/tun_null_header_reconstruct.py | 479 +++++++++++++++= ++++++ > lib/librte_ipsec/esp_inb.c | 13 +- > lib/librte_ipsec/esp_outb.c | 4 +- > lib/librte_ipsec/iph.h | 164 ++++++- > lib/librte_ipsec/rte_ipsec_sa.h | 10 + > lib/librte_ipsec/sa.c | 18 + > lib/librte_ipsec/sa.h | 2 + > lib/librte_net/rte_ip.h | 2 + > lib/librte_security/rte_security.h | 9 + > 12 files changed, 703 insertions(+), 9 deletions(-) > create mode 100755 examples/ipsec- > secgw/test/tun_null_header_reconstruct.py >=20 > -- > 2.14.5 Applied to dpdk-next-crypto Thanks.