Skip to content

Commit

Permalink
[Mellanox] update buffers and align QoS to add support for DSCP remap…
Browse files Browse the repository at this point in the history
…ping (for Dual-Tor on t1) for Mellanox-SN4700-O8C48

Signed-off-by: Andriy Yurkiv <ayurkiv@nvidia.com>
  • Loading branch information
ayurkiv-nvda committed Aug 22, 2024
1 parent fdc6fb6 commit e683ffe
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@
See the License for the specific language governing permissions and
limitations under the License.
#}

{% set default_cable = '5m' %}
{%- if ((SYSTEM_DEFAULTS is defined) and ('tunnel_qos_remap' in SYSTEM_DEFAULTS) and (SYSTEM_DEFAULTS['tunnel_qos_remap']['status'] == 'enabled')) -%}
{% set ingress_lossless_pool_size = '45088768' %}
{% set ingress_lossless_pool_xoff = '8298496' %}
{% set egress_lossless_pool_size = '60817392' %}
{% set egress_lossy_pool_size = '45088768' %}
{%- else -%}
{% set ingress_lossless_pool_size = '44433408' %}
{% set ingress_lossless_pool_xoff = '9576448' %}
{% set egress_lossless_pool_size = '60817392' %}
Expand All @@ -23,10 +30,18 @@
{{ defs.generate_buffer_pool_and_profiles_with_inactive_ports(port_names_inactive) }}
{%- endmacro %}

{%- macro generate_queue_buffers_with_extra_lossless_queues_with_inactive_ports(port_names_active, port_names_extra_queues, port_names_inactive) %}
{{ defs.generate_queue_buffers_with_extra_lossless_queues(port_names_active, port_names_extra_queues, port_names_inactive) }}
{%- endmacro %}

{%- macro generate_profile_lists_with_inactive_ports(port_names_active, port_names_inactive) %}
{{ defs.generate_profile_lists(port_names_active, port_names_inactive) }}
{%- endmacro %}

{%- macro generate_pg_profiles_with_extra_lossless_pgs_with_inactive_ports(port_names_active, port_names_extra_pgs, port_names_inactive) %}
{{ defs.generate_pg_profiles_with_extra_lossless_pgs(port_names_active, port_names_extra_pgs, port_names_inactive) }}
{%- endmacro %}

{%- macro generate_queue_buffers_with_inactive_ports(port_names_active, port_names_inactive) %}
{{ defs.generate_queue_buffers(port_names_active, port_names_inactive) }}
{%- endmacro %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,19 @@
See the License for the specific language governing permissions and
limitations under the License.
#}

{% set default_cable = '300m' %}
{%- if ((SYSTEM_DEFAULTS is defined) and ('tunnel_qos_remap' in SYSTEM_DEFAULTS) and (SYSTEM_DEFAULTS['tunnel_qos_remap']['status'] == 'enabled')) -%}
{% set ingress_lossless_pool_size = '39026688' %}
{% set ingress_lossless_pool_xoff = '13115392' %}
{% set egress_lossless_pool_size = '60817392' %}
{% set egress_lossy_pool_size = '39026688' %}
{%- else -%}
{% set ingress_lossless_pool_size = '44089344' %}
{% set ingress_lossless_pool_xoff = '9920512' %}
{% set egress_lossless_pool_size = '60817392' %}
{% set egress_lossy_pool_size = '44089344' %}
{%- endif -%}

{% import 'buffers_defaults_objects.j2' as defs with context %}

Expand All @@ -27,10 +35,18 @@
{{ defs.generate_profile_lists(port_names_active, port_names_inactive) }}
{%- endmacro %}

{%- macro generate_queue_buffers_with_extra_lossless_queues_with_inactive_ports(port_names_active, port_names_extra_queues, port_names_inactive) %}
{{ defs.generate_queue_buffers_with_extra_lossless_queues(port_names_active, port_names_extra_queues, port_names_inactive) }}
{%- endmacro %}

{%- macro generate_queue_buffers_with_inactive_ports(port_names_active, port_names_inactive) %}
{{ defs.generate_queue_buffers(port_names_active, port_names_inactive) }}
{%- endmacro %}

{%- macro generate_pg_profiles_with_extra_lossless_pgs_with_inactive_ports(port_names_active, port_names_extra_pgs, port_names_inactive) %}
{{ defs.generate_pg_profiles_with_extra_lossless_pgs(port_names_active, port_names_extra_pgs, port_names_inactive) }}
{%- endmacro %}

{%- macro generate_pg_profiles_with_inactive_ports(port_names_active, port_names_inactive) %}
{{ defs.generate_pg_profiles(port_names_active, port_names_inactive) }}
{%- endmacro %}

0 comments on commit e683ffe

Please sign in to comment.