net/mlx5: fix representor port link status
authorXueming Li <xuemingl@mellanox.com>
Wed, 19 Sep 2018 08:27:37 +0000 (16:27 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 11 Oct 2018 16:53:49 +0000 (18:53 +0200)
commit7bc47fb839cba55a6e0c86b5f2b746ff7dcbc514
tree3e4f6f12366549c6af12f664563db65a7edc4e43
parent57123c00c1b8b6c8de7c88b1d16a7261d7ea9d3b
net/mlx5: fix representor port link status

Current code uses PF links status for representor port, not the
representor interface itself.
This caused wrong representor port link status when toggling
interface up or down.

Fixes: 2b7302638898 ("net/mlx5: probe all port representors")
Cc: stable@dpdk.org
Signed-off-by: Xueming Li <xuemingl@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_ethdev.c