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 324ACA0C52; Wed, 24 Nov 2021 11:14:27 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EE96C40DF7; Wed, 24 Nov 2021 11:14:26 +0100 (CET) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2078.outbound.protection.outlook.com [40.107.94.78]) by mails.dpdk.org (Postfix) with ESMTP id 175144003C; Wed, 24 Nov 2021 11:14:25 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jhm90Q1VXM5pp65FphAq8/n0E9jKWLwMWV7vTVOZhufuIJqE1N6og6hhN6Ja6900+GklpW1d7C0QnROYPEaTN5l7msO4TQeaeo6enLCVnw1k3ohUwZTUooMnEY9y6QpafTYsJ42BoUGBAZ/WNph2I2uzqSbjH1ceoq8BGvE3c+Yd6mMEq6zXzEaHD5nVD8SGJqY4FzmgQsr6JIeRXy0LUB3GG0I7nuWXBYY9METANcXQpqIc6FEtN6KfcHffDVOud3OQakEIqbXW6EhofgPhTgY1GOGKnCIUCHrkKbPJ9tNFQJJF/HxbvdjK47AICucoRfv4yQbzwM1OIKOGMUt5dA== 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=9ua29pqDhsECCGMY4c9TQjcVQo/XaKHA3abkB425GcU=; b=QwUVnZRfZ8pIMtvx5L4SOkJn9sU+7SAZ9Y9Do0DV4ixKv+2/SHmCscLVQZL3Zr5JvoaQOwieApucKYeBoymcIIrmmo9rxNEhT3EZl+JVQZcRVvsSocTlwq61d0mDC/jixU+TL3+kY+RntyBjflxv+b1bXpVRteQzYfDtW7x4kWHHPhMpHMrwba5bum0v6CqwnMNkTR8jle46BnWjhfYoeSTWq80uIjO4cFh5v8FMWmyufVEFc+W6e65ZjDg2hFJCBJ3wy4kUZISAQ/fnxNotAo2pTM5sUn99EEMK7pQazzhSovr5iY2i88HRin2xv3zq4f6GzOEaXGKf6Cu4bxkMYQ== 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=9ua29pqDhsECCGMY4c9TQjcVQo/XaKHA3abkB425GcU=; b=Cd6fqDi5BEOF0+VzDeGlFtNLxm7tdDz4cb4gN6zfJlBM9LrgkI6AX/OM4+0z4Yle5peKLzfD5SBGRvz91ykjDyJ88C+qAyMnFG20x+sbEzbsK4HDqM+3yHLBFZX8FTddOmcUyZs1Bc6rqSYLwZSxjFVV+CA4hpsSZ2LWaNm+jAKbz7OL0eqjt02HI2fFNLIm1r9CDrTqiMsPsPVUwBpalKWiaLrjeD3gu635iPTsa0Fq0GeGVHPrTad/tNR9mOByEwrT6WCmP53XvBC9slvqKQzgURY21Wchyx1ZLPJwRCF4EjNxQ9Q8tcoA4GPFZdfY3etcDjzfXg0UdLoRfiVQ2Q== Received: from DM6PR12MB3753.namprd12.prod.outlook.com (2603:10b6:5:1c7::18) by DM6PR12MB4370.namprd12.prod.outlook.com (2603:10b6:5:2aa::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.19; Wed, 24 Nov 2021 10:14:22 +0000 Received: from DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::8dc4:eba4:b43b:7d59]) by DM6PR12MB3753.namprd12.prod.outlook.com ([fe80::8dc4:eba4:b43b:7d59%5]) with mapi id 15.20.4713.025; Wed, 24 Nov 2021 10:14:22 +0000 From: Slava Ovsiienko To: Alexander Kozyrev , "dev@dpdk.org" CC: "stable@dpdk.org" , Raslan Darawsheh , Matan Azrad , Gregory Etelson Subject: RE: [PATCH] net/mlx5: fix GRE item matching Thread-Topic: [PATCH] net/mlx5: fix GRE item matching Thread-Index: AQHX4OxfFAKqLFgsq0WPDP55XtG7IqwSdayA Date: Wed, 24 Nov 2021 10:14:22 +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: 6c47ee74-fc1b-45ef-1377-08d9af332fa8 x-ms-traffictypediagnostic: DM6PR12MB4370: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: szAe07lJQsOYTeQiZjwdRhtQNUCxYoAZlWBLMB2Em+ns7G4Isn0TRH0XH+sGWtdzV3volGSZhDyCz7J0hg7BCTZzaZdjfcnp1hoVxRqTgjOJHgmctac6fVMxPfI2XLK4KXhFap6kw7UMmG8w2DecLauTcpokjLyov2A0DYvjm7XSGwML/aqqQLGYDZWGo79G9BgL/yuIUUejZfSFVyTNdh2eoCp41+E7a1sXarYj8478ikMXlJjE2nUaHcWiHxOB5u8HW/KABlFIUoLxkQ87jiprDtsbItPqLZkYvV1pcEswp32FI/zAf8RmTdiDoBmwSQazY+uAH1KI5mrgjGSuPETJ9DjED6WFIPTx9QmGSIY0DdbyuI2/OhUyqwI0uMEo3PfdJbPS4NkV9lFf9ndDAHrunnQUHufzNYMY+KOPZ/sqpxYfFgI0yiq/TtFdTVe9hk3jzKvl0Lca6oek1Jezl/5LLYRVqtVXkd9NLF4lxNAMc8xWk8LDIHDe8BRNSbz1GiJ+SSzigHsyfWkZm4mh2zGa0hJQ5dCDldrJSE3p0aVYPJmhx/06JQX/Hnve94VRZyQm3p2NTbrPumk+BfqLjZ6mhRaT9NPiGXDr48xR2HI8SzCIXDkc7AeqEWjwx/kvMYgh8H8vTIpTliHaXzJgbSCqJ+BKso3Bz1dn2kdH474HOVInHpUQEFEB6Q1qDCUKuOhEPQVagJS2WScJs4jPlg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3753.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(508600001)(38100700002)(86362001)(54906003)(186003)(83380400001)(110136005)(2906002)(5660300002)(122000001)(7696005)(52536014)(4744005)(8676002)(38070700005)(9686003)(107886003)(71200400001)(64756008)(66446008)(450100002)(66946007)(6506007)(8936002)(53546011)(66556008)(316002)(66476007)(55016003)(33656002)(76116006)(26005)(4326008); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?RsNFyag5evuPneMdSSk48jJnEuqeO7IhBFMV19nST42m8Dn/fSU0MEkWr7FH?= =?us-ascii?Q?HUIbK6Y7iKxSItOSW0JCZQVcYZQKaP8Xp9UYtnKX01/ZAUOaZEnb289bU5VS?= =?us-ascii?Q?1YkEqT7r20cWmtSyQjBRY70H/d90K0H5b5YQXVOCWBXLAVx4GkGIshxqAgyb?= =?us-ascii?Q?k2iW5ghdDkd1Dmi0D4A+YTuPz9UNwmuMvD5ixa8yKtyNkbwCSRG33X71+yFN?= =?us-ascii?Q?LuaCXpzD3Xb78Vtax4EZ+rQhdft1GVOU1mw+mlbKe3BnmmeNXZyoZOakF8Jv?= =?us-ascii?Q?pY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vZ?= =?us-ascii?Q?q4vJYyvDMzqflnfGwOmljRhQ5fwE8xfYRZTAkwEtbDpf8KUwBqzkdFlsmOgq?= =?us-ascii?Q?qiSYw2Jofn9PXGqeBbyiA7oz3LRVG1hlhx8tmcALiBjHTkqC+fOyzasrrDTl?= =?us-ascii?Q?LqBHvaK/6eWJs+lQ3PU6nU6I+b4i3HYQzdtG6ZWYDzvRGX5ADlaw+kagJKnA?= =?us-ascii?Q?V8KQrUtAmI6gZqeZmLLE0fp/CsoC+W6Mo7v1jbyRBL/MZWYTxPu4XT/Wig5S?= =?us-ascii?Q?xGduDKwz0s1MakMRER9KVO8wC7taiPR3k29wmntP7iWMpswPo0yn4Ni/Kkgg?= =?us-ascii?Q?7vhq7pGzrWLGLhaRoCVXkADFts4gvw6g/2Vzjn5/4DlyBBN0gOfWWZLAbIC+?= =?us-ascii?Q?yug+ODqAVdKeh5PJMKwbC0U24LUlT2R8uB/atCTYny/fKC+MzCV4wevU78at?= =?us-ascii?Q?VA=3D=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: DM6PR12MB3753.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6c47ee74-fc1b-45ef-1377-08d9af332fa8 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Nov 2021 10:14:22.6733 (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: nN/0WUE0+i1p6kw4FwPyJ2BxpjpkXpKdPSGvurNBQKqKcQ53AiefMjO6A+7N2Gsp11nGcTHuPLDxzXHrBUBGFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB4370 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 > -----Original Message----- > From: Alexander Kozyrev > Sent: Wednesday, November 24, 2021 6:33 > 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 a= n > 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 hea= der > 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 Acked-by: Viacheslav Ovsiienko