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 99F33A04B7; Sun, 4 Oct 2020 15:59:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 19A351BB5C; Sun, 4 Oct 2020 15:59:41 +0200 (CEST) Received: from hqnvemgate24.nvidia.com (hqnvemgate24.nvidia.com [216.228.121.143]) by dpdk.org (Postfix) with ESMTP id AB3851BAC7 for ; Sun, 4 Oct 2020 15:59:39 +0200 (CEST) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate24.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Sun, 04 Oct 2020 06:57:52 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Sun, 4 Oct 2020 13:59:27 +0000 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.168) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Sun, 4 Oct 2020 13:59:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MeQf6fWXalm9XFfTA/U9n0vwKYMYothzJONOh8ojC/HlZ+Y25Hx4mCIlDg1DJ9hlBKMp3fwlAWo9nFOpMH50yWz5eLwiwGQsRIphdqfqa7sVZshcOg39gHz8flF4izH8sV2SVJHLaDrq3e20SrVVsZ80TZaNMZFibEXomrlRb68p/N2EH3O0SAfHRVFwmziV7j6u8XePnJ2FutuysCDMSLkuJdSMOgLOBQzcrgZTjRNgx6F/R8cpnYHqTGhFAYsomb8bCca19v76ec8TdOoI+SueTcTJ0tcjbqpybomSvjO2IGg9XrvMZoxbHzycYR2UcEa6uawCkzgtqVkYKc9sgA== 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=lFohLi6f8NEzrtkUfy8lTRUhNK0ZxcUEbM683iosS+Y=; b=H7NFE50m9yxHQpnLQRzXoT6ZOrnnzS6gS6NwDjYr9GiTpioNRzgGTEkgfpSVzY7ctcLAVoO5B8jSXlbymZ9SQEmFeGvNM+uu7O4ED57RyOALI9LK1pfsQB9kkCokvp2ggcrvPxKsudQ1Q6l7TTuoduc6D9hNQtjSXn2X2mJjOv+qIJKHHihh50KYFo6tYnxYlPLV0QBIPtuHr7AfGgvsXXg5n+lO+FUDZ7nty48zUNwsCGCYT9ZE4NJxjJhiR2nhA+0eW3P0afsRaQfLy0OyaBb3aN2RCdZRKScX5yM97/ROjGafY4SIR0Uox6kXXIJxQwxAaxAV+7Ii47i93mWyQg== 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 MN2PR12MB4286.namprd12.prod.outlook.com (2603:10b6:208:199::22) by BL0PR12MB4964.namprd12.prod.outlook.com (2603:10b6:208:1c7::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32; Sun, 4 Oct 2020 13:59:26 +0000 Received: from MN2PR12MB4286.namprd12.prod.outlook.com ([fe80::61fd:a36e:cf4f:2d3f]) by MN2PR12MB4286.namprd12.prod.outlook.com ([fe80::61fd:a36e:cf4f:2d3f%8]) with mapi id 15.20.3433.042; Sun, 4 Oct 2020 13:59:26 +0000 From: Ori Kam To: Gregory Etelson , "dev@dpdk.org" CC: Matan Azrad , Raslan Darawsheh , Eli Britstein , Oz Shlomo , "ajit.khaparde@broadcom.com" , Wenzhuo Lu , Beilei Xing , "Bernard Iremonger" Thread-Topic: [PATCH v4 4/4] app/testpmd: add commands for tunnel offload API Thread-Index: AQHWmlV1hKwL+dmk90WtTLDvvKintqmHeENQ Date: Sun, 4 Oct 2020 13:59:26 +0000 Message-ID: References: <20200625160348.26220-1-getelson@mellanox.com> <20201004135040.10307-1-getelson@nvidia.com> <20201004135040.10307-5-getelson@nvidia.com> In-Reply-To: <20201004135040.10307-5-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: [147.236.152.129] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8487af62-0604-4c89-ca6f-08d8686db495 x-ms-traffictypediagnostic: BL0PR12MB4964: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3826; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4zOukMIMq72uEmtHE3pbdVDlawl0QXmGOijgYeAzr4sssBeV5Fh8VmP9M37dDzoaDqR6LJ9mpKathGGr6K37z26pptYUE0lfHD/ztzF0IrPjOn8RpI2ZgvuHcaTjIUCX26Rzlp9I1l8ef5WeaUVOL/owSkjlWJAgCv9D5CgxAeTIsv9JCtj8v/TnsxuMuOU55juNnkLPDIJle3CWhQmmRzo8OvgEptrHIo3YnKvxpLSjsaMnuIeAF5sRTXZfIz/ukvPpKw7/8Fuyr0aEK+SEJf8xoRGkkL8cr3IrYBwDpbBygOi+lBY2peKUlPUTo/FvP1ire6R9GHHP0TVp7ML29A== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR12MB4286.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(376002)(346002)(396003)(136003)(366004)(8936002)(83380400001)(4326008)(478600001)(7696005)(33656002)(76116006)(66556008)(52536014)(86362001)(66946007)(66446008)(64756008)(66476007)(71200400001)(110136005)(54906003)(2906002)(26005)(5660300002)(316002)(9686003)(186003)(55016002)(6506007)(53546011)(8676002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: iielKSL57T9yzY+fy0Dx+/u86jcPApSozUCl1TbVdpxyJKz3YGa9/IZsb4DnshN58tZY2XiSrmeqh9J3UqLqxOVWnY1zkl85HWJGwyxSL+UjbFl5KvEaEeozwPpIp0C/ecrF0FlAjaGECwJXwRN7UXa6e7mfRLnK5uLswduXDJwfxldnlyOUpjXhwbxCJZ5GK436wPemg+og9VSOsxkSKn8UMALE++oiPLzuhwQZP1ZuLMP1YWT8LN5L5r1CLcLGUr8uJSXWWKMFzyj+K7CSWhb5MRqyE4/Bj2CKvUf5f066yhYYyTN36V1DJ708X6COZfAyOc3PZsdisdPRN1Hx6Rs+wL7nqMhBBN0fqVOyEM+dTIOctQ57TjMHlKBBPHwezEWlwsdqXWrwtJOpY6NQQHbfZOsW9AyYbyXar5X7s2m+3SPgwhMbfiX2FHaoPwKVLIkGKTj18FyzP2ROJsGN9S6k29yOVqdR5HZR6JDqQG6j1KjON1SpA4gv5q3uU55vsyaqbfXlmWKzhopYJX3VtiZvU0b8ytjWxlsPDlA10bwvp98T0qHX9Q0WzLDrAUGNRVJ4nXMqMKzvb4Jjlx7R4D5jc8terbHKDRRpS5rgeMTDX3gOVBJJRRwl77yFvKiXijQOUW1qnjqhTMt/6LmQhA== 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: MN2PR12MB4286.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8487af62-0604-4c89-ca6f-08d8686db495 X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2020 13:59:26.1901 (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: tCBmp2TPq7Ar6LHWy8MFyqQUdlwePM+qpAq3kH0C5ndON9dIxw88eKFgn3hLRMpuhoY3HxuVEN4o60pKJmp31g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR12MB4964 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1601819872; bh=lFohLi6f8NEzrtkUfy8lTRUhNK0ZxcUEbM683iosS+Y=; 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=jCIrtpXUyKgirCZAQY0Dfolnp4XlblaIHsLezSYlHSrHcszAb8zxk9oeXIy8C06ia lQMwugD9DUuvXxwmnOp9Q4b8fGyrr5860dpaXsas3yIV5iiM7IpG64AuhNSqWsPxVC hHcE8RJU+a2N19TxCjaN79PnMJ/Tsk/S/PKyUUKkqWDfGBqWkvLhmqoQBhNu1L3y6y Uyc0cIEGKlQIVNXhFTzWhK0wIS2KDPnlKtJJVLsJ2e7/TyADg56ni3e4CJb1BXUZZp tvt9ZVO+K6QHQwOMPBZ64hRallAMtmhrhO5zQ++vF8AXshpIuV8ZpP7bBr9Xbh0FZU tuNyNhDeeDJ5g== Subject: Re: [dpdk-dev] [PATCH v4 4/4] app/testpmd: add commands for 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 4, 2020 4:51 PM > Subject: [PATCH v4 4/4] app/testpmd: add commands for 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: >=20 > * Create application tunnel: > flow tunnel create type > On success, the command creates application tunnel object and returns > the tunnel descriptor. Tunnel descriptor is used in subsequent flow > creation commands to reference the tunnel. >=20 > * Create tunnel steering flow rule: > tunnel_set parameter used with steering rule > template. >=20 > * Create tunnel matching flow rule: > tunnel_match used with matching rule template. >=20 > * If tunnel steering rule was offloaded, outer header of a partially > offloaded packet is restored after miss. >=20 > Example: > test packet=3D > = >>>>>> > >>> len(packet) > 92 >=20 > testpmd> flow flush 0 > testpmd> port 0/queue 0: received 1 packets > src=3D50:6B:4B:CC:FC:E2 - dst=3D24:8A:07:8D:AE:D6 - type=3D0x0800 - > length=3D92 >=20 > testpmd> flow tunnel 0 type vxlan > port 0: flow tunnel #1 type vxlan > testpmd> flow create 0 ingress group 0 tunnel_set 1 > pattern eth /ipv4 / udp dst is 4789 / vxlan / end > actions jump group 0 / end > Flow rule #0 created > testpmd> port 0/queue 0: received 1 packets > tunnel restore info: - vxlan tunnel - outer header present # <-- > src=3D50:6B:4B:CC:FC:E2 - dst=3D24:8A:07:8D:AE:D6 - type=3D0x0800 - > length=3D92 >=20 > testpmd> flow create 0 ingress group 0 tunnel_match 1 > pattern eth / ipv4 / udp dst is 4789 / vxlan / eth / ipv4 / > end > actions set_mac_dst mac_addr 02:CA:FE:CA:FA:80 / > queue index 0 / end > Flow rule #1 created > testpmd> port 0/queue 0: received 1 packets > src=3D50:BB:BB:BB:BB:E2 - dst=3D02:CA:FE:CA:FA:80 - type=3D0x0800 - > length=3D42 >=20 > * Destroy flow tunnel > flow tunnel destroy id >=20 > * Show existing flow tunnels > flow tunnel list >=20 > Signed-off-by: Gregory Etelson > --- > v2: > * introduce testpmd support for tunnel offload API >=20 > v3: > * update flow tunnel commands > --- Acked-by: Ori Kam Thanks, Ori