]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Allow transition to offloads mode for ECPF
authorBodong Wang <bodong@mellanox.com>
Thu, 20 Dec 2018 23:28:06 +0000 (17:28 -0600)
committerSaeed Mahameed <saeedm@mellanox.com>
Sat, 16 Feb 2019 01:25:58 +0000 (17:25 -0800)
commit8868820f48849ae51fdf2a365874ac8a58de4f43
tree4fc1f1b90e8c4e965016558e2968d6fabb2fabb1
parent7ce388b7fd33ad78fc2a8f0ac8f23609b9ca9a28
net/mlx5: E-Switch, Allow transition to offloads mode for ECPF

Currently, the e-switch driver requires going to legacy mode before
changing to the offloads mode. This makes sense for regular case as
the legacy mode is done by creating VFs.

However, it's problematic when ECPF is the eswitch manager. In such
case, ECPF will control the vports on peer host including the peer
PF and VFs. But ECPF doesn't need and shall not create VFs as the
VFs are created in the peer PF host.

Grant ECPF the ability to change from none to the offloads mode. Note
that currently the only way to go back to none mode is by unloading
the ECPF driver.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c