From a68006770e6b8b2afd5db85998060abc314b796d Mon Sep 17 00:00:00 2001 From: Zhixin Zhu <44230426+zhixzhu@users.noreply.github.com> Date: Wed, 18 Sep 2024 14:57:02 +0800 Subject: [PATCH] Cisco-8111: adjust reduced_pause_thr to hardware value (#14203) * adjust reduced_pause_thr to hardware value Signed-off-by: Zhixin Zhu * fix pre-commit check failure Signed-off-by: Zhixin Zhu --------- Signed-off-by: Zhixin Zhu --- tests/qos/files/cisco/qos_param_generator.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/qos/files/cisco/qos_param_generator.py b/tests/qos/files/cisco/qos_param_generator.py index 8cc2a819d90..c1e2e05a3b9 100644 --- a/tests/qos/files/cisco/qos_param_generator.py +++ b/tests/qos/files/cisco/qos_param_generator.py @@ -72,6 +72,9 @@ def __init__(self, qos_params, duthost, dutAsic, topo, bufferConfig, portSpeedCa self.reduced_pause_thr = 3 * (1024 ** 2) else: self.reduced_pause_thr = 2.25 * (1024 ** 2) + if dutAsic == "gr": + self.reduced_pause_thr = self.gr_get_hw_thr_buffs(self.reduced_pause_thr + // self.buffer_size) * self.buffer_size self.log("Max pause thr bytes: {}".format(max_pause)) self.log("Attempted pause thr bytes: {}".format(attempted_pause)) self.log("Pre-pad pause thr bytes: {}".format(pre_pad_pause))