net/mlx5: Clear VF's configuration on disabling SRIOV
authorAya Levin <ayal@mellanox.com>
Tue, 3 Sep 2019 14:45:47 +0000 (17:45 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Nov 2019 21:55:14 +0000 (14:55 -0700)
commit556b9d16d3f53d1e72b988f37501bb7e6d3f358b
treed4aad6d802e36608e89c150f558a895c73aa6539
parent32680da7103439095ba8c2dbe30c3e4d0e05e4c2
net/mlx5: Clear VF's configuration on disabling SRIOV

When setting number of VFs to 0 (disable SRIOV), clear VF's
configuration.

Signed-off-by: Aya Levin <ayal@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.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
drivers/net/ethernet/mellanox/mlx5/core/sriov.c