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 DE83FA00E6 for ; Tue, 9 Jul 2019 07:21:15 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 843941B955; Tue, 9 Jul 2019 07:21:15 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140043.outbound.protection.outlook.com [40.107.14.43]) by dpdk.org (Postfix) with ESMTP id EFDCA2E81 for ; Tue, 9 Jul 2019 07:21:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZUVq0JoK5wz7JYeHsJAh+PKmYqQpfUC3LDF53mEIYlE=; b=sTNvgJUgoq10NIX1UCPZqIi+1Al3EJ9R6G7AYZRc9kG43fnDCBSzywTmH7O2hnlJQvNakiXjcFupCYNJv5BPe63HHIV0Q7JWdAluY7Dx9t8U8fE8yUOMHaSLXmFDvzKWGYc1dmnkj/4hXdOX4Azk1C2Nz1RRHPB3xx2bQr9UEDQ= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (10.171.188.154) by AM4PR05MB3235.eurprd05.prod.outlook.com (10.171.188.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2052.19; Tue, 9 Jul 2019 05:21:14 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::1442:fc4d:41ad:29d2]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::1442:fc4d:41ad:29d2%5]) with mapi id 15.20.2052.019; Tue, 9 Jul 2019 05:21:14 +0000 From: Slava Ovsiienko To: Jack Min , Adrien Mazarguil , Ori Kam , Shahaf Shuler , Yongseok Koh CC: "dev@dpdk.org" Thread-Topic: [Suspected-Phishing][PATCH v7 2/4] net/mlx5: support match GRE protocol on DR engine Thread-Index: AQHVMxepLVOQkrpLM02vMhIU8MSO96bBxggg Date: Tue, 9 Jul 2019 05:21:13 +0000 Message-ID: References: <20190624154018.128379-1-jackmin@mellanox.com> In-Reply-To: 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.67.35.250] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7c62fa2b-3c2a-4620-4322-08d7042d4302 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM4PR05MB3235; x-ms-traffictypediagnostic: AM4PR05MB3235: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4714; x-forefront-prvs: 0093C80C01 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(136003)(376002)(346002)(39860400002)(366004)(189003)(199004)(13464003)(256004)(7696005)(6246003)(476003)(99286004)(486006)(33656002)(14444005)(102836004)(55016002)(110136005)(76176011)(11346002)(446003)(9686003)(26005)(186003)(6436002)(14454004)(6636002)(66946007)(73956011)(2906002)(66476007)(66446008)(64756008)(66556008)(8936002)(52536014)(4326008)(229853002)(74316002)(7736002)(86362001)(25786009)(81166006)(81156014)(8676002)(5660300002)(478600001)(305945005)(3846002)(71200400001)(6116002)(71190400001)(53936002)(316002)(6506007)(53546011)(68736007)(76116006)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3235; 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-message-info: DXux1jDXtYtX313jq3tolePCPJnn//fCK54IBi0L5bP+PHA0c0mxCKX+H2tEv8rC9r6AyPHLxBHb+tfqV5wjM/M/PjUaNUxNQ1SgXEvjGj1ELXyGVSwpGtGJEHduo4DX0WtOmQjUVY0vP92qPJvA8odaJkPVncGEmjMNLQjkltPWsboCY73vJgGhdmvzlQ2lhpCGAQdVGUZrqE/z3c1FoHpkLi7CXf/0ntddJ+3zwXfCHbR8g70bTe9iTdDxoPLkcZKco9n+smZr9Low0WAKjiEJzsgOkZ+hdwLHrDtbBCQ4jt4VcdZgFYTzB1YxeCfg2kHSq7XRP03VCJmnPMxM4XZWELYir8McZGRnSRcMUTXHuR2Shi7hYaI7bPrqT09kr5OBDLdAh+XiscxdbAE1XBwiy1ASWOJ9HwwlNRV5F80= 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: 7c62fa2b-3c2a-4620-4322-08d7042d4302 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2019 05:21:13.8596 (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: viacheslavo@mellanox.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3235 Subject: Re: [dpdk-dev] [Suspected-Phishing][PATCH v7 2/4] net/mlx5: support match GRE protocol on DR engine X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" > -----Original Message----- > From: Xiaoyu Min > Sent: Friday, July 5, 2019 12:54 > To: Adrien Mazarguil ; Ori Kam > ; Slava Ovsiienko ; > Shahaf Shuler ; Yongseok Koh > > Cc: dev@dpdk.org > Subject: [Suspected-Phishing][PATCH v7 2/4] net/mlx5: support match GRE > protocol on DR engine >=20 > DR engine support matching on GRE protocol field without MPLS supports. > So bypassing the MPLS check when DR is enabled. >=20 > Signed-off-by: Xiaoyu Min Acked-by: Viacheslav Ovsiienko > --- > drivers/net/mlx5/mlx5_flow.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c > index dc48252791..0c6bf4114b 100644 > --- a/drivers/net/mlx5/mlx5_flow.c > +++ b/drivers/net/mlx5/mlx5_flow.c > @@ -1610,6 +1610,7 @@ mlx5_flow_validate_item_gre(const struct > rte_flow_item *item, > sizeof(struct rte_flow_item_gre), error); > if (ret < 0) > return ret; > +#ifndef HAVE_MLX5DV_DR > #ifndef HAVE_IBV_DEVICE_MPLS_SUPPORT > if (spec && (spec->protocol & mask->protocol)) > return rte_flow_error_set(error, ENOTSUP, @@ -1617,6 > +1618,7 @@ mlx5_flow_validate_item_gre(const struct rte_flow_item > *item, > "without MPLS support the" > " specification cannot be used for" > " filtering"); > +#endif > #endif > return 0; > } > -- > 2.21.0