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

Skip RX_DRP check on Mellanox platform in test_drop_l3_ip_packet_non_dut_mac #15248

Merged
merged 1 commit into from
Nov 13, 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
7 changes: 5 additions & 2 deletions tests/ip/test_ip_packet.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,11 @@ def test_drop_l3_ip_packet_non_dut_mac(self, duthosts, enum_rand_one_per_hwsku_f
return
pytest_assert(rx_ok >= self.PKT_NUM_MIN,
"Received {} packets in rx, not in expected range".format(rx_ok))
pytest_assert(rx_drp >= self.PKT_NUM_MIN,
"Dropped {} packets in rx, not in expected range".format(rx_drp))
asic_type = duthost.facts["asic_type"]
# Packet is dropped silently on Mellanox platform if the destination MAC address is not the router MAC
if asic_type not in ["mellanox"]:
pytest_assert(rx_drp >= self.PKT_NUM_MIN,
"Dropped {} packets in rx, not in expected range".format(rx_drp))
pytest_assert(tx_ok <= self.PKT_NUM_ZERO,
"Forwarded {} packets in tx, not in expected range".format(tx_ok))
pytest_assert(max(tx_drp, tx_rif_err) <= self.PKT_NUM_ZERO,
Expand Down
Loading