From 1295cfb0b930101adae9b28b383f85443261a059 Mon Sep 17 00:00:00 2001 From: Wenda Ni Date: Wed, 6 Mar 2019 20:50:03 +0000 Subject: [PATCH 1/2] Mellanox platform: Attach queues 2 and 6 to lossy profile for the tc to queue mapping update: 2 -> 2, 6 -> 6 Signed-off-by: Wenda Ni --- .../x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t0.j2 | 4 ++-- .../x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t1.j2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t0.j2 b/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t0.j2 index 018c2f96bc1b..0e58b20f2080 100644 --- a/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t0.j2 +++ b/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t0.j2 @@ -81,10 +81,10 @@ "{{ port_names }}|3-4": { "profile" : "[BUFFER_PROFILE|egress_lossless_profile]" }, - "{{ port_names }}|0-1": { + "{{ port_names }}|0-2": { "profile" : "[BUFFER_PROFILE|q_lossy_profile]" }, - "{{ port_names }}|5": { + "{{ port_names }}|5-6": { "profile" : "[BUFFER_PROFILE|q_lossy_profile]" } } diff --git a/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t1.j2 b/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t1.j2 index c315ccf59547..fe9f56b7489a 100644 --- a/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t1.j2 +++ b/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t1.j2 @@ -81,10 +81,10 @@ "{{ port_names }}|3-4": { "profile" : "[BUFFER_PROFILE|egress_lossless_profile]" }, - "{{ port_names }}|0-1": { + "{{ port_names }}|0-2": { "profile" : "[BUFFER_PROFILE|q_lossy_profile]" }, - "{{ port_names }}|5": { + "{{ port_names }}|5-6": { "profile" : "[BUFFER_PROFILE|q_lossy_profile]" } } From 784f7ee5195651f54b9d675ae92dded755652449 Mon Sep 17 00:00:00 2001 From: Wenda Ni Date: Tue, 26 Mar 2019 06:22:35 +0000 Subject: [PATCH 2/2] Remove customized queue buffers on Mellanox platforms Signed-off-by: Wenda Ni --- .../ACS-MSN2700/buffers_defaults_t0.j2 | 16 ---------------- .../ACS-MSN2700/buffers_defaults_t1.j2 | 16 ---------------- 2 files changed, 32 deletions(-) diff --git a/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t0.j2 b/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t0.j2 index 0e58b20f2080..e1745a14abe8 100644 --- a/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t0.j2 +++ b/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t0.j2 @@ -75,19 +75,3 @@ } } {%- endmacro %} - -{%- macro generate_queue_buffers(port_names) %} - "BUFFER_QUEUE": { - "{{ port_names }}|3-4": { - "profile" : "[BUFFER_PROFILE|egress_lossless_profile]" - }, - "{{ port_names }}|0-2": { - "profile" : "[BUFFER_PROFILE|q_lossy_profile]" - }, - "{{ port_names }}|5-6": { - "profile" : "[BUFFER_PROFILE|q_lossy_profile]" - } - } -{%- endmacro %} - - diff --git a/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t1.j2 b/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t1.j2 index fe9f56b7489a..1b2c3e487bef 100644 --- a/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t1.j2 +++ b/device/mellanox/x86_64-mlnx_msn2700-r0/ACS-MSN2700/buffers_defaults_t1.j2 @@ -75,19 +75,3 @@ } } {%- endmacro %} - -{%- macro generate_queue_buffers(port_names) %} - "BUFFER_QUEUE": { - "{{ port_names }}|3-4": { - "profile" : "[BUFFER_PROFILE|egress_lossless_profile]" - }, - "{{ port_names }}|0-2": { - "profile" : "[BUFFER_PROFILE|q_lossy_profile]" - }, - "{{ port_names }}|5-6": { - "profile" : "[BUFFER_PROFILE|q_lossy_profile]" - } - } -{%- endmacro %} - -