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 B99A4A0C4C for ; Thu, 14 Oct 2021 20:29:29 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A75C341136; Thu, 14 Oct 2021 20:29:29 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2066.outbound.protection.outlook.com [40.107.94.66]) by mails.dpdk.org (Postfix) with ESMTP id 375F04003C; Thu, 14 Oct 2021 20:29:27 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iNzmmva+MpJEANFUJhatFyRXL2qysv86AM4UFcIt67sOvIRCvftD/kMDYPm95zCovQC0wZZllJdoLyEDRBjTXEziS7kBeVi1Fs57m82C4K5xirLKlXwgbchxEu/B0XWxjKLC0D93DQxLqgKE7dkO9ihpXoMeGuf6uEAVQUAcCplgYKWrf5YjDcj6yp2vNpFSVfe0F8XtdGVCESvM6JtyGMD0hHi1sbaTqflhnqSMcorWzkyGuExWyGVlY8TLPrJNR0Fn1L7GxUaWwL6+YJQtBeDE/xhrK699vFF2/9EbxSK/VOn02DGJdL0AOXNsRH6lIUqG1EWczDwF+3NAbEKvUQ== 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=dTLI/R0NEnwNU65ugtB3sANYHkwGMJ/yvmEV9hNB0CQ=; b=iSRuHOaGj4BPXZjBPn7kAperDCoQsQflQhnRzY1uWxQ7PhlT+krUR21xFeCms3e1eCKXSKc4Zd2Mpli52POihpieSFvgrkHz8Kcps97HvzTuPaBUg+6Tk+2LreF0M2vn/6Nfief2bQiG7IGw+tKl65Kl/KOCb3HYCYK5gGdkASCdRr5+pnlJQDdJPsPHbRi0aVCDvG5AlT8s9svN8W60jO3H/QUoDwL5wdMVz27LjvqjvgPd/jz8Or8wGJbf4OlQPU8WgeQIkb/JBfo9j21Q5np0kikDNqSvR8fHNRmw9TJKh1vJ6OmSeiNaZ2I9FIz1HND+fJnGaLs3p/JJlFPXGg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dTLI/R0NEnwNU65ugtB3sANYHkwGMJ/yvmEV9hNB0CQ=; b=LmgYw9dR2odZ/NpD2bcrdbGK1OJrumdZ7WtNKBttrca1KhKcs5KgjKZFWiGETVZYN2065iVgkmI4lxEu0z/LSEcKhgUo9CA7W0hXFJVIA6FwN6GmAgPlDz3O2WnyvG+4kFNsyoJU0Ur5vZfzfvwDRAUn5ZO8P4qm5MDlO8+vbl+KIfjspFPRO938k7zZAJHlMDSva3SUZybKXIYQ0K3v9GdMmX6UDOQCOhuahLWkNfqWag38MFXJV8pJpJPM0iKguhcBgeCkKW1ggfJ/ZZm50xDvC6xjulfTcDdrDF3xtvjOTEOgMT/dMDobJEcZCdXAKbnUt4Co9lumOqfQzD8UAQ== Received: from BN6PR1201MB0227.namprd12.prod.outlook.com (2603:10b6:405:4e::7) by BN8PR12MB3569.namprd12.prod.outlook.com (2603:10b6:408:49::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.25; Thu, 14 Oct 2021 18:29:25 +0000 Received: from BN6PR1201MB0227.namprd12.prod.outlook.com ([fe80::e98f:7bd:1d91:3e9c]) by BN6PR1201MB0227.namprd12.prod.outlook.com ([fe80::e98f:7bd:1d91:3e9c%5]) with mapi id 15.20.4587.030; Thu, 14 Oct 2021 18:29:25 +0000 From: Gregory Etelson To: Eli Britstein , "dev@dpdk.org" CC: Ferruh Yigit , "xiaoyun.li@intel.com" , Matan Azrad , Shahaf Shuler , Slava Ovsiienko , "stable@dpdk.org" Thread-Topic: [PATCH V2 1/2] app/testpmd: add tunnel types Thread-Index: AQHXsFdLWHDx1S0oB0KjTzMWdXRHjqvS8Wfg Date: Thu, 14 Oct 2021 18:29:25 +0000 Message-ID: References: <20210923084301.5139-1-elibr@nvidia.com> In-Reply-To: <20210923084301.5139-1-elibr@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-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9544b11c-6c75-4eb5-02dd-08d98f408cec x-ms-traffictypediagnostic: BN8PR12MB3569: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1303; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wcWJ/H7F2avTXLa8rCQmzdVql5n92SlrUuatDaqCgJ7WwH9CHce1+u+B2rSYNbkcyiouhpTvenYxQYNC89TcAWBN5Emkx0vp+8JdE0HyIpAkmYQT1RxkwSHzgd0cwfqvs8UMEu/VCT19z1QsOSB6FueX+JZZOaEEEzW88ds7ryY4ZmS3nWWdHxWvEu2DHf1C7jjbO+BQCkE6v4HYA+6L7932cYJNb70j/Iczq6q/QaUWgzi9pfYL1pHBWQanRXrdBYkFCYF5pO+afcofxBlyUlvHfOJ8rCwasTx7/vaaEqwXpfv8V18F/IemcPeArMeLDJ7BgkGGdUjtMOI3I9Lw0JrEHda6AeUuPm1a0DLbWzS3PSYHTRGqhq0XsE/Wz49yMxKiwuhdnQVqdOdSNT9AaXvUc1QJEsgCYqPbf9voqiLwVdhchJ4acEDd41cCA/h3eLkKeQhkLk4jYhHXpRCbccPGlmbkDF/6PrP0oPq+dJ7gb5ntsem9JkeyIpjlONwjrCo0A/9JB2OymttuPQoEXljJAjNRlATip/FJroEQProsqC8kw+RpFNsYNG7Gffd1+jiJwlQEBfpqBOnlx5Z5hagBSGbniKOaXYGcrGW8PBonj2MwmJfyFAmDch5UgmKE2gWtpJ+FssXq+ksEKThzM1kqAcFqjKQceu0L0jw88QJkr9z0L8zNMqbn1pxhOkKb0CWT3pbbS2iKcSu87YzVBg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR1201MB0227.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(33656002)(9686003)(86362001)(38070700005)(55016002)(38100700002)(122000001)(76116006)(4326008)(316002)(52536014)(54906003)(110136005)(6506007)(2906002)(508600001)(7696005)(186003)(26005)(5660300002)(8676002)(66556008)(66446008)(8936002)(66946007)(71200400001)(66476007)(64756008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?cZOiI+DvwRtTlifFtJMC8Nsz5gn1bzUsywIHoAmkAjUtjCY81qJ0xFa7iyeo?= =?us-ascii?Q?sbYrs573VH1rQ1o6QNmYoCN/upRW2XbvdsgK3MdAzIh981YLifcYkTXo3nBU?= =?us-ascii?Q?IzCPclN93a7BArP5/NgwPa8uGXLHLZElR4fCq0GhUkOqivyjjUPFPmBXscXr?= =?us-ascii?Q?Gjm2lbF/1oDiyEXwqmQ/7087XLY6xJoSXdYSsqHkm4QQbW1CTubaJAfoK04H?= =?us-ascii?Q?rer0zsmpOW2bJYTV3y/MQICAriK36wT/HcxzjRTbWTTDpsx7+V0fKZsvAL0D?= =?us-ascii?Q?wUOmdF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j0O9YUTcS09IvYvDp3?= =?us-ascii?Q?LPiTr64CfeimVXNSUUXBfn5Vd9zqV/va13rAosjMUST/nhaK4WwdljWqUAPU?= =?us-ascii?Q?NujcHIE3+ldSiNCrSIX9DLLeSRiK0eoHdQasqMD0tmEWorVBJI38aBW03jzT?= =?us-ascii?Q?vACA6JPr+TDcf5JjvGk0mRL3?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN6PR1201MB0227.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9544b11c-6c75-4eb5-02dd-08d98f408cec X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Oct 2021 18:29:25.2783 (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: v9UgHNN5Zlp/sddH1QMEHQv5BgG+YU3e8aTQ8Ao4q3YEYpW2CQGCS4PwCwfhgf1FvN7Ddygoz9mmpy60O+KfUA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN8PR12MB3569 Subject: Re: [dpdk-stable] [PATCH V2 1/2] app/testpmd: add tunnel types X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" > Subject: [PATCH V2 1/2] app/testpmd: add > tunnel types >=20 > Current testpmd implementation supports > VXLAN only for tunnel offload. > Add GRE, NVGRE and GENEVE for tunnel offload > flow matches. >=20 > For example: > testpmd> flow tunnel create 0 type vxlan > port 0: flow tunnel #1 type vxlan > testpmd> flow tunnel create 0 type nvgre > port 0: flow tunnel #2 type nvgre > testpmd> flow tunnel create 0 type gre > port 0: flow tunnel #3 type gre > testpmd> flow tunnel create 0 type geneve > port 0: flow tunnel #4 type geneve >=20 > Fixes: 1b9f274623b8 ("app/testpmd: add > commands for tunnel offload") > Cc: stable@dpdk.org >=20 > Signed-off-by: Eli Britstein Reviewed-by: Gregory Etelson =20 > --- > app/test-pmd/config.c | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) >=20 > diff --git a/app/test-pmd/config.c b/app/test- > pmd/config.c > index f5765b34f7..2bb9fc6784 100644 > --- a/app/test-pmd/config.c > +++ b/app/test-pmd/config.c > @@ -1210,6 +1210,15 @@ > port_flow_tunnel_type(struct rte_flow_tunnel > *tunnel) > case RTE_FLOW_ITEM_TYPE_VXLAN: > type =3D "vxlan"; > break; > + case RTE_FLOW_ITEM_TYPE_GRE: > + type =3D "gre"; > + break; > + case RTE_FLOW_ITEM_TYPE_NVGRE: > + type =3D "nvgre"; > + break; > + case RTE_FLOW_ITEM_TYPE_GENEVE: > + type =3D "geneve"; > + break; > } >=20 > return type; > @@ -1270,6 +1279,12 @@ void > port_flow_tunnel_create(portid_t port_id, const > struct tunnel_ops *ops) >=20 > if (!strcmp(ops->type, "vxlan")) > type =3D > RTE_FLOW_ITEM_TYPE_VXLAN; > + else if (!strcmp(ops->type, "gre")) > + type =3D > RTE_FLOW_ITEM_TYPE_GRE; > + else if (!strcmp(ops->type, "nvgre")) > + type =3D > RTE_FLOW_ITEM_TYPE_NVGRE; > + else if (!strcmp(ops->type, "geneve")) > + type =3D > RTE_FLOW_ITEM_TYPE_GENEVE; > else { > fprintf(stderr, "cannot offload > \"%s\" tunnel type\n", > ops->type); > -- > 2.28.0.2311.g225365fb51