[PATCH v6 0/3] dts: add tx_offload support in dts
Andrew Bailey
abailey at iol.unh.edu
Mon Sep 29 19:27:31 CEST 2025
This patchset introduces the support for Tx offload configuration
through DTS, allowing test cases to be written utilizing Tx offload
capabilities. Along with configuring these capabilities, they are also
added to the NIC capabilities class, in which they can be required by
test suites. Finally, a test suite was created using the aforementioned
changes to update the Rx\Tx offload test suite in legacy DTS.
---
v2:
* Removed mentions of mbuf_fast_free being configured for Rx queues/ports
as this is not accurate behaviour.
* Clarify argument descriptions in docstrings.
v3:
* Added seperation between port and queue capabilites as it is relevant
to the added test case that queues support mbuf fast free
configuration.
* Homogenized methods for getting Rx and Tx offload capabilities and
configurations
* Moved to use the text parser to gather the configuration, rather than
returning the raw string output.
* Updated test suites to use the new ports/queues offload flags in the
requires decorator
* Updated mbuf fast free test suite to test ports and queues
individually. Along with updating the way it confirms the
configuration to be consistent with the new process of getting the
configuration.
* Moved the get configuration method to the get nic capability patch as
it is more relevant to that patches context.
v4:
* Cleaned up some typing issues in testpmd, and moved where prefixes
are passed to the capability flags.
* Added documentation page for test suite.
* Removed use of optional in the added test suite.
v5:
* Moved configuration and capability handling to proper files in the
api directory.
* Updated Tx capability flags to adhere to the new way of handling them.
* Test suites no longer need to worry about using the flag prefixes when
analyzing offload configurations, but will still need to for required
capabilities.
Andrew Bailey (3):
dts: allow mbuf_fast_free to be set with testpmd shell
dts: add TX offload capabilities to NIC capabilities
dts: update tx_offload test from old dts
doc/api/dts/tests.TestSuite_rx_tx_offload.rst | 8 +
dts/api/capabilities.py | 126 ++++++++--
dts/api/testpmd/__init__.py | 157 +++++++++++-
dts/api/testpmd/types.py | 227 +++++++++++++-----
dts/framework/parser.py | 30 +++
dts/framework/testbed_model/capability.py | 109 +++++++--
dts/tests/TestSuite_checksum_offload.py | 10 +-
dts/tests/TestSuite_pmd_buffer_scatter.py | 4 +-
dts/tests/TestSuite_rx_tx_offload.py | 126 ++++++++++
dts/tests/TestSuite_vlan.py | 4 +-
10 files changed, 683 insertions(+), 118 deletions(-)
create mode 100644 doc/api/dts/tests.TestSuite_rx_tx_offload.rst
create mode 100644 dts/tests/TestSuite_rx_tx_offload.py
--
2.50.1
More information about the dev
mailing list