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 8B71EA0C52; Wed, 24 Nov 2021 14:05:17 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 72BE4426EE; Wed, 24 Nov 2021 14:05:17 +0100 (CET) Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2051.outbound.protection.outlook.com [40.107.96.51]) by mails.dpdk.org (Postfix) with ESMTP id 020F9426ED; Wed, 24 Nov 2021 14:05:16 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S3j4SF5+1WyAMZyYqCchVu/y+f+vckRO+aPPJAqMQ7ii85gXwxE+B5EPBx74p/uerxpxHpwZ6OMeRnDV4KyZTMolnJVCc/LBiJCnBav5OxL6lpYMIzqRvMBelAZqvXZberE6DdHU92cuJOw2m/6ge0zSf0p6IeFjKygfa1dQa80Ru2YYaVJvdVepw9NL7rvO0VbIPUCVK8cq4U1aBykGJSmWvoEIKvLgyrfn+HH03u2GWL2kiaaDQ+u7eY6UnfT4bfz06oF6cxpOMSXcycRh4eoy7TflNw1P4RPmWv6Mw3unBb530DN0kSA5pULzHmeI8nNS25NmZt3txkVrPA3t9g== 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=Yz+kDo+mTb9mgYP1kuvvR1kro2rGNE4cllK3SmByEDc=; b=LOf6GbflDcHdQpRDHU87Mg3MzpWM+/4NJNgZGNVr/l9Iaw0aTMusQ9OmJQeYKW7a9ATCoXbPzMt1Mo8A9LQ1bZTQHwBBuzn07zj+BPO9YwJJTDcc/cwYvaHcC7d1IyuqDnjpZ1fDjQjWo408U8yE4cIWR341RVNJpb/iPlZYgvpEHM8a+sY/fO08mPtGdIpVAb1QCUfJ4HyuM/JktwBGrZP7zjxzlj2CxXWKw5j5wKJQWY91+e0dZ23xGubkcL4Mw9MYAPslMxh9woYVXmaAjWeMpqW0K1slIO9hWtBD/hAeozK6wMXNDm3I8k+vwjL8WbQJI/feeqG8qpmW4/PXFg== 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=Yz+kDo+mTb9mgYP1kuvvR1kro2rGNE4cllK3SmByEDc=; b=sWGG/0y85ERhLL4iCrrTQgifEz8H+XoJYKBVtcdJrMObviiwZwcVwkLgcfn8oAVGbJ5diNzelKGtT1Sq3Kd1ioJZYSsmBINfQ2n7iWfUxHEGVtKGRRSHD990McCIoCJ9/4Q0Qr+N5UM4yv7jA9VlgmtmXQZrLWLOLOacGPINAcPGSrMUsIVl/erT3KTCHtuqOWlu7MMPGIj2JhZiYy4GAYn93ozy8SSBYJ8/BH/bnDB0m72qYqzw9pufajgZ1kA6RxfMyFpM36YCa+lnCsmdlVGKzCcy7A+y012R8HTKNb06fwHSEflfcSSkGrabxbOcbx+gq9d7/JK4H3qeSj8XlA== Received: from DM4PR12MB5312.namprd12.prod.outlook.com (2603:10b6:5:39d::20) by DM4PR12MB5327.namprd12.prod.outlook.com (2603:10b6:5:39e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.26; Wed, 24 Nov 2021 13:05:15 +0000 Received: from DM4PR12MB5312.namprd12.prod.outlook.com ([fe80::7cf5:9d34:fc6b:b4a4]) by DM4PR12MB5312.namprd12.prod.outlook.com ([fe80::7cf5:9d34:fc6b:b4a4%9]) with mapi id 15.20.4713.019; Wed, 24 Nov 2021 13:05:15 +0000 From: Raslan Darawsheh To: Alexander Kozyrev , "dev@dpdk.org" CC: "stable@dpdk.org" , Slava Ovsiienko , Matan Azrad , Gregory Etelson Subject: RE: [PATCH] net/mlx5: fix GRE item matching Thread-Topic: [PATCH] net/mlx5: fix GRE item matching Thread-Index: AQHX4OxfNTwLv11uwkuum9pGOmqPL6wSpejg Date: Wed, 24 Nov 2021 13:05:14 +0000 Message-ID: References: <20211124043234.3287245-1-akozyrev@nvidia.com> In-Reply-To: <20211124043234.3287245-1-akozyrev@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b21af542-1ef0-4ab6-08ce-08d9af4b0e8c x-ms-traffictypediagnostic: DM4PR12MB5327: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: pyrpborqudArGlVV7gCbmJdXG1VxM1wLZwsSJmlqWWHMrHsTEnD4ECrQpNJ5pXt/PVpeJrF+ChqsHyXSCXXQujyN9dfi5KqzVeuWm3zxK1Li7raeyOzR4byvcgWjMHoqQrzSWKKNhH5ZZJu5UmzpEod+ZQrfTUgm+3GgZC1W90WZM5A1fdhtc0JPscO0htA5u+dRA+UlAsvYNdRKYYOETyXKSKnnkvPacHhLOeEJ/hoUey6dvglLE+QED22BCY2k41XRAdEahqMlMJiVc2s0LqrB+5NIaCGss4V0daVUwA2dImndMxYo8rvfKVfRS9onILXTEfIXQS3W6PmcHviDYBgWqhIoFCbDc6FnOU8IXfyMtmdPiwkmjryOnSfA6syEMLD6LKLGjXGTuEcsDzl0xEKjjqVJ6VMaxrA5c1EXMkZuK6kcnw8DlUs40/4gEoqub1XiCqVDsI91Yp0+TeijGFxogX7VpmZ64K+xf/e9cf1EuYmgjwMjt8DHWSapkKa+ZTELV8yNi6LG/PSJYcbpRp0MmVcZCaMW+q6T5Y2DMj1rddlqhGJMyG0Oba4fyhhNrqkJwqaHxNEyusjSO65MZ/iQ6CJeq2S6JPnpRQWSjeAPmNGPFvZQ5fbgndMTKlX9trpev/C3hzMWYpKDmrBQPau/QwBCAzZj7ditKrYVyFi3nYk4uXPBtufI0DFCmtcvJ7neqSlScL2y0GMfEodQnw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5312.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(83380400001)(8676002)(53546011)(2906002)(64756008)(55016003)(316002)(9686003)(66476007)(6506007)(107886003)(4326008)(7696005)(86362001)(66556008)(8936002)(186003)(508600001)(76116006)(26005)(4744005)(110136005)(71200400001)(122000001)(54906003)(5660300002)(450100002)(66446008)(38070700005)(52536014)(38100700002)(33656002)(66946007); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?6UKqCNBIVtW8B2NTnfwjfSMqmJJsCbFdMxYdziLTUhvN01cMIA97NDgHp3Sn?= =?us-ascii?Q?4KSLdt8JxtmjQVqeL2INbZ6wtJ5yMPght4qlAfpJQQJdhYrYNxNaaV3KgrzM?= =?us-ascii?Q?NCfOukB0w3yJ9bD1LWq84UUGoVqE+ilB5FmVPrYx78aq/6BEC1bvtwkKtK5j?= =?us-ascii?Q?n7Aeu2nhfHfIxZDk5J+NDMBi16s3HBeBTmSxYVkk4PlMleJ8IUzjg3xp2uI2?= =?us-ascii?Q?WtSzs+U+emP7QRVO4DZKQH5TjiZqhHZpfQnzpHpWNs4/WEP1xfkbv72wCd/x?= =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cLkDln5jkPKr+ek6?= =?us-ascii?Q?MFzUFfmsFVILgqFojbDsMOQgrF4Vg/OUDXVasg0fAafimt7/V4plNLXTA6G9?= =?us-ascii?Q?xSr83ZMjKM3IzJlxcHuKTNwNtJ6x7UQRzNi/8HA3JJ5+y/6wE/xx6KqVf4Pa?= =?us-ascii?Q?7ucnHHaqCONaQQKJatRgkd2gC3704aLN7t71O7l8d8m0apdO2ahBmv4PzXx8?= =?us-ascii?Q?f5KMmtJq+01dL6xk4G4oIbIKoVvTn/Iq8Dk++bfJzrfbPiaNcAO1gAbcG8A+?= =?us-ascii?Q?hUPCByOxwPLyaK9sGyClv33hJQdHBfJDTNfuY/XY5lNEqQL43mQ//8cAqEFT?= =?us-ascii?Q?kNODZU0rpqoRLadtebXZPilhQssGS2DjwRd2+gPC4eE9BzYuHFZSO0RtBhSX?= =?us-ascii?Q?cyBF92ms2C+bXfr7l3JfrPTUmfBpp6mZ9ZBiPG8s79Khrkqr9rDrWJpzmh0a?= =?us-ascii?Q?7FVqbWUo/Q/xAlTWFfUmq20=3D?= 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: DM4PR12MB5312.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b21af542-1ef0-4ab6-08ce-08d9af4b0e8c X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Nov 2021 13:05:14.9817 (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: dZjvhaUjjQ4T8QRf9FSx76hLbMPsMZ5KG6hIIxWKJGFJMCNtPc1aABEPjMNqUZu07oq+1S2U1cLPw8WKFgEYgg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5327 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 Hi, > -----Original Message----- > From: Alexander Kozyrev > Sent: Wednesday, November 24, 2021 6:33 AM > To: dev@dpdk.org > Cc: stable@dpdk.org; Raslan Darawsheh ; Slava > Ovsiienko ; Matan Azrad ; > Gregory Etelson > Subject: [PATCH] net/mlx5: fix GRE item matching >=20 > GRE protocol type is implicitly set in the matching translation in case > an application doesn't specify any type explicitly in a flow rule. > It is extracted from the inner header type, but this type may be absent. > In this case, GRE item matching is broken. Check if we have the inner > header type before setting it to allow matching on all GRE packets. >=20 > Fixes: be26e81bfc1c ("net/mlx5: fix GRE protocol type translation") > Cc: stable@dpdk.org >=20 > Signed-off-by: Alexander Kozyrev > --- Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh