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 B3A08A2F6B for ; Tue, 8 Oct 2019 11:35:04 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5FA591BFE4; Tue, 8 Oct 2019 11:35:04 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60045.outbound.protection.outlook.com [40.107.6.45]) by dpdk.org (Postfix) with ESMTP id 71EBE1BFD9 for ; Tue, 8 Oct 2019 11:35:03 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WilqKYiQWeBbCqnCDE99iSMdJnm+mXoF7fiVvkoSjC9iRoADecMYlG+sQsgBtPzpFTu1ybjmyQmYJ97WS/JOrGNlJIq6CUrDT7E6wh/rel0ySwxiIJ2nulnQN5keXLi++tDlD1mBedJy6gOBHyBojo5JFLxZENNHWVMrgp//CoKYFpKH2DmQ02sjr0sBV5C0XjAG7VIv0ws+Z3MkMGaZt/lUjI98iVJyT/f7iafnWNL7t/AkMU3hkM5hg+lAwoHPl9KcqydqxNJILTUUbUeznrdAKBfuKDuCa9umOG7xXCeuWze/1esJ1tFvG0u55Wz7BJMLIE/tVx8WqJ5xd+dlGQ== 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=Lign+DNrdSxX1hhSLnvCOKh4L8qTb4rStBPOqyKfFv0=; b=Ysw6kNKG4NwJyFZJUeKOjbOAXoj3wh5JKpc5mM8Vp02F2s68jKlLxhOwaTd+C/bIRdCRPXfnm3Nn6po2QIGUaRMKeDHSQ48TL5y4Nv0iKBXx6BnZTz11NhCuwypGuufxnJNEUXN+eobEEqgGhJWLWEv8QpC6WB97vGfJkd+D5eY8HNXYkLuscNHl4LiCQfV5TFB2X8/Q9jbwItbVwxPrgFfFJw0umS5ZCpfxxH8wRv17Mwy/Q2P+b3IKMQkpIcp3XwhrgAQXOkNRKt1XW1xgcFDnPbygN2jB8Ad1xMdj/lNJG1v0XGbSJL6EO46axUEuf46DSgD9JbzLoZ5vp/K9qQ== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Lign+DNrdSxX1hhSLnvCOKh4L8qTb4rStBPOqyKfFv0=; b=YZM4MktzdzuK9OOEfGihTavEY9IM6rj8nzwqWBGzJzm6+hGEsjl5sBCABqVK4lDP0Sf1MKbgZ8Leh2ikUzNW8tHZwlVBUODuc2saYPPjGWLd8wUt19MgBQX5abovnTtj5zTGEgTM7+H5LFxPFAy5m1J5jOJiJyYgertI0E9/bGw= Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com (52.134.65.161) by DB3PR0502MB4044.eurprd05.prod.outlook.com (52.134.72.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2327.24; Tue, 8 Oct 2019 09:35:02 +0000 Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::1528:69ed:ffec:764b]) by DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::1528:69ed:ffec:764b%5]) with mapi id 15.20.2327.026; Tue, 8 Oct 2019 09:35:02 +0000 From: Raslan Darawsheh To: Slava Ovsiienko , "dev@dpdk.org" CC: Matan Azrad Thread-Topic: [PATCH] net/mlx5: fix device scan within switch domain Thread-Index: AQHVfRcIkNyu0qBZCEKCI/4T4pPBfKdQfQqw Date: Tue, 8 Oct 2019 09:35:02 +0000 Message-ID: References: <1570456579-5075-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1570456579-5075-1-git-send-email-viacheslavo@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: [212.29.221.74] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ac7d4718-e081-4446-333d-08d74bd2cbab x-ms-office365-filtering-ht: Tenant x-ms-traffictypediagnostic: DB3PR0502MB4044:|DB3PR0502MB4044: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 01842C458A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(39860400002)(396003)(136003)(376002)(366004)(189003)(199004)(13464003)(7736002)(76176011)(102836004)(6506007)(11346002)(446003)(3846002)(53546011)(66446008)(86362001)(476003)(66946007)(305945005)(66476007)(2906002)(186003)(74316002)(26005)(5660300002)(52536014)(316002)(4326008)(99286004)(76116006)(64756008)(66556008)(7696005)(110136005)(71200400001)(71190400001)(6116002)(25786009)(6246003)(14454004)(486006)(66066001)(107886003)(478600001)(2501003)(256004)(14444005)(81166006)(8936002)(81156014)(8676002)(229853002)(33656002)(55016002)(6436002)(9686003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB4044; H:DB3PR0502MB3964.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: wz0MvC5LkI2Vyar3g+FI5cXgdauVAmhy2l3HB88iNv7GjTuJMu+fNMWqFUNySuF1zt9PmxGUJrjVH+XtjKQ33mwTBU+OI+tLDi4o52n1eI64VrtwCSCtUb04YtZBgeI4W7XqIAY2YxuztGjtA8KFxSF7wlnQw17PE9C9YCuax5eCgwcjF/5FFOs6/I/0Tv4MMXnMO+kPds/v2VHdkztr6i9w+UPD54W9uZ95YMWgp+VctKYJuY3Ih9gC17m/lagMvDrCRtzORM0Jwd4vauZZD/o3I5DHumVLp2VkoafQNLPOreRN8gqA+aY6Bo2JEfhiSvL25tZf4PWyhrkM26XD9LNFbTiIizQ7eEccYmnUiM01Nj3w7sWU6l32WdiqapApXnp/HjmJwzjejHaUe/A0Z7AyvcyeJVa4a0ZAw3PUxWY= 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: ac7d4718-e081-4446-333d-08d74bd2cbab X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Oct 2019 09:35:02.6485 (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: ld9gn3BAVOJTpY7GWz+ALA1H1szQYUcPAnYgNxJhEEGpbXhhJzypj/jvmGbgdCPka4Pajc8PjN8spdJrL06reQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB4044 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix device scan within switch domain 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: Viacheslav Ovsiienko > Sent: Monday, October 7, 2019 4:56 PM > To: dev@dpdk.org > Cc: Matan Azrad ; Raslan Darawsheh > > Subject: [PATCH] net/mlx5: fix device scan within switch domain >=20 > In LAG configuration the devices in the same switch domain might be > spawned on the base of different PCI devices, so we should check all devi= ces > backed by mlx5 PMD whether they belong to specified switch domain. When > the new devices are being created it is not possible to detect whether th= e > sibling devices created in the current probe() loop belong to the driver,= driver > field is not filled yet (it will be done on returned success of current p= robe()). > This patch updates the device scanning, allowing extra match on current > backing PCI device, is being used to create siblings. >=20 > Fixes: 9f4a56d68966 ("net/mlx5: extend switch domain searching range") >=20 > Signed-off-by: Viacheslav Ovsiienko Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh