Skip to content

PCAP PMD improvements

Stephen Hemminger dpdk-dev 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest11 patches 0 repliesNew
  2. v411 patches 1 replySuperseded
  3. 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 filesSizeRepliesApplied
1/11doc: update features for PCAP PMDdoc/guides/nics/features/pcap.ini+7 -00 replies
2/11net/pcap: avoid using rte_malloc and rte_memcpydrivers/net/pcap/pcap_osdep_freebsd.c+4 -70 replies
3/11net/pcap: cleanup transmit of multi segmentdrivers/net/pcap/pcap_ethdev.c+57 -520 replies
4/11net/pcap: support setting MTUdoc/guides/nics/features/pcap.ini drivers/net/pcap/pcap_ethdev.c drivers/net/pcap/pcap_osdep.h +3 more+69 -00 replies
5/11net/pcap: use bool for flagsdrivers/net/pcap/pcap_ethdev.c+29 -380 replies
6/11net/pcap: support VLAN offloadsdoc/guides/nics/features/pcap.ini drivers/net/pcap/pcap_ethdev.c+31 -30 replies
7/11net/pcap: support nanosecond timestamp precisiondrivers/net/pcap/pcap_ethdev.c+106 -300 replies
8/11net/pcap: remove global variablesdrivers/net/pcap/pcap_ethdev.c+4 -20 replies
9/11net/pcap: avoid use of volatiledrivers/net/pcap/pcap_ethdev.c+9 -90 replies
10/11test: add test for pcap PMDapp/test/meson.build app/test/test_pmd_pcap.c+2265 -00 replies
11/11net/pcap: add release notedoc/guides/rel_notes/release_26_03.rst+7 -00 replies

Reviews trailers per patch

1 of 11 patches has a Reviewed-by or Acked-by.

PatchMarat Khalili
1/11
2/11
3/11
4/11
5/11
6/11
7/11
8/11A-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.

Read the v5 thread

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