Skip to content

dumpcap and pcapng fixes

Stephen Hemminger dpdk-dev 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest5 patches 1 replyIn review
  2. v65 patches 0 repliesSuperseded
  3. v55 patches 2 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v45 patches1 replySuperseded
v35 patches10 repliesSuperseded
v24 patches0 repliesSuperseded
v14 patches7 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5pdump: fix setting rte_errno on mp errorlib/pdump/rte_pdump.c+3 -20 replies
2/5dumpcap: allow multiple invocationsapp/dumpcap/main.c+14 -140 replies
3/5pcapng: modify timestamp calculationapp/dumpcap/main.c app/test/test_pcapng.c lib/graph/graph_pcap.c +3 more+62 -1140 replies
4/5pcapng: avoid using alloca()lib/pcapng/rte_pcapng.c+16 -210 replies
5/5test: cleanups to pcapng testapp/test/meson.build app/test/test_pcapng.c+281 -1370 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchMorten Brørup
1/5A-b
2/5
3/5A-b
4/5A-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/5] dumpcap and pcapng fixes

It fixes issues related to timestamping. The design choices are to maximize performance in the primary process; and do all the time adjustment in the secondary (dumpcap) since the dumpcap needs to system calls anyway to write the result.

This patches set changes where the adjustment is calculated into the pcapng portion that opens the output file. All details of the format of timestamp are contained inside pcapng (data hiding).

v7 - no change, rebase there were some apply failures by CI v6 - make sure all steps compile
v5 - fix format of getpid in capture name
v4 - incorporate review feedback
v3 - don't use alloca() since can have VLA type issues

Stephen Hemminger (5):
pdump: fix setting rte_errno on mp error
dumpcap: allow multiple invocations
pcapng: modify timestamp calculation
pcapng: avoid using alloca()
test: cleanups to pcapng test

 app/dumpcap/main.c      |  53 ++---
 app/test/meson.build    |   2 +-
 app/test/test_pcapng.c  | 417 +++++++++++++++++++++++++++-------------
 lib/graph/graph_pcap.c  |   2 +-
 lib/pcapng/rte_pcapng.c | 156 ++++++---------
 lib/pcapng/rte_pcapng.h |  19 +-
 lib/pdump/rte_pdump.c   |   9 +-
 7 files changed, 373 insertions(+), 285 deletions(-)
Signature · 1 line
2.42.0