From cafdbdf96df12420fba0cb541bb1055774318c8c Mon Sep 17 00:00:00 2001 From: Andriy Yurkiv Date: Thu, 21 Oct 2021 17:42:31 +0000 Subject: [PATCH 1/2] [Mellanox] Remove static config for VXLAN src port tange feature Signed-off-by: Andriy Yurkiv --- .../x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D48C8/sai.profile | 1 - .../x86_64-mlnx_msn3800-r0/Mellanox-SN3800-C64/sai.profile | 1 - .../x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D28C49S1/sai.profile | 1 - .../x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D28C50/sai.profile | 1 - 4 files changed, 4 deletions(-) diff --git a/device/mellanox/x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D48C8/sai.profile b/device/mellanox/x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D48C8/sai.profile index aa93654b5406..ce9e96ee4fa3 100644 --- a/device/mellanox/x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D48C8/sai.profile +++ b/device/mellanox/x86_64-mlnx_msn2700-r0/Mellanox-SN2700-D48C8/sai.profile @@ -1,4 +1,3 @@ SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_2700_48x50g_8x100g.xml -SAI_VXLAN_SRCPORT_RANGE_ENABLE=1 SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps SAI_DUMP_STORE_AMOUNT=10 diff --git a/device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-C64/sai.profile b/device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-C64/sai.profile index 35d3ce25a43a..9c74ce166084 100644 --- a/device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-C64/sai.profile +++ b/device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-C64/sai.profile @@ -1,4 +1,3 @@ SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800.xml -SAI_VXLAN_SRCPORT_RANGE_ENABLE=1 SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps SAI_DUMP_STORE_AMOUNT=10 diff --git a/device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D28C49S1/sai.profile b/device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D28C49S1/sai.profile index 4846e323ae99..bd07d661025d 100644 --- a/device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D28C49S1/sai.profile +++ b/device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D28C49S1/sai.profile @@ -1,4 +1,3 @@ SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800_1x10g_28x50g_49x100g.xml -SAI_VXLAN_SRCPORT_RANGE_ENABLE=1 SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps SAI_DUMP_STORE_AMOUNT=10 diff --git a/device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D28C50/sai.profile b/device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D28C50/sai.profile index ea9a7997fc04..ef03ceff837e 100644 --- a/device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D28C50/sai.profile +++ b/device/mellanox/x86_64-mlnx_msn3800-r0/Mellanox-SN3800-D28C50/sai.profile @@ -1,4 +1,3 @@ SAI_INIT_CONFIG_FILE=/usr/share/sonic/hwsku/sai_3800_28x50g_52x100g.xml -SAI_VXLAN_SRCPORT_RANGE_ENABLE=1 SAI_DUMP_STORE_PATH=/var/log/mellanox/sdk-dumps SAI_DUMP_STORE_AMOUNT=10 From a0ae4ffa939e12e7289dcb86df25607cc1b2d478 Mon Sep 17 00:00:00 2001 From: Andriy Yurkiv Date: Thu, 21 Oct 2021 17:46:09 +0000 Subject: [PATCH 2/2] [Mellanox][VXLAN] add params to switch.json file in order to configure VXLAN src port range feature Signed-off-by: Andriy Yurkiv --- dockers/docker-orchagent/switch.json.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dockers/docker-orchagent/switch.json.j2 b/dockers/docker-orchagent/switch.json.j2 index 4d2a0be1b051..0a5799673c8b 100644 --- a/dockers/docker-orchagent/switch.json.j2 +++ b/dockers/docker-orchagent/switch.json.j2 @@ -18,6 +18,10 @@ [ { "SWITCH_TABLE:switch": { +{% if ("Mellanox-SN3800-D28C50" in DEVICE_METADATA.localhost.hwsku) or ("Mellanox-SN3800-C64" in DEVICE_METADATA.localhost.hwsku) or ("Mellanox-SN3800-D28C49S1" in DEVICE_METADATA.localhost.hwsku) or ("Mellanox-SN2700-D48C8" in DEVICE_METADATA.localhost.hwsku) %} + "vxlan_src": 0xFF00, + "vxlan_mask": 8 +{% endif %} "ecmp_hash_seed": "{{ hash_seed_value }}", "lag_hash_seed": "{{ hash_seed_value }}", "fdb_aging_time": "600"