Commit 60bcfed
mlxsw: spectrum_router: Apply user-defined multipath hash seed
When Spectrum machines compute hash for the purposes of ECMP routing, they
use a seed specified through RECR_v2 (Router ECMP Configuration Register).
Up until now mlxsw computed the seed by hashing the machine's base MAC.
Now that we can optionally have a user-provided seed, use that if possible.
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240607151357.421181-4-petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 4ee2a8c commit 60bcfed
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11450 | 11450 | | |
11451 | 11451 | | |
11452 | 11452 | | |
| 11453 | + | |
11453 | 11454 | | |
11454 | 11455 | | |
11455 | 11456 | | |
11456 | 11457 | | |
11457 | 11458 | | |
11458 | | - | |
| 11459 | + | |
| 11460 | + | |
| 11461 | + | |
| 11462 | + | |
11459 | 11463 | | |
11460 | 11464 | | |
11461 | 11465 | | |
| |||
0 commit comments