diff options
author | Patrisious Haddad <phaddad@nvidia.com> | 2024-11-07 21:43:46 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-11-11 19:28:17 -0800 |
commit | ab85ebf437231ceaf359c2a4679bebd7e8d6bdb2 (patch) | |
tree | 036d87e4aef7ccc60dbc7ca3e3e7c74631727759 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 7d3f3b4367f315a61fc615e3138f3d320da8c466 (diff) |
net/mlx5: E-switch, refactor eswitch mode change
The E-switch mode was previously updated before removing and re-adding the
IB device, which could cause a temporary mismatch between the E-switch mode
and the IB device configuration.
To prevent this discrepancy, the IB device is now removed first, then
the E-switch mode is updated, and finally, the IB device is re-added.
This sequence ensures consistent alignment between the E-switch mode and
the IB device whenever the mode changes, regardless of the new mode value.
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20241107194357.683732-2-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions