diff options
| author | Shahar Shitrit <[email protected]> | 2025-07-17 12:06:10 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-19 00:32:58 +0000 |
| commit | 5b4c56ad4da0aa00b258ab50b1f5775b7d3108c7 (patch) | |
| tree | 3ad9af9db9688a9c033381f2e9760692f7c28201 /rust/helpers/helpers.c | |
| parent | net/mlx5: Fix memory leak in cmd_exec() (diff) | |
| download | kernel-5b4c56ad4da0aa00b258ab50b1f5775b7d3108c7.tar.gz kernel-5b4c56ad4da0aa00b258ab50b1f5775b7d3108c7.zip | |
net/mlx5: E-Switch, Fix peer miss rules to use peer eswitch
In the original design, it is assumed local and peer eswitches have the
same number of vfs. However, in new firmware, local and peer eswitches
can have different number of vfs configured by mlxconfig. In such
configuration, it is incorrect to derive the number of vfs from the
local device's eswitch.
Fix this by updating the peer miss rules add and delete functions to use
the peer device's eswitch and vf count instead of the local device's
information, ensuring correct behavior regardless of vf configuration
differences.
Fixes: ac004b832128 ("net/mlx5e: E-Switch, Add peer miss rules")
Signed-off-by: Shahar Shitrit <[email protected]>
Reviewed-by: Mark Bloch <[email protected]>
Signed-off-by: Tariq Toukan <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
