From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shahaf Shuler Subject: Re: [PATCH v3 01/13] net/mlx5: add representor recognition on kernels 5.x 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To: Slava Ovsiienko , "dev@dpdk.org" Return-path: 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) In-Reply-To: <1553614522-12151-2-git-send-email-viacheslavo@mellanox.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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