-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
validation: pktio: separate and reduce packet and rx counts
Replace the magic number 1000 used for test packet counts and rx attempt counts with two macros. Lower the test packet count to 100 since the used pool configuration did not allow allocating more than 128 packets anyway. Make the rx attempt count twice the test packet count to leave room for a few possible non-test packets and to allow almost 100 ms for the first sent test packet to come back. The previous code had a higher rx attempt count than the test packet count but that was apparently accidental due to the pool config limiting the test packet count. The 1000 used for the rx attempt count was higher than necessary and slowed down the test slightly. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
- Loading branch information
1 parent
8d6871a
commit 77b456b
Showing
1 changed file
with
22 additions
and
20 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