summaryrefslogtreecommitdiff
path: root/rust/helpers/err.c
diff options
context:
space:
mode:
authorPatrisious Haddad <phaddad@nvidia.com>2024-11-07 22:43:46 +0300
committerJakub Kicinski <kuba@kernel.org>2024-11-12 06:28:17 +0300
commitab85ebf437231ceaf359c2a4679bebd7e8d6bdb2 (patch)
tree036d87e4aef7ccc60dbc7ca3e3e7c74631727759 /rust/helpers/err.c
parent7d3f3b4367f315a61fc615e3138f3d320da8c466 (diff)
downloadlinux-ab85ebf437231ceaf359c2a4679bebd7e8d6bdb2.tar.xz
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 'rust/helpers/err.c')
0 files changed, 0 insertions, 0 deletions