Skip to content

Commit e082cd6

Browse files
Shuotian Chenglguohan
Shuotian Cheng
authored andcommitted
[swss]: Change the hash seed to 0 for ToR and 10 for Leaf routers (#1667)
Due to some ASIC platform limitations, the hash seed range is from 0 to 15. Thus the switch.json.j2 template is updated so that ToRRouter is using hash seed 0 and LeafRouter is using hash seed 10. Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
1 parent bebb7a0 commit e082cd6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dockers/docker-orchagent/switch.json.j2

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
{# the range of hash_seed is 0-15 #}
12
{# set default hash seed to 0 #}
23
{% set hash_seed = 0 %}
34
{% if DEVICE_METADATA.localhost.type %}
45
{% if DEVICE_METADATA.localhost.type == "ToRRouter" %}
5-
{% set hash_seed = 10 %}
6+
{% set hash_seed = 0 %}
67
{% elif DEVICE_METADATA.localhost.type == "LeafRouter" %}
7-
{% set hash_seed = 20 %}
8+
{% set hash_seed = 10 %}
89
{% endif %}
910
{% endif %}
1011
[

0 commit comments

Comments
 (0)