summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMark Bloch <mbloch@nvidia.com>2026-05-03 23:27:25 +0300
committerJakub Kicinski <kuba@kernel.org>2026-05-06 19:03:37 -0700
commit8a6712925d382d03f9423dd38edf8a90f50aef44 (patch)
tree9f030c07e601b10158cdaab5381aabf52fc539e5 /include/linux
parent32a72840ee300fe88e9f31dc55f9ae1dacdc8b8d (diff)
net/mlx5: E-Switch, unwind only newly loaded representor types
__esw_offloads_load_rep() may return success without invoking the representor load callback when the representor type is already loaded. On a later load failure, mlx5_esw_offloads_rep_load() unconditionally unloaded all previously iterated representor types. This could unload representor types that were already loaded before this load attempt. Track which representor types were actually loaded by the current call and unwind only those on error. Also restore the representor state back to REP_REGISTERED when the load callback itself fails. Signed-off-by: Mark Bloch <mbloch@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20260503202726.266415-7-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions