net/mlx5: Adjustments for the activate LAG logic to run under sriov
authorRabie Loulou <rabiel@mellanox.com>
Thu, 26 Apr 2018 13:45:41 +0000 (16:45 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 14 Dec 2018 21:28:53 +0000 (13:28 -0800)
commit3b5ff59fd851d8e8c7c3ba08b01011baffa60cb6
tree292cd9e020bb81c72b63c9b6793682d3617cef59
parent1418ddd96afdb097ab9a2fe09c94e820d596321a
net/mlx5: Adjustments for the activate LAG logic to run under sriov

When HW lag is set/unset, roce must not be enabled on the port, as such
we wrap such changes with roce enable/disable either directly or through
re-creation of IB device.

Currently, lag and sriov are mutually exclusive, so by definition this
code doesn't run under sriov.

Towards changing this exclusion, we need to make sure that roce will not
be enabled on the eswitch manager port under sriov since this is
requirement of the switchdev mode.

We are going strict here and avoiding this all together under sriov.

Signed-off-by: Rabie Loulou <rabiel@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lag.c