net/mlx5: inherit master link settings for representors
authorViacheslav Ovsiienko <viacheslavo@mellanox.com>
Sat, 27 Apr 2019 04:19:58 +0000 (04:19 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
commit0333b2f584d95577681ea88e4238be6cb4369569
treec6db5274c166e5a9914cddf0e6194ecf8cd9716d
parent79e7ba1f7d917ff69da3a1b793d0467904f2388f
net/mlx5: inherit master link settings for representors

There are some physical link settings can be queried from
Ethernet devices: link status, link speed, speed capabilities,
duplex mode, etc. These setting do not make a lot of sense for
representors due to missing physical link. The new kernel drivers
dropped query for link settings for representors causing the
ioctl call to fail. This patch adds some kind of emulation
of link settings to PMD - representors inherit the link parameters
from the master device. The actual link status (up/down)
is retrieved from the representor device.

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_ethdev.c