net/mlx5: Add support to get lag physical port
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 30 Apr 2020 19:21:41 +0000 (22:21 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 May 2020 19:15:38 +0000 (12:15 -0700)
commitc6bc6041b10f70b617f2d13894311fe62027d292
treec8db7e5b45942128ddaff78298e9da525a55f94b
parent64363e61c7bbcfa4c7d6697d96ef2e18fc311cf3
net/mlx5: Add support to get lag physical port

Add function to get the device physical port of the lag slave.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lag.c
include/linux/mlx5/driver.h