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 814E7A0C49; Wed, 16 Jun 2021 11:01:30 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E86614067A; Wed, 16 Jun 2021 11:01:29 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2060.outbound.protection.outlook.com [40.107.237.60]) by mails.dpdk.org (Postfix) with ESMTP id CBD8C40140; Wed, 16 Jun 2021 11:01:28 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=d8MLWMxr62bUd6UmcoblFx/djhuHBLodf1EdBKuboeZuErZ0t9TnJog/AukRmkXeTUKiPfDExUqKMhv+deniZty0ffuGVhvGafFqzMKrDxfFs9IiFmjy4D/QW249ZQf6B4Jxx5eMy6aKAhaGcBJL7nvp9YgJ5AHrZqO3YeB1AKDrDGx2afaKZ9h0nSbCb1ro8w/TSh+eRX/1w5QSNjzaMm/RCjsHcOk7iicoTnEklVGnk11g5hfNu28nkiADZEPymyoKRZVq17as7HHTKnw9KJJ+T1tZspRk/lHE/Ngy/iuiKB+DOyHS49v0dSy3nxaQk0/W0oacvFosormjgqaw4Q== 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=6kgLDWBPLDP3/C7rS6Z2An89wNm9w48UlFXFFa/tt+Q=; b=cZYyWnRwxjXg8kTofrZSUFowiZTWYlNUrFWAWOCWhAQvh+Ycx0w1/OdCseDwqGBh33LgIMdrQSLJ4JpUAXcEH9SR1yvz75DwrtaqjO5XFtZAkBCXNqEI6LEJsMoosIZ2lAkpZYGPxbfbgeNbOWD2yNs7OFW0l5Q6BmdHqO56TwG1RtOUxkyyh2w+J3lkThcKUHr/gbFiSQnWU+iQV+9CKSLjlY4zSxVRq2F2cmP4Mlgrek176FC+Sc7OSs2I9EbywupV3ICEFjkjJ70tKna2Vl5Zm9VjLBHj5UT+jqtYQQDCRRyV0BmbgxCMufZtI6zNn9mTxmreSZjEjTUE1XwSjA== 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=6kgLDWBPLDP3/C7rS6Z2An89wNm9w48UlFXFFa/tt+Q=; b=jmYwnhsWsFt34VtLeeHW4WvRpcXChUzJuya3+0dwy15cDLcAGELWgifEP/SeFibAI10Hf4LbpW60nXa7FeflR+pZrTkAXCVZDMT6OZby8BazrTySY1/t5aJ3Nhoy1ShzAazr0VgkDGqTy34m2U5MaSKAPYUOPkkeRmfc+e+A9QhHdXZA5wRv73JZ+ns9KJAjrE6CtwZYMYFtzN7hu9dtYx7R5PqTk4ZBvkA3zNJc6SDnWnyEpJnfL4zc5ckJqz2FGoEJc9FCtirXyiLG2GIJqPRnvydqiqbt0na9rJqRAaPCu1TDFX4fgMmIb5WDoKyuwOtcV1mqyw96f3n/JRYyug== Received: from DM4PR12MB5389.namprd12.prod.outlook.com (2603:10b6:5:39a::7) by DM4PR12MB5054.namprd12.prod.outlook.com (2603:10b6:5:389::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.18; Wed, 16 Jun 2021 09:01:27 +0000 Received: from DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::9984:54f3:177:68f4]) by DM4PR12MB5389.namprd12.prod.outlook.com ([fe80::9984:54f3:177:68f4%4]) with mapi id 15.20.4219.025; Wed, 16 Jun 2021 09:01:27 +0000 From: Matan Azrad To: Lior Margalit , "dev@dpdk.org" , Slava Ovsiienko CC: Ori Kam , "stable@dpdk.org" Thread-Topic: [PATCH v1] net/mlx5: fix IPIP multi tunnel validation Thread-Index: AQHXYn2DN4xl4W/BT0OpMZe3kR7ujqsWV0eA Date: Wed, 16 Jun 2021 09:01:27 +0000 Message-ID: References: <20210616070118.240681-1-lmargalit@nvidia.com> In-Reply-To: <20210616070118.240681-1-lmargalit@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: [79.179.70.7] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5c73851c-1b14-4e99-0976-08d930a55361 x-ms-traffictypediagnostic: DM4PR12MB5054: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: rxtUbuUsTUxA6K05DLNU0kh300OpQX3MpOcwKmt88y5KLYkBx5rHrV4Kr0eUlsOcGv1yKeQxs+A0WhAS4+DdbdGUokXjB1WoBiJtdxdyaU1qJGwK/JXQmgAXrRK0zR2vaxSVsFpnVOIMfW/jgNZEsEb5ATns+mfPMSneFCrh/h1HPHgbLp8xRVULoWy25PvkRZLJiMsw5FdYofx6quWLsLdbqWNpygsDJYTNZKTGzGbRBRZYLEhE3H4j34Ae4XlX07A9aqBk05YQnSjljQs6bllYmzNYJpMpbGFOEzWIqAXDmWpxm8odkY+O5D10Fl0yWc0JpsJH3MOtICe1LuInbDsJbexuv4qv0/4L4TJbYbGXDNSX4mktaTNKEkKE/UgSqeC/bbD8FcmSK7MZGqSkk5oAZ4PFxGiA1xh32Eeqy5dEnAMKONC9OkLUVbmvRXuc87oFo1W3pulUr+/TY4tIFqfcSyygSIlwwnV2IBZTOkioI/BX6j/EjnO9BFkVGpXmnTGOblHDB8yT1Hij6pfwX0hvXhYrA68gSIw+sgZsYhmUwnYiGu6u0ozQEHtCWwPI6SUazYdEMSkHuUKdYKL6gBqWUu19UNk5ZMYZ+vgLuSc= 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)(136003)(376002)(366004)(396003)(39860400002)(346002)(52536014)(110136005)(66556008)(6506007)(66476007)(7696005)(4326008)(83380400001)(5660300002)(4744005)(54906003)(9686003)(450100002)(76116006)(66946007)(26005)(316002)(33656002)(86362001)(38100700002)(2906002)(71200400001)(66446008)(55016002)(8676002)(186003)(122000001)(6636002)(64756008)(478600001)(8936002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?vBcZCLOZtBhgZKnjpmGEynDslJiabf6yPbqVg8MzduwygFvf86j8wJg69LG8?= =?us-ascii?Q?UdQ/t0ZZahjG9/rBMWdtl0vewBLEJD2Vo7pa+9ESoejeoUBpxYcyKmQB24us?= =?us-ascii?Q?YRFR6Wgn8PjiQxX1FjqxlW66eXXIs1+049gM4qMPtj/nqWDYNKsRlJnRw9c/?= =?us-ascii?Q?k6bgPCXSEQSWim2YRK0inMzbTRsEMFpuAayQKdccR06rHi5l0ztHFoY/qvpj?= =?us-ascii?Q?gn/7peA5eiS3AlOPyGz5nAuMU6NPOqP30bJB+aKN5WDI9ly0Dihs9/C5OSgV?= =?us-ascii?Q?63OkPveY8c/SSxKucyxOD0Dp4CJe3l3o161MkGopgaz/S/u1LetbsUXo6su6?= =?us-ascii?Q?A0MA6K4yOsM4ja3KqvVR9f0iw3PllVM5PRhKoDxsmVveOYlMuTlz6xyjxbFT?= =?us-ascii?Q?4SPmiuXWAOZI+4Jh+/a+ien/2JP+calnBbhXGih8JTI+D+H0Fy+bkjLDHXTx?= =?us-ascii?Q?zARKEQJJ7swHS+aLXTgX20i/u1ooi18ASgsUsMJNh18EGRP1tBAoz3Tbt9In?= =?us-ascii?Q?3k2sRiDWKvU5roweGrFY0Dg8iultaCRMU3/qt0NI2z20o1VolO4bxoKWSo6z?= =?us-ascii?Q?id6c7J01pb5cIIiFQUlw4du0YNXvtp3br9RS1Vcu54zux7dfQCYLWEkwNEWQ?= =?us-ascii?Q?06dN6tgE8Gkvl4o1iTAuLWgykTzgCWqKPBp99vzP/SYGdptdWavrI4f/RuCo?= =?us-ascii?Q?MaHhO58jot84s1kyy7NFAG8c8QQqVpSvX0ZbWvhJiyTLlSupZI1/u4SaFptL?= =?us-ascii?Q?KZDYtIoloeeRfveNhMieY7kIv1t4eoFN3MYx8oPiWb/mQOabcF/+oHmOx6Ir?= =?us-ascii?Q?TyKSnXbmr1mihYwUuDIf+ogNVpHF0CxShUzfcGsksh3Ts3DL2VP1L91KdqC7?= =?us-ascii?Q?daMKeoF5jUH3lPmGe8q+pRvVG35MlzUuF/+GpQ9XOViLftKkRK7jn5UqloPf?= =?us-ascii?Q?qWgKI072nAK3u48kB6FmknQ9aIqUCEuCE3Q6kx8aCaCR/pgGb8VtqRH9bs41?= =?us-ascii?Q?rOCM9ikkf2kfpbIO7KI8wPRIVslpJrRsHcCRiRNAqKHIJ6koERxShcGBLGUy?= =?us-ascii?Q?0c/NL1DSUG3Ru4V5UJ6VrJp1M/5fy/UJ/sZRHiq1aeJ1+w8mXTCTT11Jyzen?= =?us-ascii?Q?oPLOagapDzmv/mc4+o1xayxTOockICYU72WBQDjG2Uc/aZimoiKVSKFKwbe/?= =?us-ascii?Q?CCJ486kPii6sQydnhrIXJQmfQAUUpVq5PvPUO5FYch1kRUl3De7jhgg/D4av?= =?us-ascii?Q?IGCbZx0jzg90KodZeGuAuonyb2JM8h4S7vDFwJrR4sqB7XbSTiY4oepIWt5r?= =?us-ascii?Q?qZU=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: DM4PR12MB5389.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c73851c-1b14-4e99-0976-08d930a55361 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jun 2021 09:01:27.4488 (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: HMcl8XxBN7e87P0m0LZLLOwvG4FJzpZynIyuYd3QBpyCdzYPKhT4M9a3/tECCsznNT7N3ZZ4MLlfa47PUrWOsg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5054 Subject: Re: [dpdk-dev] [PATCH v1] net/mlx5: fix IPIP multi tunnel validation 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: Lior Margalit > A flow rule must not include multiple tunnel layers. > An attempt to create such a rule, for example: > testpmd> flow create .../ vxlan / eth / ipv4 proto is 4 / end > results in an unclear error. >=20 > In the current implementation there is a check for multiple IPIP tunnels,= but > not for combination of IPIP and a different kind of tunnel, such as VXLAN= . > The fix is to enhance the above check to use MLX5_FLOW_LAYER_TUNNEL > that consists of all the tunnel masks. The error message will be "multipl= e > tunnel not supported". >=20 > Fixes: 5e33bebdd8d3 ("net/mlx5: support IP-in-IP tunnel") > Cc: stable@dpdk.org >=20 > Signed-off-by: Lior Margalit > Acked-by: Ori Kam Acked-by: Matan Azrad