From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 62B45A05D3 for ; Tue, 26 Mar 2019 20:37:28 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2411A1B49B; Tue, 26 Mar 2019 20:37:28 +0100 (CET) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10052.outbound.protection.outlook.com [40.107.1.52]) by dpdk.org (Postfix) with ESMTP id E00E21B49A for ; Tue, 26 Mar 2019 20:37:26 +0100 (CET) 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=QUMHYsBRAanDslrt2iHQIbIg5ZUcdZnvbYQmthPEdsE=; b=sIckFq0NG28Qk3bn1IVgAudKkCnFiwVHDG/QuC8gXN6WzwlMm6DIKI4GBZNWyfY6uXUtKZ7ZTMgQaMZEMrwwcKIaxL9Mx5597dQtVnXdpt/LgP+est8sOoiwZZTvyw46p2rTzNsC6v18Kn8oM/Y6ELpLBJUJXfIAaqkshCaya+M= Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com (52.133.45.150) by AM0PR0502MB4082.eurprd05.prod.outlook.com (52.133.41.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1730.18; Tue, 26 Mar 2019 19:37:25 +0000 Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::84f3:7e92:7a51:1003]) by AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::84f3:7e92:7a51:1003%2]) with mapi id 15.20.1750.014; Tue, 26 Mar 2019 19:37:25 +0000 From: Shahaf Shuler To: Slava Ovsiienko , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3 01/13] net/mlx5: add representor recognition on kernels 5.x Thread-Index: AQHU4+mna0e23RtHuE2YCsrP9IfYFqYeTrmw Date: Tue, 26 Mar 2019 19:37:25 +0000 Message-ID: References: <1553533414-9911-1-git-send-email-viacheslavo@mellanox.com> <1553614522-12151-1-git-send-email-viacheslavo@mellanox.com> <1553614522-12151-2-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1553614522-12151-2-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=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: afb6521b-b877-4f6a-37e1-08d6b2227985 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM0PR0502MB4082; x-ms-traffictypediagnostic: AM0PR0502MB4082: x-microsoft-antispam-prvs: x-forefront-prvs: 09888BC01D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(346002)(39860400002)(136003)(366004)(189003)(199004)(26005)(14454004)(8936002)(71200400001)(71190400001)(105586002)(68736007)(106356001)(2906002)(52536014)(6436002)(5660300002)(11346002)(446003)(4744005)(2501003)(6116002)(81166006)(97736004)(81156014)(476003)(3846002)(478600001)(25786009)(186003)(7696005)(102836004)(9686003)(229853002)(316002)(55016002)(74316002)(53936002)(110136005)(7736002)(86362001)(6506007)(486006)(6246003)(256004)(76176011)(99286004)(305945005)(66066001)(14444005)(33656002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB4082; H:AM0PR0502MB3795.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: a6l6/if9cbsmmTuiTB8xBL19dX/Epqz5M9GJ4CZF6irp7Jh2df/deIi3PlUklTgyBxMvf5fQvODcE89RzMVhMxVpfukKBlgBiz5FkEhO4YF5hLD6riOCbGNo9rizsqC/l9KdIDVom2lc0wKSyFC3br//jVfYkx1LITKG81p51cvS3nOO/NQe3AvYttFo/uyUkQZvQQiKPJjrYdqVNOp0A7rtsRaQi27vGN+CzF/mqw1r6x3QydSNUwloU59DUPfzl58M71fny3BbCFNBbkmpwNP2piDI4jH5W1vceLS36M5eMP/YO3XJpE+qbND+beEEbr413T3aWp6nqUOuPheTSO3ZmL+nMdI0lebPE/OZBJKCCM9B9ql4xeVM+JD7CU8Jf2kJ4CQMcuOjHkNsSByHSWQA9NXFJ3pfpSDcvjSPZLc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: afb6521b-b877-4f6a-37e1-08d6b2227985 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Mar 2019 19:37:25.5548 (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-Transport-CrossTenantHeadersStamped: AM0PR0502MB4082 Subject: Re: [dpdk-dev] [PATCH v3 01/13] net/mlx5: add representor recognition on kernels 5.x 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" Message-ID: <20190326193725.2mvnfihTtkDlXHRsvcmmYFYWIkdYxJJ7eq8B-4i0GDs@z> Tuesday, March 26, 2019 5:35 PM, Viacheslav Ovsiienko: > Subject: [dpdk-dev] [PATCH v3 01/13] net/mlx5: add representor recognitio= n > on kernels 5.x >=20 > The master device and VF representors were distinguished by presence of > port name, master device did not have one. The new Linux kernels starting > from 5.0 provide the port name for master device and the implemented > representor recognizing method does not work. > The new recognizing method is based on querying the VF number, has been > created on the base of the device. >=20 > The IFLA_NUM_VF attribute is returned by kernel if IFLA_EXT_MASK > attribute is specified in the Netlink request message. >=20 > Also the presence check of device symlink in device sysfs folder is added= to > distinguish representors with sysfs based method. >=20 > Signed-off-by: Viacheslav Ovsiienko Acked-by: Shahaf Shuler