From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2CA1C10F14 for ; Tue, 15 Oct 2019 13:53:40 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 68C93218DE for ; Tue, 15 Oct 2019 13:53:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="SStKx+uf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 68C93218DE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=nxp.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B209C1EC7A; Tue, 15 Oct 2019 15:53:39 +0200 (CEST) Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150048.outbound.protection.outlook.com [40.107.15.48]) by dpdk.org (Postfix) with ESMTP id 259EB1EC79 for ; Tue, 15 Oct 2019 15:53:38 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jf7eZHeUg+JF6QpAN2q32Z9oHiSk5bdr67WEL1Ar40cUAOuXluYunCHbBOwb5e00FbKACWrwZIwle2YgJt/ygxjjxKvhlB8p1R+AQJq1WphpWMlaZ4XWjOQlfDZBJZwDh6qXLk5YS/LVX0BVZC3og1e0euc7OWw4aqsAGf5ErdMoMjShPGKyVCLtbrNcq+y13lSn5z5XErs9m5CFh3el2tYuPfao4SVP+mvzclJvXDLHJMvZF9iBXusNxtXU2/Ci2C481c6jXUfBVybnv0VnzzIyCH2fPQIyTu/Maj9IWWGdLacwa076QZLQf5pyrFHTdE8Kwashvhdb2sXG93xr2g== 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-SenderADCheck; bh=/+WHJYsddsn1XVG8tTq2+IAwGQjnibq/kkOasgY9MXE=; b=GugZEicV2WHVkjXMksPLKNI8BG2bnVOG7VkUEfidr8kZ6l6T3jlkF6GDdCLWFTmHgXYoBshSeWPrwmuy8IjmQbvI0w/IqisHNU7fwkIiuQLWmNROCKhEhCeKL3f+AWaYo1Q4WN28eIjiKTQ8qI34+GTzD/LCCzKf8FkhqamCCDj9JbloN2P20wjpOrF01FqgSDDsIV0Dyp0r6GIYN6vHZZAJct17H6XRNs6V6vZplJQ6kD4CU6nnhXptcpM9EeaDY1RszEoYax/PUY5wsu96dY4t++1Ic32CQK6CyqaLkt7Y+9BOgxnARttWd9EtfLN/OzcUp/goPosKPIjyNBpOBg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none 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=/+WHJYsddsn1XVG8tTq2+IAwGQjnibq/kkOasgY9MXE=; b=SStKx+ufmr1Bn8N8myxnPlvAXhhpkZ4mE85rFgDek7AuTGDdhoVeF8H4uaO1+0RK5nkmIg76tO1qCLttRI6lKeidt9F8aBv22kRPAKj5w104F/nHc2lfRZOMBDzw3PVGoY0J5W4AQOFeY6F8q/M335kJFmWGyoHsgea9gWGV4mk= Received: from VE1PR04MB6639.eurprd04.prod.outlook.com (10.255.118.11) by VE1PR04MB6718.eurprd04.prod.outlook.com (20.179.234.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.21; Tue, 15 Oct 2019 13:53:37 +0000 Received: from VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::c045:5df2:ba1f:c3ee]) by VE1PR04MB6639.eurprd04.prod.outlook.com ([fe80::c045:5df2:ba1f:c3ee%5]) with mapi id 15.20.2347.023; Tue, 15 Oct 2019 13:53:37 +0000 From: Akhil Goyal To: "Ananyev, Konstantin" , "Drost, MariuszX" , "Nicolau, Radu" CC: "dev@dpdk.org" , Lukasz Bartosik Thread-Topic: [PATCH v2 1/2] examples/ipsec-secgw: fix SAD selection logic Thread-Index: AQHVcsP1lt53B9uVGE6M+I+uUDtHm6dT+Z4AgAGPX4CAAAaIQIAAL6QAgAYaNWA= Date: Tue, 15 Oct 2019 13:53:37 +0000 Message-ID: References: <20190905123523.172-1-mariuszx.drost@intel.com> <20190924103539.12052-1-mariuszx.drost@intel.com> <20190924103539.12052-2-mariuszx.drost@intel.com> <2601191342CEEE43887BDE71AB9772580191975980@irsmsx105.ger.corp.intel.com> <2601191342CEEE43887BDE71AB9772580191975C03@irsmsx105.ger.corp.intel.com> In-Reply-To: <2601191342CEEE43887BDE71AB9772580191975C03@irsmsx105.ger.corp.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: 176a2efd-0f6e-420d-4be5-08d7517713fb x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: VE1PR04MB6718: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:556; x-forefront-prvs: 01917B1794 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(136003)(396003)(346002)(376002)(39860400002)(51444003)(199004)(189003)(71200400001)(8936002)(86362001)(76116006)(44832011)(99286004)(66556008)(476003)(71190400001)(33656002)(446003)(478600001)(11346002)(6436002)(25786009)(66446008)(7696005)(26005)(66476007)(66946007)(486006)(229853002)(102836004)(76176011)(110136005)(6116002)(5660300002)(54906003)(316002)(6246003)(14454004)(4326008)(81166006)(14444005)(52536014)(2906002)(6506007)(256004)(64756008)(186003)(3846002)(9686003)(66066001)(55016002)(4744005)(7736002)(8676002)(74316002)(305945005)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:VE1PR04MB6718; H:VE1PR04MB6639.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Vt7UlZzxxTvM9ynfyyF1xXcSnqJ1oH7IyXJtsoo3bx1AGOr+z8GfnhpRCABNIXaK6ISk1ijwiJ9FlkrsEv2UxhgIarbLqnBXla8NXDfwtINBh/enSjXcPiQu5d89mRFnmqISt+esqtyN5uUpe8+72TcVvnqPeLUk+rK1Hgd+p5eHjZ6Mx/ZVlk4wQvvF5XgRQFptSTnvfIaDDO6mMlcXj9GBaXm9D5zEmxf44h6+JIw26yLp83kGJfEeIspAhozKw+2SGFjvl+610l8KR0mmPl2xNTyzxrQjn4nTZrzNM9TWXPaHUFrymnM1yBmy739ussT5kjn4fpgqUkhzS99VVbVFkKIWgrGIgZu+yJdgpwbZVBQducxPy5ORam7EssHhz0yRpV3iB9+KVBJ8z3IiGFmK2wIERMsipU1RhZokSqY= x-ms-exchange-transport-forked: True 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: 176a2efd-0f6e-420d-4be5-08d7517713fb X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Oct 2019 13:53:37.3119 (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: +vPaShJzasZNJXuogJMncanZdK2dY9QkmNcBwS05s7sVJ3c9NCdk4biTiP9itM+k+zt+vnzAYSXbKlTHj+ZnLQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB6718 Subject: Re: [dpdk-dev] [PATCH v2 1/2] examples/ipsec-secgw: fix SAD selection logic 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 > Ok, so to confirm: > Your only issue here is that patch is that we have to split ipsec-secgw S= ADB into > two? >=20 > No objections to other part: > - search for given SPI value across both SPDs (IPv4 and IPv6) > - for each positive result create a new SA. > So if we have same SPI in both IPv4 and IPv6 SPDs instead of one SA that > would be referred by both SPD tables (current situation), > we will create 2 independent SAs - one for IPv4, second for IPv6. > For each one a separate rte_security/crypto session will be created and > programmed. > ? >=20 > Because, I think that part will still be needed even when will have new S= AD in > place. Agreed. > Konstantin >=20