Skip to content

Commit

Permalink
Fix test issue of the qos for the SPC4 (sonic-net#14412)
Browse files Browse the repository at this point in the history
The headroom_overhead and extra_margin was only aligned for 400G only applicable for the SPC3, for SPC4, need to do additional alignment.
  • Loading branch information
nhe-NV authored Oct 23, 2024
1 parent 89802aa commit 7a5859a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/qos/files/mellanox/qos_param_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(self, qos_params, asic_type, speed_cable_len, dutConfig, ingressLos
self.asic_type = asic_type
self.cell_size = self.asic_param_dic[asic_type]['cell_size']
self.headroom_overhead = self.asic_param_dic[asic_type]['headroom_overhead']
if speed_cable_len[0:6] == '400000':
if self.asic_type == "spc3" and speed_cable_len[0:6] == '400000':
self.headroom_overhead += 59
# for 400G ports we need an extra margin in case it is filled unbalancely between two buffer units
self.extra_margin = 16
Expand Down

0 comments on commit 7a5859a

Please sign in to comment.