Skip to content

Commit

Permalink
Revise after XON counter change. (#15400)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbpittman authored and mssonicbld committed Nov 9, 2024
1 parent 63d9649 commit 0baed98
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tests/saitests/py3/sai_qos_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -3478,16 +3478,7 @@ def get_pfc_tx_cnt(src_port_id, pg_cntr_idx):
pfc_tx_cnt_base = get_pfc_tx_cnt(src_port_id, pg_cntr_idx)
time.sleep(2)
xoff_txd = get_pfc_tx_cnt(src_port_id, pg_cntr_idx) - pfc_tx_cnt_base
print("Verifying XOFF TX, count {}".format(xoff_txd), file=sys.stderr)
assert xoff_txd != 0, "Expected XOFF"

# TODO: Revisit when TX counter in this case is correctly handled
send_packet(self, src_port_id, pkt, 1)
time.sleep(2)
pfc_tx_cnt_base = get_pfc_tx_cnt(src_port_id, pg_cntr_idx)
time.sleep(2)
xoff_txd = get_pfc_tx_cnt(src_port_id, pg_cntr_idx) - pfc_tx_cnt_base
print("Verifying XOFF TX stopped, count {}".format(xoff_txd), file=sys.stderr)
print("Verifying no XOFF TX, count {}".format(xoff_txd), file=sys.stderr)
assert xoff_txd == 0, "Unexpected XOFF"

finally:
Expand Down

0 comments on commit 0baed98

Please sign in to comment.