Skip to content

Commit

Permalink
Cisco-8111: adjust reduced_pause_thr to hardware value (sonic-net#14203)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
zhixzhu authored Sep 18, 2024
1 parent 626e47a commit a680067
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/qos/files/cisco/qos_param_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a680067

Please sign in to comment.