forked from sonic-net/sonic-mgmt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upstream arp/test_stress_arp.py changes to 202311 branch (sonic-net#1…
…4419) There are 3 issues with arp/test_stress_arp.py: It is doing a redundant subtraction. In both variants, it calculates space available as (available - used) instead of (total size - used), giving an incorrect value for available space. Not enough allowance/wiggle room for hash collision. In both variants, it expects only 100 hash collisions which is very little. For specific SKUs, there may be a further performance impact as some hash functions is not as performant for incremental values, which is what is used for this test. The test will crash if cleanup fails. Sometimes arp cache cleanup will fail if it is done too often. Allowing the test to continue after the failure as the failure is unrelated to the test and being unable to clean implies it is clean. This patch fixes these 3 issues by: - Removing the redundant subtraction. - Change hash collision allowance from 100 to 250. - Add a catch for failing clear_dut_arp_cache().
- Loading branch information
1 parent
f5568a5
commit 6657387
Showing
1 changed file
with
55 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters