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 27055A04B4; Fri, 8 Nov 2019 00:32:35 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 650FE1BF87; Fri, 8 Nov 2019 00:32:34 +0100 (CET) Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70089.outbound.protection.outlook.com [40.107.7.89]) by dpdk.org (Postfix) with ESMTP id 073151BF87 for ; Fri, 8 Nov 2019 00:32:33 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R1sqQa4WF5gRvf365CmwLDku+E0heo1/hpB1PGd62f2jt+BtvzG8IPrPj7sqf0mQO/IfeU+gXrkVoh6J7y68K4dw4ayXpqRFR9PcUEoG5eYRgrBUM+6TcGm8bQk+zrUz0WYao+PDtsQ27aIFh1XAuaGYy3aqvjvMwqPboA7K7fqqPfH1zY7YirvQv4f7n2y183CzlAJXsR4g9iHTc7mptZ0DbmMXZYkgKvLOIZjEEQEpAV9Zz5/0iyO93QBoKHSHdsdb8qlY0fxgngXzy9p0YxPfoFlEZe5IyBhmMhODnQOPJyFB0ipRKoNbRNr8TgROaIuw9P60jqmeKwGSsj7e9w== 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=Il0dNVCOFdYCyZ5IsItCPmeuyJG+NE2SzAy4oWyC+nQ=; b=KW0gt3fEXKbx7EVSbUhDw5NKdKFqFVXqbWw+r1+whkCUNYHqQnEqIccUP4xj7ePqst2dI3JsTj9BFt/mZAkaKky9hcjZGdwYZ+dVEQI1ZI1IcBERCz1ghBOTimxisR3by7Sg6cMfxH4EA8/UqFFqjhxbPTzlCmYouUUuFyDB4rQgPdZSokQURnvvCSV/dnU7TR8/jiuqDELf4S+U80HC4GRr3vvADvq5Bo2LtJihx8WXRUF2AQDyL2NzT9Xdms5pUdpRjkj8/Mk0/l9Lz349jJLiSOM6Wvnks4cd6o2HORoicq4ThoH5KVRqJ4qizmQ1h7F5EclTFyV9UzgWBuy5Vw== 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=Il0dNVCOFdYCyZ5IsItCPmeuyJG+NE2SzAy4oWyC+nQ=; b=jD28SaAhpEsL2t463tyZ2AJuFRCXEHXrs3gf59TUSfj+7Isxco/H+mrkCMYQB4WLuwAso1t+E1wkhBD48/Epo01ye0CVsgKD0Dn4madwRI1QlpVvMK7VT+q6/lqlILiQ6vjFHlA5Cn0zbSx0YtMd5ntqPYTd42UxtzYFQXVRxVQ= Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com (52.134.65.161) by DB3PR0502MB4043.eurprd05.prod.outlook.com (52.134.68.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2430.20; Thu, 7 Nov 2019 23:32:32 +0000 Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::a850:bac9:c90f:f2f5]) by DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::a850:bac9:c90f:f2f5%6]) with mapi id 15.20.2408.028; Thu, 7 Nov 2019 23:32:32 +0000 From: Raslan Darawsheh To: Dekel Peled , Matan Azrad , Shahaf Shuler , Slava Ovsiienko CC: Ori Kam , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: fix condition to create default rule Thread-Index: AQHVlXzcao3GMA+vC0CaPSwNvp8tOaeAXDDA Date: Thu, 7 Nov 2019 23:32:31 +0000 Message-ID: References: <68c9b97142373f84eb6af76e5fcf3178bfe4e21c.1573138940.git.dekelp@mellanox.com> In-Reply-To: <68c9b97142373f84eb6af76e5fcf3178bfe4e21c.1573138940.git.dekelp@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=rasland@mellanox.com; x-originating-ip: [188.161.230.21] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: b6fdcc99-402e-4df6-e2fd-08d763dac2ea x-ms-traffictypediagnostic: DB3PR0502MB4043:|DB3PR0502MB4043: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 0214EB3F68 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(4636009)(376002)(136003)(366004)(396003)(39860400002)(346002)(199004)(189003)(13464003)(71190400001)(6436002)(71200400001)(110136005)(54906003)(4326008)(486006)(76176011)(102836004)(5660300002)(6116002)(3846002)(33656002)(7736002)(478600001)(74316002)(52536014)(186003)(26005)(229853002)(305945005)(14454004)(256004)(446003)(8676002)(11346002)(25786009)(6506007)(53546011)(316002)(6246003)(81156014)(81166006)(8936002)(66446008)(7696005)(476003)(2906002)(6636002)(55016002)(9686003)(4744005)(66476007)(66556008)(64756008)(66066001)(66946007)(86362001)(76116006)(99286004)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB4043; H:DB3PR0502MB3964.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: +sKecPHohS211AOgVDg/13/9k68qw+IX+4/yLIs9uJk0mFkC6IX1DEYFmX99+HG4UwHCk2d8Z6XSTwfBpCW1pPZzrYOAqLdjwppsOMcLRkeLmpgbJ9n4Lz+J2CDoAVrqOUUHDR0MX7ZUEf2PCCkEJyAEq52kwSCwNRW+l4AjL24/PCph8L2HFYu20PIVIAyDERaN33A0OAkFT9M/qnpOhAFA+AycRWKtT3X5PmgE5/EEVuiCBkLlh9LJGsMOh5kb/4mOMRWowIx18Xr4jXdrc/h7h4hSo82eSdAGCGzCJY4kmXpiZPp4m1Vq46p77ELqYF8EhX3D3c67nAP0H0fRDRlDuvrhSPQGCVseKGUk3uU45pTR5/PAaU/VtlO3JZbFt/ECdhdaAVrwuAVzASXu4ZG7Gd564jtW3h7Ks6jdbLAcXIBsHsXLqynkiwM+FUEt 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: b6fdcc99-402e-4df6-e2fd-08d763dac2ea X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Nov 2019 23:32:31.9318 (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: K4Ra8PkA7WmzFR1wC73pwGtSaOpKZsVOxOYAcFXc11Z1GCUjZWRC6am3gfaeFeiTcQrRdocNtFNJG9wqVkABIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB4043 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix condition to create default rule 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" Hi, > -----Original Message----- > From: dev On Behalf Of Dekel Peled > Sent: Thursday, November 7, 2019 5:04 PM > To: Matan Azrad ; Shahaf Shuler > ; Slava Ovsiienko > Cc: Ori Kam ; dev@dpdk.org > Subject: [dpdk-dev] [PATCH] net/mlx5: fix condition to create default rul= e >=20 > Previous patch added creation of a default flow rule on port start. > Rule is created under the condition that device is in eswitch mode, > and is not a VF, to make sure rule is created only once. > In Bluefield, where PF representor is used, this condition is not > sufficient. Rule is created twice, causing loss of traffic. >=20 > This patch updates this condition, adding check that device is also > not a representor. >=20 > Fixes: b67b4ecbde22 ("net/mlx5: skip table zero to improve insertion rate= ") >=20 > Signed-off-by: Dekel Peled > --- Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh