net/mlx5: fix representors detection
authorNelio Laranjeiro <nelio.laranjeiro@6wind.com>
Tue, 24 Jul 2018 08:36:45 +0000 (10:36 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Jul 2018 12:05:52 +0000 (14:05 +0200)
commitf872b4b99d2cb55933ff2172f5f6e346545bc27b
tree27ebd9b884f4f4dafcbe3675a2a61285d8286e1d
parent2bc98393ac3ab980557187257369ec436a8f9eeb
net/mlx5: fix representors detection

On systems where the required Netlink commands are not supported but
Mellanox OFED is installed, representors information must be retrieved
through sysfs.

Fixes: 26c08b979d26 ("net/mlx5: add port representor awareness")

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_ethdev.c