From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A8A33A0555 for ; Wed, 19 Feb 2020 08:24:24 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5D9E71B13C; Wed, 19 Feb 2020 08:24:24 +0100 (CET) Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50075.outbound.protection.outlook.com [40.107.5.75]) by dpdk.org (Postfix) with ESMTP id 0F28E1B13C; Wed, 19 Feb 2020 08:24:22 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dqxiDG66YzvIC+toHmEcx5JZ78uMiNbjI3XEOgrCKC2Z/qGewq/xbUTij8GiGif+KSnyZ4OsQl/eBEY+lPvrxyf0f+Di/hI2cyBxQL9PVEbA1s/3a3eJy67MEYHU0+ulditewk1F1uOY8tMjwBqatHZz5lCFIMJJqGBq52l6AKLQiBmcu5Yt1ZB0c8TCAPh966ZRcLL/wGLlbl3x1iqTwVOozpehQH1CIhirfLva3+UXRIHWKFW1O6HFkAEcvMYtFfgG2vv45RCm1eLoDGIE8H+wD0wImP71KkKu/0t1PYb3UYJLtRIYJDHjd+GZ5YbPTSE8dLfrQ66bb1wLyyiDSg== 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=0w97nQ4VbbCpRsK2Xzv/kOGmOMuP1wMfg7RRVXA/Pck=; b=JNCXe7YpOynwPcVRbFfTKkZGVuu1Z3y/zviMJAeFpNnv9gPpD4LWhDuql87JJ97WU53xfFW+jPuG2zWbHFuh83E3nLL/MfXP0JqrZFxwYheUHJS0hepT3oUS0DK3aknP6wZFS5ddazocZJYhw3RVRLb7rCX+rzEXvBymqn20UFWtBNjPGcDzIzfVx6/6p/sdH41v3ojM6Pw6Tr5rrcUi1BV9/Un/9hW2qZpZO627sb19G5EduWe/wDooLLaNXYk0p00rlzoUU51/IoX+Wt0+T95pBUtoRRHx1GoATyU+im0Z7wCy7nYWixdxBE9d8DV9NIuQ3DXE9x0M7BEDFGT6sw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0w97nQ4VbbCpRsK2Xzv/kOGmOMuP1wMfg7RRVXA/Pck=; b=Al10Bnp1Mh4okP1z+uYdXTbrOLMnDAs6cdpI8n3JH68PAJfUHu60o1z4yoBl1rCk86sCpamCeqDEyii4e/FUkn8xQSUEZFxLyuO4TGiJd8Gmek3kp+xx5GtX0V7KaZt3n/BXC95e3K0joZkDpsvG9SmDEaDgvGogUwLsZlnqqEo= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (10.171.188.154) by AM4PR05MB3217.eurprd05.prod.outlook.com (10.171.186.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.22; Wed, 19 Feb 2020 07:24:22 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::da5:7919:35c1:894]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::da5:7919:35c1:894%6]) with mapi id 15.20.2729.032; Wed, 19 Feb 2020 07:24:22 +0000 From: Slava Ovsiienko To: Matan Azrad , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix geneve tunnel flow validation Thread-Index: AQHV5vEg/1eo/QK9g0yc+Q2rRuMfYagiHSOQ Date: Wed, 19 Feb 2020 07:24:21 +0000 Message-ID: References: <1582095131-11534-1-git-send-email-matan@mellanox.com> In-Reply-To: <1582095131-11534-1-git-send-email-matan@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=viacheslavo@mellanox.com; x-originating-ip: [95.164.10.10] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: aab5e034-5def-4000-b9be-08d7b50cbd87 x-ms-traffictypediagnostic: AM4PR05MB3217:|AM4PR05MB3217: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 0318501FAE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(376002)(366004)(346002)(396003)(39860400002)(189003)(199004)(8676002)(33656002)(8936002)(110136005)(4326008)(52536014)(26005)(186003)(64756008)(53546011)(5660300002)(66446008)(6506007)(316002)(76116006)(66946007)(66476007)(81156014)(81166006)(66556008)(450100002)(9686003)(55016002)(71200400001)(7696005)(2906002)(86362001)(478600001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3217; H:AM4PR05MB3265.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /IV3u6exQIkcFDkPGd/6+RLfvcsB5uKf2dUrx68a3ijg+vXDnPX6jSDsFqhLb5+0WkS8I1fW2+9AxxJa+Bzx/lRp+iJ+TAS1F7x0rMsC+4/B6chuhWcuDFqfKDo0TjBVL2LaqCPbXGKvy3Z1lZS+HqRKD6u7nRRwjacbmjSUK33sgQTBTIJOHYrGfUPl1IGf/34tG2m55tzYX3COJTi28ycpkR4o/0334RtKb/w7n7b6Ayy6bWrV3yIVyss6tRCGr1XtAQ3vIDjmPocGQ1hB1yc4xBp4rjB+als6XYmt6PnB4A+ORef+Y57Gw3g6ab9mWTdGgaqxHjo8RJDFQsVIKpC4lEsy7Xgyf229c7Dz2oWTt/YCOyINiU8d/uZNZIJgA5RVieB9CNW4sF/CV7QFbn4UQV+oveE9/Bg9b9sjsVAT/vCtA+IZOBCjnosqvR5P x-ms-exchange-antispam-messagedata: NV308rnn8bEUbb+bun2sftqaCsNbFOUPXV1d6O/REDB45yTVpVvKSwgDGzYGM0vVErNRHbCP2eyj0xMpST1o5PntTqLEohiKtf8OrYIPAdtbdBma80T5pPjibMPcCwDaq6RLNITvx/xCaLZa1k7a1A== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: aab5e034-5def-4000-b9be-08d7b50cbd87 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Feb 2020 07:24:21.8579 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: L71eN8erB/8mkCWiJzaagBzE7LmMg7jGhxOzq4DZYye7UEl0q2n/1C5bNicneDGhESWcIYXrBHwud292/ETyClHrxFu7O8hG7+sOdAFygE0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3217 Subject: Re: [dpdk-stable] [PATCH] net/mlx5: fix geneve tunnel flow validation X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 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" > -----Original Message----- > From: Matan Azrad > Sent: Wednesday, February 19, 2020 8:52 > To: dev@dpdk.org > Cc: Slava Ovsiienko ; stable@dpdk.org > Subject: [PATCH] net/mlx5: fix geneve tunnel flow validation >=20 > The new Mellanox devices support geneve tunnel statless offloads by nativ= e > HW parsers, FW doesn't need to configure flex parser to support it. >=20 > The FW capability for geneve flex parser is not set for the above devices= , > hence the geneve flow validation failed for them. >=20 > Remove the flex parser validation for geneve, stay only with the direct F= W > capability for geneve support. >=20 > Fixes: e59a5dbcfd07 ("net/mlx5: add flow match on GENEVE item") > Cc: stable@dpdk.org >=20 > Signed-off-by: Matan Azrad Acked-by: Viacheslav Ovsiienko > --- > drivers/net/mlx5/mlx5_flow.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) >=20 > diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c > index 2548201..eb6bd27 100644 > --- a/drivers/net/mlx5/mlx5_flow.c > +++ b/drivers/net/mlx5/mlx5_flow.c > @@ -2135,9 +2135,7 @@ uint32_t mlx5_flow_adjust_priority(struct > rte_eth_dev *dev, int32_t priority, > .protocol =3D RTE_BE16(UINT16_MAX), > }; >=20 > - if (!(priv->config.hca_attr.flex_parser_protocols & > - MLX5_HCA_FLEX_GENEVE_ENABLED) || > - !priv->config.hca_attr.tunnel_stateless_geneve_rx) > + if (!priv->config.hca_attr.tunnel_stateless_geneve_rx) > return rte_flow_error_set(error, ENOTSUP, > RTE_FLOW_ERROR_TYPE_ITEM, item, > "L3 Geneve is not enabled by device" > -- > 1.8.3.1