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

Added XDP tx recipe #384

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Added XDP tx recipe #384

wants to merge 3 commits into from

Conversation

enhaut
Copy link
Member

@enhaut enhaut commented Oct 23, 2024

Description

  • exported parameters of XDPBench test tool to measurement
  • added XDP tx test
    The test measures how fast the CPU can read an incoming packet, swap MACs and send it back using the same NIC. It's basically hairpinning

Tests

Functional test ox xdp drop + xdp tx recipes in J:10038813

The format of xdp-bench tx is a bit different. The error
column also includes dropped packets:
```
Summary X rx/s Y err,drop/s
```

The drop mode drops the packets, so drops are not considered
as errors:
```
Summary X rx/s Y err/s
```
All the params that are passed to `xdp-bench` tool needs to be
able to use them within LNST.
`XDPBench._prepare_arguments` ignores empty parameters set to
empty string. Thats because not all of the params are applicable
to all XDP bench modes but we still need a way of providing them
to XDPBench so these are passed to XDPBench but set to empty str.

More elegant way would be splitting `XDPBench` into multiple
test modules based on mode it runs...
@enhaut enhaut changed the title Xdp tx Added XDP tx recipe Oct 23, 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