Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cisco-8000 Revise TX XOFF counter check #15400

Merged
merged 1 commit into from
Nov 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -3494,16 +3494,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
Loading