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

[PATCH v1] validation: pktio: separate and reduce packet and rx counts #2140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JannePeltonen
Copy link
Collaborator

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.

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>
@odpbuild odpbuild changed the title validation: pktio: separate and reduce packet and rx counts [PATCH v1] validation: pktio: separate and reduce packet and rx counts Nov 4, 2024
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.

1 participant