]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit327b839b8f9e642d98216f9073adb5c10401cb40
tree292cd9e020bb81c72b63c9b6793682d3617cef59
parent519580ce09c17ea8e4b8275313fd7ba60e5cb969
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