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 75992A0A0C; Thu, 1 Jul 2021 09:47:00 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BD40E412AB; Thu, 1 Jul 2021 09:46:59 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2087.outbound.protection.outlook.com [40.107.94.87]) by mails.dpdk.org (Postfix) with ESMTP id 9274440040; Thu, 1 Jul 2021 09:46:58 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Oi2MD+5B2o3Hrk6XVKyG5KEL6qzqNYCQGpCTY2Et4IJQmrvzsjcgxnqLSBPgjYU9/45A9Q3dsjUNIwY3Du5Ah9DF5FO/WWLdpG2koz6RHhm56l04bShIxLVt5Sfo7XgM7jO9PX2le2CahgMMpIXBpztMgIOcQt7WTU7EkActoCMyRTyBoPP2hp7sse0WZtdXVWd6o+3uOhqTmPy+egjsQeaEoA+hCHGGk2cmoCqNIlwYh1m9fo81M4n4dgXRDT+3vqFvKw6X2dOylRYbzmCsZbXhL9nMpSgPo3COx3O2Q7HHL934eQzApIirP0gtkUFewaTqkLutT+L3N7XYM0ipng== 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=A6fOYGzDBnx/cjyJ56neloC7J/9tqIh7eU6JKExMygs=; b=VkRx3xnQXbVot9tzsyKoRfPyx3JgFmdY4ug2rAaXcaiG7ZhvPCxi/tYKJc3rb6MG+OItHRXM7c/EENgAV+ZejAra1MldsrprOtIEpfT+74mT5kgaFK46nEPLjlHoG+21snAp/NXAcatmXj2m4QnvJ+evodJjHFBMpLifoge+k+wro/OYuPy7On/cjMjnJN3mrHEtRfUvf/PujEqkswUhK8cJa7nWLQQhLoUzjFn8ba4F50D7ilBODUC3+ftGF9IlA4faYhf137oIA0+YQKTzTDjEU6UlTMNgW2qnxD4W1/lypllSUrWtwO73LWBLLYqIwk5f8N7Ec9obbcj2uVbbAQ== 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=A6fOYGzDBnx/cjyJ56neloC7J/9tqIh7eU6JKExMygs=; b=DYgYg28C6BwF2HH4xmw9ek5cxXG7pYUxaZZY4+tKyUo1a7eJooAQgc3vhaFWRyAUfmPGCYtRputMEs17Ds7TV6AM/OpE245H4+NaNprcNTfycwnnk2UQENR66WNS3PkGWuo2o/Zh/RRo4hNFbnUOf3jXKWqQWmgjICZS7FW0uZcMGodH4eJuScBiRVE2doJ3/pyq3n5a8HvdL1yyoB0JQ8ZR9ceAH3mH37R/f0xLFVfmwkCXAA+YBxqoe7pGpcBF/baeMVmDVuiWARhVrgX8ONg9pSbvtfLrj2fUqvA/qk5q+z+CFGb/fWoz7kinkxJaHoYm/1Uw/iovzNJgrpMRBw== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39a::7) by DM4PR12MB5085.namprd12.prod.outlook.com (2603:10b6:5:388::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22; Thu, 1 Jul 2021 07:46:57 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::6823:63cc:f7d6:dd00]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::6823:63cc:f7d6:dd00%7]) with mapi id 15.20.4287.023; Thu, 1 Jul 2021 07:46:57 +0000 From: Matan Azrad To: Jack Min , Shahaf Shuler , Slava Ovsiienko CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix match MPLS over GRE with key Thread-Index: AQHXbj2wIYP8ehH1AEumJ1bAnxrHEKstvcNg Date: Thu, 1 Jul 2021 07:46:57 +0000 Message-ID: References: <5cebc85325fbe3d9bcac626dd2838b8052c1c7bf.1625117923.git.jackmin@nvidia.com> In-Reply-To: <5cebc85325fbe3d9bcac626dd2838b8052c1c7bf.1625117923.git.jackmin@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: [109.67.13.216] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 968280fd-6d16-4840-eeaa-08d93c646714 x-ms-traffictypediagnostic: DM4PR12MB5085: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3513; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: karkmIBJX+gkcaPCZz+Sw6zG4dPPCb37Jbyh+dZSMTIFLkWP7Fi6A0t9sEz4uT3wFv4bH/UoDrTTrncLIyUPBMsSd6vyIWBRyLWshy8nxNIafyJA0eOKNWAOFIeRu91V0Jl3zOXxxdgn9cvdIM2Sv4Re9AE9NmMhZMKEXsCkcC+UWb5AvbyE+J0TXvoSOMPcmYR6mCKbDti6zJIG7BCHLWDvZXC0EiWyCmihyfEzYb0zxOr8f54A+/4BqOqg4cDrGbdKnk8+Q/tcGblRmiS5xZoXnabkQvokrv88mNL3u7fhtTbY4/XmjBWLjIZZQ9LqnIgdnJm1Em9A/V++nM17dXzvYpLlkt8VVtssYFOpj8XAwcOPJWy6YiJCt7Lwyn71gjG0LgKK6kghDm8QPg2NUhIrItSYgKdWiqHZZ3Kv4vMGO2LfJE+Rd5xRBw0xf2L2x+i86NMZ9mEcksfPTAWPUnuRaKnU/3WzWJDxNuoidUlPzzGcczcor7Jt/TOrT94xUNZ4I6G6ePUkNua0lTGkFdy9CBslYqOiVCuWPqECYMyTqW28M++nhapU81yCdNGvRqnFpRo7Myn8IaJ9OBUDdDJafLIgmIxeXwg7aEy2Aaeb+6+kyVtFTauPpESWU5rr29niOv/IbNIKpuDQ+MJewg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5389.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(136003)(366004)(396003)(39860400002)(346002)(2906002)(86362001)(26005)(6506007)(8676002)(478600001)(8936002)(110136005)(4326008)(7696005)(316002)(450100002)(54906003)(5660300002)(52536014)(9686003)(33656002)(76116006)(71200400001)(6636002)(122000001)(66556008)(64756008)(66446008)(186003)(66946007)(83380400001)(55016002)(4744005)(38100700002)(66476007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?AtECFg3rUPuN4hC92OPAUrZfTJxjUwWw6E86LeR7y6nzAuSlLSuzVBc/9VVB?= =?us-ascii?Q?NmBSi1NFdsDXT1Z2GKYiIPeQtb1RCYBuCK/OYWUU+NNeB44rGGy3OSyzhX4i?= =?us-ascii?Q?UJ7ogJi1betOcTLkDwUeL8ACtCDolCCPQqj5cLDLEMhoZ1YC8XUvQn2pb275?= =?us-ascii?Q?UyMAE1jmmbYtFlLhuBWrgBclI7j6+2+KMggXnCl92T+4GRTJNSvOqCMIkvBq?= =?us-ascii?Q?GG986X8WxtbCfgFFB9qO/Kc4tBsRNf7vmP2Q5upMFzyl9451YXntOayeCEkp?= =?us-ascii?Q?ofkHgdrXJOfH5ANv/FHAFcXoWm4TDExIBYHPmJj0t6NcyC4ojp+IscSO8GIl?= =?us-ascii?Q?BXi6mX7vexfiX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9e/TR13zDNMf?= =?us-ascii?Q?e7GXfkyFNh3yt33oCGH4mCFAVP+ZvbyNFL9C4o41OSxEit2FbvuSDkxA8eRQ?= =?us-ascii?Q?BZSCeWiASPhFNBCl3XtYeE0M?= 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: DM4PR12MB5389.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 968280fd-6d16-4840-eeaa-08d93c646714 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2021 07:46:57.2491 (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: ohxD3kcUgJIkj9WbLHqSjFgH4eQ1hJN8xnhEvdbxQ2rKsbLR+Y2qW2BPIYpx/+L0GKHmHf5uZ6aPA49ICXh7dg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5085 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix match MPLS over GRE with key X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" From: Jack Min > Currently PMD needs previous layer information in order to set > corresponding match field for MPLSoGRE or MPLSoUDP. >=20 > GRE_KEY item is missing as supported previous layer when translate item > MPLS, which causes flow[1] cannot match MPLS over GRE traffic. >=20 > According to RFC4023, MPLS over GRE tunnel with optional key field needs = to > be supported too. >=20 > By adding missing GRE_KEY as supported previous layer fix problem. >=20 > [1]: > flow create 0 ingress pattern eth / ipv6 / gre k_bit is 1 / gre_key / mpl= s label is > 966138 / end actions queue index 1 / mark id 0xa / end >=20 > Fixes: a7a0365565a4 ("net/mlx5: match GRE key and present bits") > Cc: stable@dpdk.org >=20 > Signed-off-by: Xiaoyu Min Acked-by: Matan Azrad