Skip to content

Commit

Permalink
fix 6100 testQosSaiLossyQueue failure caused by leakout (sonic-net#11365
Browse files Browse the repository at this point in the history
)
  • Loading branch information
XuChen-MSFT authored Jan 25, 2024
1 parent 0b3225e commit 0a80ab0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/saitests/py3/sai_qos_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3680,9 +3680,16 @@ def runTest(self):
send_packet(self, src_port_id, pkt, pkts_num_egr_mem +
pkts_num_leak_out + pkts_num_trig_egr_drp - 1 - margin)
else:
if check_leackout_compensation_support(asic_type, hwsku):
pkts_num_leak_out = 0
# send packets short of triggering egress drop
send_packet(self, src_port_id, pkt, pkts_num_leak_out +
pkts_num_trig_egr_drp - 1 - margin)
if check_leackout_compensation_support(asic_type, hwsku):
time.sleep(5)
dynamically_compensate_leakout(self.dst_client, asic_type, sai_thrift_read_port_counters,
port_list['dst'][dst_port_id], TRANSMITTED_PKTS,
xmit_counters_base, self, src_port_id, pkt, 10)

if hwsku == 'Arista-7050CX3-32S-D48C8' or hwsku == 'Arista-7050CX3-32S-C32' or \
hwsku == 'DellEMC-Z9332f-O32' or hwsku == 'DellEMC-Z9332f-M-O16C64':
Expand Down

0 comments on commit 0a80ab0

Please sign in to comment.