net/mlx5: enhance SR-IOV detection
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Wed, 8 Jun 2016 09:43:30 +0000 (11:43 +0200)
committerBruce Richardson <bruce.richardson@intel.com>
Mon, 20 Jun 2016 15:21:49 +0000 (17:21 +0200)
commit85e347db874de5e5cb72cf9f4bc4028d24d87c71
tree84e02d9b8ea80c9613725835dc643ab988fc0d2e
parent96327064abe8089b98ed2a2553f242022fe7d29c
net/mlx5: enhance SR-IOV detection

SR-IOV mode is currently set when dealing with VF devices. PF devices must
be taken into account as well if they have active VFs.

Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
drivers/net/mlx5/mlx5.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/mlx5/mlx5_rxtx.c