[202205] Update SOC properties for DLR_INIT based pfcwd recovery (#15217)

Why I did it
Update soc properties for certain roles that need to use pfcwd dlr init based recovery mechanism

How to verify it
Updated the templates on a 7050cx3 dual tor and 7260 T1 which satisfies these conditions and validated pfcwd recovery which uses DLR_INIT based mechanism. Also validated that this mechanism is not used on 7050cx3 single tor with the updated templates

Signed-off-by: Neetha John <nejo@microsoft.com>
This commit is contained in:
Neetha John 2023-05-26 14:29:34 -07:00 committed by GitHub
parent a4633d32ed
commit 8661e9de2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 58 additions and 0 deletions

View File

@ -1,16 +1,23 @@
{# Construct config.bcm to include additional soc properties per specific device metadata requirement #} {# Construct config.bcm to include additional soc properties per specific device metadata requirement #}
{%- set map_prio = '' -%} {%- set map_prio = '' -%}
{%- set pfcwd_sock = '' -%}
{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['subtype'] is defined -%} {%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['subtype'] is defined -%}
{%- set switch_subtype = DEVICE_METADATA['localhost']['subtype'] -%} {%- set switch_subtype = DEVICE_METADATA['localhost']['subtype'] -%}
{%- if 'dualtor' in switch_subtype.lower() %} {%- if 'dualtor' in switch_subtype.lower() %}
{%- set map_prio = 'sai_remap_prio_on_tnl_egress=1' -%} {%- set map_prio = 'sai_remap_prio_on_tnl_egress=1' -%}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- if SYSTEM_DEFAULTS is defined and 'tunnel_qos_remap' in SYSTEM_DEFAULTS and SYSTEM_DEFAULTS['tunnel_qos_remap']['status'] == 'enabled' -%}
{%- set pfcwd_sock = 'hybrid_pfc_deadlock_enable=1
pfc_deadlock_seq_control=1
sai_pfc_dlr_init_capability=1' -%}
{%- endif %}
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_premium_issu/b870.6.4.1/ sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_premium_issu/b870.6.4.1/
l3_alpm_hit_skip=1 l3_alpm_hit_skip=1
sai_adjust_acl_drop_in_rx_drop=1 sai_adjust_acl_drop_in_rx_drop=1
sai_verify_incoming_chksum=0 sai_verify_incoming_chksum=0
{{ map_prio }} {{ map_prio }}
{{ pfcwd_sock }}
host_as_route_disable=1 host_as_route_disable=1
use_all_splithorizon_groups=1 use_all_splithorizon_groups=1
riot_enable=1 riot_enable=1

View File

@ -1,16 +1,23 @@
{# Construct config.bcm to include additional soc properties per specific device metadata requirement #} {# Construct config.bcm to include additional soc properties per specific device metadata requirement #}
{%- set map_prio = '' -%} {%- set map_prio = '' -%}
{%- set pfcwd_sock = '' -%}
{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['subtype'] is defined -%} {%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['subtype'] is defined -%}
{%- set switch_subtype = DEVICE_METADATA['localhost']['subtype'] -%} {%- set switch_subtype = DEVICE_METADATA['localhost']['subtype'] -%}
{%- if 'dualtor' in switch_subtype.lower() %} {%- if 'dualtor' in switch_subtype.lower() %}
{%- set map_prio = 'sai_remap_prio_on_tnl_egress=1' -%} {%- set map_prio = 'sai_remap_prio_on_tnl_egress=1' -%}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- if SYSTEM_DEFAULTS is defined and 'tunnel_qos_remap' in SYSTEM_DEFAULTS and SYSTEM_DEFAULTS['tunnel_qos_remap']['status'] == 'enabled' -%}
{%- set pfcwd_sock = 'hybrid_pfc_deadlock_enable=1
pfc_deadlock_seq_control=1
sai_pfc_dlr_init_capability=1' -%}
{%- endif %}
sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_premium_issu/b870.6.4.1/ sai_load_hw_config=/etc/bcm/flex/bcm56870_a0_premium_issu/b870.6.4.1/
l3_alpm_hit_skip=1 l3_alpm_hit_skip=1
sai_adjust_acl_drop_in_rx_drop=1 sai_adjust_acl_drop_in_rx_drop=1
sai_verify_incoming_chksum=0 sai_verify_incoming_chksum=0
{{ map_prio }} {{ map_prio }}
{{ pfcwd_sock }}
host_as_route_disable=1 host_as_route_disable=1
use_all_splithorizon_groups=1 use_all_splithorizon_groups=1
riot_enable=1 riot_enable=1

View File

@ -2,6 +2,7 @@
{%- set mmu_sock = 'mmu_init_config="MSFT-TH2-Tier1"' -%} {%- set mmu_sock = 'mmu_init_config="MSFT-TH2-Tier1"' -%}
{%- set IPinIP_sock = '' -%} {%- set IPinIP_sock = '' -%}
{%- set map_prio = '' -%} {%- set map_prio = '' -%}
{%- set pfcwd_sock = '' -%}
{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined -%} {%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined -%}
{%- if DEVICE_METADATA['localhost']['type'] is defined -%} {%- if DEVICE_METADATA['localhost']['type'] is defined -%}
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%} {%- set switch_role = DEVICE_METADATA['localhost']['type'] -%}
@ -20,11 +21,17 @@
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- if SYSTEM_DEFAULTS is defined and 'tunnel_qos_remap' in SYSTEM_DEFAULTS and SYSTEM_DEFAULTS['tunnel_qos_remap']['status'] == 'enabled' -%}
{%- set pfcwd_sock = 'hybrid_pfc_deadlock_enable=1
pfc_deadlock_seq_control=1
sai_pfc_dlr_init_capability=1' -%}
{%- endif %}
{# The following is the common soc properties that used to be named "th2-a7260cx3-64-64x100G-t1.config.bcm" #} {# The following is the common soc properties that used to be named "th2-a7260cx3-64-64x100G-t1.config.bcm" #}
l3_alpm_hit_skip=1 l3_alpm_hit_skip=1
sai_adjust_acl_drop_in_rx_drop=1 sai_adjust_acl_drop_in_rx_drop=1
{{ map_prio }} {{ map_prio }}
{{ pfcwd_sock }}
PHY_AN_ALLOW_PLL_CHANGE=1 PHY_AN_ALLOW_PLL_CHANGE=1
arl_clean_timeout_usec=15000000 arl_clean_timeout_usec=15000000
asf_mem_profile=2 asf_mem_profile=2

View File

@ -1,6 +1,7 @@
{# Construct config.bcm to include additional soc properties per specific device metadata requirement #} {# Construct config.bcm to include additional soc properties per specific device metadata requirement #}
{%- set IPinIP_sock = '' -%} {%- set IPinIP_sock = '' -%}
{%- set map_prio = '' -%} {%- set map_prio = '' -%}
{%- set pfcwd_sock = '' -%}
{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['subtype'] is defined -%} {%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['subtype'] is defined -%}
{%- set switch_subtype = DEVICE_METADATA['localhost']['subtype'] -%} {%- set switch_subtype = DEVICE_METADATA['localhost']['subtype'] -%}
{%- if 'dualtor' in switch_subtype.lower() %} {%- if 'dualtor' in switch_subtype.lower() %}
@ -11,10 +12,16 @@
{%- set map_prio = 'sai_remap_prio_on_tnl_egress=1' -%} {%- set map_prio = 'sai_remap_prio_on_tnl_egress=1' -%}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- if SYSTEM_DEFAULTS is defined and 'tunnel_qos_remap' in SYSTEM_DEFAULTS and SYSTEM_DEFAULTS['tunnel_qos_remap']['status'] == 'enabled' -%}
{%- set pfcwd_sock = 'hybrid_pfc_deadlock_enable=1
pfc_deadlock_seq_control=1
sai_pfc_dlr_init_capability=1' -%}
{%- endif %}
{# The following is the common soc properties that used to be named "th2-a7260cx3-64-112x50G+8x100G.config.bcm" #} {# The following is the common soc properties that used to be named "th2-a7260cx3-64-112x50G+8x100G.config.bcm" #}
l3_alpm_hit_skip=1 l3_alpm_hit_skip=1
sai_adjust_acl_drop_in_rx_drop=1 sai_adjust_acl_drop_in_rx_drop=1
{{ map_prio }} {{ map_prio }}
{{ pfcwd_sock }}
PHY_AN_ALLOW_PLL_CHANGE=1 PHY_AN_ALLOW_PLL_CHANGE=1
arl_clean_timeout_usec=15000000 arl_clean_timeout_usec=15000000
asf_mem_profile=2 asf_mem_profile=2

View File

@ -1,6 +1,7 @@
{# Construct config.bcm to include additional soc properties per specific device metadata requirement #} {# Construct config.bcm to include additional soc properties per specific device metadata requirement #}
{%- set IPinIP_sock = '' -%} {%- set IPinIP_sock = '' -%}
{%- set map_prio = '' -%} {%- set map_prio = '' -%}
{%- set pfcwd_sock = '' -%}
{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['subtype'] is defined -%} {%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined and DEVICE_METADATA['localhost']['subtype'] is defined -%}
{%- set switch_subtype = DEVICE_METADATA['localhost']['subtype'] -%} {%- set switch_subtype = DEVICE_METADATA['localhost']['subtype'] -%}
{%- if 'dualtor' in switch_subtype.lower() %} {%- if 'dualtor' in switch_subtype.lower() %}
@ -11,10 +12,16 @@
{%- set map_prio = 'sai_remap_prio_on_tnl_egress=1' -%} {%- set map_prio = 'sai_remap_prio_on_tnl_egress=1' -%}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- if SYSTEM_DEFAULTS is defined and 'tunnel_qos_remap' in SYSTEM_DEFAULTS and SYSTEM_DEFAULTS['tunnel_qos_remap']['status'] == 'enabled' -%}
{%- set pfcwd_sock = 'hybrid_pfc_deadlock_enable=1
pfc_deadlock_seq_control=1
sai_pfc_dlr_init_capability=1' -%}
{%- endif %}
{# The following is the common soc properties that used to be named "th2-a7260cx3-64-112x50G+8x100G.config.bcm" #} {# The following is the common soc properties that used to be named "th2-a7260cx3-64-112x50G+8x100G.config.bcm" #}
l3_alpm_hit_skip=1 l3_alpm_hit_skip=1
sai_adjust_acl_drop_in_rx_drop=1 sai_adjust_acl_drop_in_rx_drop=1
{{ map_prio }} {{ map_prio }}
{{ pfcwd_sock }}
PHY_AN_ALLOW_PLL_CHANGE=1 PHY_AN_ALLOW_PLL_CHANGE=1
arl_clean_timeout_usec=15000000 arl_clean_timeout_usec=15000000
asf_mem_profile=2 asf_mem_profile=2

View File

@ -2,6 +2,7 @@
{%- set mmu_sock = 'mmu_init_config="MSFT-TH2-Tier1"' -%} {%- set mmu_sock = 'mmu_init_config="MSFT-TH2-Tier1"' -%}
{%- set IPinIP_sock = '' -%} {%- set IPinIP_sock = '' -%}
{%- set map_prio = '' -%} {%- set map_prio = '' -%}
{%- set pfcwd_sock = '' -%}
{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined -%} {%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined -%}
{%- if DEVICE_METADATA['localhost']['type'] is defined -%} {%- if DEVICE_METADATA['localhost']['type'] is defined -%}
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%} {%- set switch_role = DEVICE_METADATA['localhost']['type'] -%}
@ -20,10 +21,16 @@
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- if SYSTEM_DEFAULTS is defined and 'tunnel_qos_remap' in SYSTEM_DEFAULTS and SYSTEM_DEFAULTS['tunnel_qos_remap']['status'] == 'enabled' -%}
{%- set pfcwd_sock = 'hybrid_pfc_deadlock_enable=1
pfc_deadlock_seq_control=1
sai_pfc_dlr_init_capability=1' -%}
{%- endif %}
{# The following is the common soc properties that used to be named "th2-a7260cx3-64-64x40G.config.bcm" #} {# The following is the common soc properties that used to be named "th2-a7260cx3-64-64x40G.config.bcm" #}
l3_alpm_hit_skip=1 l3_alpm_hit_skip=1
sai_adjust_acl_drop_in_rx_drop=1 sai_adjust_acl_drop_in_rx_drop=1
{{ map_prio }} {{ map_prio }}
{{ pfcwd_sock }}
PHY_AN_ALLOW_PLL_CHANGE=1 PHY_AN_ALLOW_PLL_CHANGE=1
arl_clean_timeout_usec=15000000 arl_clean_timeout_usec=15000000
asf_mem_profile=2 asf_mem_profile=2

View File

@ -2,6 +2,7 @@
{%- set mmu_sock = 'mmu_init_config="MSFT-TH2-Tier1"' -%} {%- set mmu_sock = 'mmu_init_config="MSFT-TH2-Tier1"' -%}
{%- set IPinIP_sock = '' -%} {%- set IPinIP_sock = '' -%}
{%- set map_prio = '' -%} {%- set map_prio = '' -%}
{%- set pfcwd_sock = '' -%}
{%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined -%} {%- if DEVICE_METADATA is defined and DEVICE_METADATA['localhost'] is defined -%}
{%- if DEVICE_METADATA['localhost']['type'] is defined -%} {%- if DEVICE_METADATA['localhost']['type'] is defined -%}
{%- set switch_role = DEVICE_METADATA['localhost']['type'] -%} {%- set switch_role = DEVICE_METADATA['localhost']['type'] -%}
@ -20,9 +21,15 @@
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- endif %} {%- endif %}
{%- if SYSTEM_DEFAULTS is defined and 'tunnel_qos_remap' in SYSTEM_DEFAULTS and SYSTEM_DEFAULTS['tunnel_qos_remap']['status'] == 'enabled' -%}
{%- set pfcwd_sock = 'hybrid_pfc_deadlock_enable=1
pfc_deadlock_seq_control=1
sai_pfc_dlr_init_capability=1' -%}
{%- endif %}
{# The following is the common soc properties that used to be named "th2-a7260cx3-64-64x100G-t1.config.bcm" #} {# The following is the common soc properties that used to be named "th2-a7260cx3-64-64x100G-t1.config.bcm" #}
l3_alpm_hit_skip=1 l3_alpm_hit_skip=1
{{ map_prio }} {{ map_prio }}
{{ mmu_sock }} {{ mmu_sock }}
{{ IPinIP_sock }} {{ IPinIP_sock }}
{{ pfcwd_sock }}

View File

@ -6,3 +6,6 @@ sai_tunnel_support=1
sai_tunnel_underlay_route_mode=1 sai_tunnel_underlay_route_mode=1
host_as_route_disable=1 host_as_route_disable=1
l3_ecmp_levels=2 l3_ecmp_levels=2
hybrid_pfc_deadlock_enable=1
pfc_deadlock_seq_control=1
sai_pfc_dlr_init_capability=1

View File

@ -6,3 +6,6 @@ sai_tunnel_support=1
sai_tunnel_underlay_route_mode=1 sai_tunnel_underlay_route_mode=1
host_as_route_disable=1 host_as_route_disable=1
l3_ecmp_levels=2 l3_ecmp_levels=2
hybrid_pfc_deadlock_enable=1
pfc_deadlock_seq_control=1
sai_pfc_dlr_init_capability=1

View File

@ -3,3 +3,6 @@ l3_alpm_hit_skip=1
mmu_init_config="MSFT-TH2-Tier1" mmu_init_config="MSFT-TH2-Tier1"
hybrid_pfc_deadlock_enable=1
pfc_deadlock_seq_control=1
sai_pfc_dlr_init_capability=1