PCAP PMD improvements
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest11 patches 0 repliesNew
- v411 patches 1 replySuperseded
- v39 patches 0 repliesSuperseded
Changes from the cover letter
- Update feature matrix to reflect actual capabilities
- Replace unnecessary rte_malloc/rte_memcpy with standard libc
- Fix multi-segment transmit handling (was using 9KB stack buffer)
- Add MTU setting support for single interface mode
- Convert integer flags to bool for type safety
- Add VLAN strip (RX) and insert (TX) offload support
- Support nanosecond timestamp precision
- Localize global variables where possible
- Remove unnecessary volatile from statistics
- Add comprehensive unit test suite (18 test cases)
- Add release notes
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | doc: update features for PCAP PMDdoc/ | +7 | 0 replies | |
| 2/11 | net/pcap: avoid using rte_malloc and rte_memcpydrivers/ | +4 | 0 replies | |
| 3/11 | net/pcap: cleanup transmit of multi segmentdrivers/ | +57 | 0 replies | |
| 4/11 | net/pcap: support setting MTUdoc/ drivers/ drivers/ +3 more | +69 | 0 replies | |
| 5/11 | net/pcap: use bool for flagsdrivers/ | +29 | 0 replies | |
| 6/11 | net/pcap: support VLAN offloadsdoc/ drivers/ | +31 | 0 replies | |
| 7/11 | net/pcap: support nanosecond timestamp precisiondrivers/ | +106 | 0 replies | |
| 8/11 | net/pcap: remove global variablesdrivers/ | +4 | 0 replies | |
| 9/11 | net/pcap: avoid use of volatiledrivers/ | +9 | 0 replies | |
| 10/11 | test: add test for pcap PMDapp/ app/ | +2265 | 0 replies | |
| 11/11 | net/pcap: add release notedoc/ | +7 | 0 replies |
Reviews trailers per patch
1 of 11 patches has a Reviewed-by or Acked-by.
| Patch | Marat Khalili |
|---|---|
| 1/11 | |
| 2/11 | |
| 3/11 | |
| 4/11 | |
| 5/11 | |
| 6/11 | |
| 7/11 | |
| 8/11 | A-b |
| 9/11 | |
| 10/11 | |
| 11/11 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 00/11] PCAP PMD improvements
This series improves the PCAP PMD with new features, better code quality, and a comprehensive test suite.
Changes:
- Update feature matrix to reflect actual capabilities
- Replace unnecessary rte_malloc/rte_memcpy with standard libc
- Fix multi-segment transmit handling (was using 9KB stack buffer)
- Add MTU setting support for single interface mode
- Convert integer flags to bool for type safety
- Add VLAN strip (RX) and insert (TX) offload support
- Support nanosecond timestamp precision
- Localize global variables where possible
- Remove unnecessary volatile from statistics
- Add comprehensive unit test suite (18 test cases)
- Add release notes
The VLAN and timestamp offloads follow the same patterns used by virtio and af_packet PMDs.
The test suite covers basic TX/RX, varied packet sizes, jumbo frames, infinite RX mode, statistics, MTU configuration, timestamps, multi-queue operation, and VLAN offloads.
v5 - fix typo in features table
- resolve minor checkpatch complaint
Stephen Hemminger (11):
doc: update features for PCAP PMD net/pcap: avoid using rte_malloc and rte_memcpy net/pcap: cleanup transmit of multi segment net/pcap: support setting MTU
net/pcap: use bool for flags
net/pcap: support VLAN offloads net/pcap: support nanosecond timestamp precision net/pcap: remove global variables net/pcap: avoid use of volatile
test: add test for pcap PMD
net/pcap: add release note
app/test/meson.build | 2 + app/test/test_pmd_pcap.c | 2263 ++++++++++++++++++++++++ doc/guides/nics/features/pcap.ini | 9 + doc/guides/rel_notes/release_26_03.rst | 7 + drivers/net/pcap/pcap_ethdev.c | 375 ++-- drivers/net/pcap/pcap_osdep.h | 1 + drivers/net/pcap/pcap_osdep_freebsd.c | 37 +- drivers/net/pcap/pcap_osdep_linux.c | 21 + drivers/net/pcap/pcap_osdep_windows.c | 6 + 9 files changed, 2584 insertions(+), 137 deletions(-) create mode 100644 app/test/test_pmd_pcap.c
Signature · 1 line
2.51.0