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 21FFCA04B5; Sun, 25 Oct 2020 16:01:17 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6D0B02A66; Sun, 25 Oct 2020 16:01:15 +0100 (CET) Received: from nat-hk.nvidia.com (nat-hk.nvidia.com [203.18.50.4]) by dpdk.org (Postfix) with ESMTP id D299B29D6 for ; Sun, 25 Oct 2020 16:01:11 +0100 (CET) Received: from HKMAIL103.nvidia.com (Not Verified[10.18.92.77]) by nat-hk.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sun, 25 Oct 2020 23:01:09 +0800 Received: from HKMAIL103.nvidia.com (10.18.16.12) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 25 Oct 2020 15:01:09 +0000 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.173) by HKMAIL103.nvidia.com (10.18.16.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 25 Oct 2020 15:01:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lvelAo7wQpHDZSDx0ds8E8zfRLXKBdiT7ND5E61teMh+bq7reoGIBdGoB7kpqSF2Fa1huPBPHEO2i66JyxWKho0hcp3Qe6GPmZSq/DSaJKsw7NIrBFOlNVrzKuo/EWuME5ewzSxeKMQYR75n84lqUu+zcb6sbOxZLTLNvSwurulqf1VCPV+8rAyX5B52bIQYVxfqKloIt7qtMQ11aDHJH9r5mQcweftRtA+IfLaZFJRoH5vrf6MOummrjfSPpEISz1yAA0y+TirOuqimvnSZI/KRcUymBjN2ASkoWWGDBy1NZvpKDSKp8EFiIPahGC6JaWIJEZIXrMbZznQFRwkK6w== 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=eYc5xj869ZX8axFg50xMhF1XuSVq7xld9BDyubGdeDA=; b=cB/8nXsqQnfd2dDXiU7hYf9rg+ufXMu25xlQ5Ojoz78JaECrkZSeTWc5+QVV924yqCWhPn4Oqv7eKqqenivvYKGiwKFBCRtE3eDD+v91Eeh7yJW2HkntSnodDpPFJANAdjPiTQsByiyiv0GEBWu6pPlTyUuyGLv/KTDM7waveVtL/fJ/gt7q7+cQyEprb2mZyVPCmbqrQs6H8fySV8d5FI6HvJwS/5mWBnB7CbIMqdoWPuvXSdjSM/yoYLdC7OOhHhyUHPBRiv5VPMdd6kNlz61nCKJ9quzOZOUbOD4GnAKpdFckY7XlIfOMeFGATtW6TvtZ2qiihdVFkYgyx1Dx7w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from DM6PR12MB2748.namprd12.prod.outlook.com (20.176.117.220) by DM6PR12MB4452.namprd12.prod.outlook.com (20.180.253.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3499.18; Sun, 25 Oct 2020 15:01:05 +0000 Received: from DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::f506:4af8:281b:cdeb]) by DM6PR12MB2748.namprd12.prod.outlook.com ([fe80::f506:4af8:281b:cdeb%7]) with mapi id 15.20.3477.028; Sun, 25 Oct 2020 15:01:05 +0000 From: Raslan Darawsheh To: Gregory Etelson , "dev@dpdk.org" CC: Matan Azrad , Eli Britstein , "Oz Shlomo" , Slava Ovsiienko , "Shahaf Shuler" Thread-Topic: [PATCH v5] net/mlx5: implement tunnel offload API Thread-Index: AQHWqthTCh58yyhJXU6Eyx67vRKX8qmoaXyA Date: Sun, 25 Oct 2020 15:01:05 +0000 Message-ID: References: <20200625160348.26220-1-getelson@mellanox.com> <20201025140809.31850-1-getelson@nvidia.com> In-Reply-To: <20201025140809.31850-1-getelson@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [212.29.221.74] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 52544902-583c-462b-eeda-08d878f6cc40 x-ms-traffictypediagnostic: DM6PR12MB4452: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1148; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 0twE79kRIs7LwqtaGPJEcsPFNygE05onMgPYWVBHVwBSTgY/rNFROUdIo4maRjZmb5IIQvIb1qRM+565473h+ymZOeVZFCZ8i3I0EI5T/R58ZUN/IKydrix0FEa8YoymZslAMYcGga250oEKyeLWg45olqkYFLnIzBxwQfnbiQ4xwfc3H/Qlr7noAZvg5F9ASHXpE89/19hLt7wy8LmDqLDs62Jr/EzU6sPpNfFNnUXQ36dW7BQsjNSw6fJJLN6fkQLSOq0loYX9JCovgVFIW/GlNRJJ3TVW6p57DrzHa1YzUMr0fpyXUzddSIxzAOrPUvNXrH+wOHx21LBvm1HIkA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB2748.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(346002)(39850400004)(376002)(136003)(8676002)(9686003)(66446008)(186003)(4326008)(26005)(8936002)(478600001)(7696005)(53546011)(6506007)(55016002)(107886003)(2906002)(316002)(5660300002)(66946007)(76116006)(52536014)(66556008)(66476007)(83380400001)(54906003)(86362001)(110136005)(71200400001)(33656002)(64756008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: +TCWf3Z2ZyK6dHeEuqcdCaQAX1gaFuKVWPjtJoq98ZOQO9bNaiIXhl6kzZU2U03ZVgUD/JzKdaXsJb8LlM/5TyNMv9O2rjDKLZc69LJXza5euAutl7mw7qTmf2VtBzaMXcxkEb+Nsxd9uKr7M2etNFV7xneJRKgOj/8VBe1VOEfVMnQN3SgeULZ3zUv5RZAg1mjQZWwgqjEmy+L+1VAnD1WILjDRdrNG1zuKt+etDRAdpXwxIToigBQ0fyvSBQB0TOIhw0Zhr//N4HOIZyZDuAg4IaInfvUI+Py7Jf3111oAGqTEuSFol2+ScyagQBG+yCWCwaPmGEUrCqMWwvCFOsGFYgrwarNuUxgfTc6PdakAJ8oOhnQlIeqLUJAZIZsNuQ55c1UMdSP+00rOnZYxcH5girGnfF1I7daiwUdmwSzgprPcM2Obh2rsuzNNjgN8Q4oYgvQLXZtF1zUVta0oqVcaZHc/3gpNoi9IIRHjm7unTm6D+nrQtHSW47ddfDQ3UH8AZP1vywFawqchPPKE+1gBH3M4I0TGMlKqnk+cnmOC+GIz67p20zLUIAfVMMzoieq4Io+h0xxLUOVLx9d8KwAy8shDvhX4WW1+uZKyz9dVsgmZ2RBDdX7WV2CjZlZMS+rKrGrAXG+5z7XUfZHejw== 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: DM6PR12MB2748.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52544902-583c-462b-eeda-08d878f6cc40 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Oct 2020 15:01:05.5371 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: mSB1n+Cet5WjglE0LJg1HH2pGfF8ibuNSF45xRXy7x6c2tFLxJMJoNngmo5z8Z/AcqWg61xj50DYe04C8JXO5w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4452 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1603638069; bh=eYc5xj869ZX8axFg50xMhF1XuSVq7xld9BDyubGdeDA=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ms-exchange-transport-forked: x-microsoft-antispam-prvs:x-ms-oob-tlc-oobclassifiers: x-ms-exchange-senderadcheck:x-microsoft-antispam: x-microsoft-antispam-message-info:x-forefront-antispam-report: x-ms-exchange-antispam-messagedata:Content-Type: Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=j3sIIDsqLzgxezP6fvXnAhh7d9DOm/mWWo2SPydZCv4FFoj0MqZ9JeuWRM8Myrldd pd0RR0o8iX9dRtA78igblb5JREkkMDbo3jp0djavgnhRQ5sFWQl8qP/2r6Y2RNYYq8 u0rGePMJr1RhzMx5yFkMlZ4v5Vj4ODsV9QDc1hic/R66YIPTMj1JlPriBE9TpZaISP FNLOSNQE+aBO0DCFwQEIaRooCVCGF5fqCwXo9YUJxyMA9cAkioqJFsB3ynMQtOTy8f XsS5gpHg8fmTApflPYHGS72ZcfzVrJKvtgui/5m8jvDIsuN6ONKzyoTaoIv7gBqaU5 I8BrYrT3UBPsw== Subject: Re: [dpdk-dev] [PATCH v5] net/mlx5: implement tunnel offload API 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" Hi, > -----Original Message----- > From: Gregory Etelson > Sent: Sunday, October 25, 2020 4:08 PM > To: dev@dpdk.org > Cc: Gregory Etelson ; Matan Azrad > ; Raslan Darawsheh ; Eli Britstein > ; Oz Shlomo ; Slava Ovsiienko > ; Shahaf Shuler > Subject: [PATCH v5] net/mlx5: implement tunnel offload API >=20 > Tunnel Offload API provides hardware independent, unified model > to offload tunneled traffic. Key model elements are: > - apply matches to both outer and inner packet headers > during entire offload procedure; > - restore outer header of partially offloaded packet; > - model is implemented as a set of helper functions. >=20 > Implementation details: > * tunnel_offload PMD parameter must be set to 1 to enable the feature. > * application cannot use MARK and META flow actions whith tunnel. > * offload JUMP action is restricted to steering tunnel rule only. >=20 > Signed-off-by: Gregory Etelson > Acked-by: Viacheslav Ovsiienko > --- > doc/guides/nics/mlx5.rst | 3 + > drivers/net/mlx5/linux/mlx5_os.c | 18 + > drivers/net/mlx5/mlx5.c | 8 +- > drivers/net/mlx5/mlx5.h | 3 + > drivers/net/mlx5/mlx5_defs.h | 2 + > drivers/net/mlx5/mlx5_flow.c | 681 > ++++++++++++++++++++++++++++++- > drivers/net/mlx5/mlx5_flow.h | 171 +++++++- > drivers/net/mlx5/mlx5_flow_dv.c | 254 ++++++++++-- > 8 files changed, 1086 insertions(+), 54 deletions(-) >=20 Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh