Friday, April 5, 2019 4:26 PM, Viacheslav Ovsiienko: > Subject: [dpdk-dev] [PATCH v2 1/1] net/mlx5: fix device probing for old > kernel drivers > > Retrieving network interface index via Netlink fails in case of old ib_core > kernel driver installed - mlx5_nl_ifindex() routine fails due to > RDMA_NLDEV_ATTR_NDEV_INDEX attribute is not supported by the old > driver. > > The patch allowing to retrieve the network interface index and name via > Netlink [1]. So, the problem depends on ib_core module version - 4.16 > supports getting ifindex via Netlink, 4.15 does not. > > This error was ignored in previous versions of MLX5 PMD probing routine. For > single device ifindex was retrieved via sysfs and link control was not lost, > so > problem just was not noticed. > In order to support MLX5 PMD functioning over old kernel driver this patch > adds ifindex retrieving via sysfs into probing routine. > It is worth to note this method works for master/standalone device only. > > [1] > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww > .spinics.net%2Flists%2Flinux- > rdma%2Fmsg62948.html&data=02%7C01%7Cshahafs%40mellanox.com > %7C0968f75813714ee221ac08d6b9ca45ea%7Ca652971c7d2e4d9ba6a4d149256 > f461b%7C0%7C0%7C636900675741983483&sdata=ONhYWfZ7Y4zEOunEd > wx9H0zyOiFIyzHDxnw7MXtTIAk%3D&reserved=0 > Linux tree: 5b2cc79d (Leon Romanovsky 2018-03-27 20:40:49 +0300 270) > > Fixes: ad74bc619504 ("net/mlx5: support multiport IB device during probing") > > Signed-off-by: Viacheslav Ovsiienko <viachesl...@mellanox.com>
Applied to next-net-mlx, thanks.