]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net/mlx5: E-switch, Reduce dependency on num_vfs during mode set
authorParav Pandit <parav@mellanox.com>
Fri, 26 Jun 2020 20:15:12 +0000 (23:15 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 16 Jul 2020 23:36:40 +0000 (16:36 -0700)
commitea2128fd632c5308569eb789842910aa14796d22
treeabf2be0688010c559270b8203efca58e09c69045
parent3d5f41ca01244fa2d261b76a0c728d6ac4526645
net/mlx5: E-switch, Reduce dependency on num_vfs during mode set

Currently only ECPF allows enabling eswitch when SR-IOV is disabled.

Enable PF also to enable eswitch when SR-IOV is disabled.
Load VF vports when eswitch is already enabled.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c