diff options
author | Eran Ben Elisha <eranbe@mellanox.com> | 2017-06-01 09:40:56 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2017-07-27 16:40:16 +0300 |
commit | 079adf05398f12371ea91dd53fdf61ee6352bc01 (patch) | |
tree | d9e1064338e0fb512070ae3debe4fa118de626a9 /fs/affs/amigaffs.h | |
parent | 6b84202c946cd3da3a8daa92c682510e9ed80321 (diff) |
net/mlx5: Clean SRIOV eswitch resources upon VF creation failure
Upon sriov enable, eswitch is always enabled.
Currently, if enable hca failed over all VFs, we would skip eswitch
disable as part of sriov disable, which will lead to resources leak.
Fix it by disabling eswitch if it was enabled (use indication from
eswitch mode).
Fixes: 6b6adee3dad2 ('net/mlx5: SRIOV core code refactoring')
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Noa Osherovich <noaos@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'fs/affs/amigaffs.h')
0 files changed, 0 insertions, 0 deletions