Skip to content

Commit 10ea9e7

Browse files
zhixzhumssonicbld
authored andcommitted
Cisco-8111: adjust reduced_pause_thr to hardware value (#14203)
* adjust reduced_pause_thr to hardware value Signed-off-by: Zhixin Zhu <[email protected]> * fix pre-commit check failure Signed-off-by: Zhixin Zhu <[email protected]> --------- Signed-off-by: Zhixin Zhu <[email protected]>
1 parent 12a2261 commit 10ea9e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/qos/files/cisco/qos_param_generator.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ def __init__(self, qos_params, duthost, dutAsic, topo, bufferConfig, portSpeedCa
7171
self.reduced_pause_thr = 3 * (1024 ** 2)
7272
else:
7373
self.reduced_pause_thr = 2.25 * (1024 ** 2)
74+
if dutAsic == "gr":
75+
self.reduced_pause_thr = self.gr_get_hw_thr_buffs(self.reduced_pause_thr
76+
// self.buffer_size) * self.buffer_size
7477
self.log("Max pause thr bytes: {}".format(max_pause))
7578
self.log("Attempted pause thr bytes: {}".format(attempted_pause))
7679
self.log("Pre-pad pause thr bytes: {}".format(pre_pad_pause))

0 commit comments

Comments
 (0)