Skip to content

Commit

Permalink
[swss]: Change the hash seed to 0 for ToR and 10 for Leaf routers (#1667
Browse files Browse the repository at this point in the history
)

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>
  • Loading branch information
Shuotian Cheng authored and lguohan committed May 2, 2018
1 parent bebb7a0 commit e082cd6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions dockers/docker-orchagent/switch.json.j2
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{# the range of hash_seed is 0-15 #}
{# set default hash seed to 0 #}
{% set hash_seed = 0 %}
{% if DEVICE_METADATA.localhost.type %}
{% if DEVICE_METADATA.localhost.type == "ToRRouter" %}
{% set hash_seed = 10 %}
{% set hash_seed = 0 %}
{% elif DEVICE_METADATA.localhost.type == "LeafRouter" %}
{% set hash_seed = 20 %}
{% set hash_seed = 10 %}
{% endif %}
{% endif %}
[
Expand Down

0 comments on commit e082cd6

Please sign in to comment.