Skip to content

Conversation

@vkjammala-arista
Copy link

@vkjammala-arista vkjammala-arista commented Sep 17, 2025

count_matched_packets method is getting stuck in a while loop as long as ptf port receives any packet (Ex: in certain testing topologies, protocol packets (like ICMP) on ptf port are causing count_matched_patches method to stuck waiting for packet poll to fail). Fix is to consider only expected packets w.r.t timeout (similar to existing count_matched_packets_all_ports logic).

See sonic-net/sonic-buildimage#21150 for more details on why this fix is needed.

Testing:
sonic-mgmt tests have been running with this change for quite some time and no issues were seen.

"count_matched_packets" method is getting stuck in a while loop as long
as ptf server port receives any packet (Ex: in dualtor case, we do see
continuous ICMP packets on ptf port). Fix is to consider only expected
packets w.r.t timeout (similar to "count_matched_packets_all_ports" logic).

Signed-off-by: Vinod <vkjammala@arista.com>
@pandurangan-arista
Copy link

I would also like to note that the same logic (added in this PR) is already present in count_matched_packets_all_ports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants