Skip to content

test-pmd packet decoding enhancements

Stephen Hemminger dpdk-dev 9 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest8 patches 0 repliesNew
  2. v98 patches 0 repliesSuperseded
  3. v87 patches 0 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v74 patches4 repliesSuperseded
v64 patches0 repliesSuperseded
v54 patches3 repliesSuperseded
v43 patches0 repliesSuperseded
v33 patches0 repliesSuperseded
v23 patches0 repliesSuperseded

Patches in v10 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8net: add more icmp typeslib/net/rte_icmp.h+9 -00 replies
2/8net: add new packet dissectorlib/net/meson.build lib/net/rte_dissect.c lib/net/rte_dissect.h +1 more+483 -00 replies
3/8mbuf: decode the hash and fdir info in rte_pktmbuf_dumplib/mbuf/rte_mbuf.c+14 -00 replies
4/8test: add test for packet dissectorapp/test/meson.build app/test/test_dissect.c+303 -00 replies
5/8test-pmd: add option to redirect packet logapp/test-pmd/cmdline.c app/test-pmd/config.c app/test-pmd/testpmd.c +3 more+86 -20 replies
6/8test-pmd: add hex decodeapp/test-pmd/cmdline.c app/test-pmd/config.c app/test-pmd/testpmd.c +3 more+115 -110 replies
7/8test-pmd: add packet dissect formatapp/test-pmd/cmdline.c app/test-pmd/config.c app/test-pmd/testpmd.h +2 more+59 -100 replies
8/8test-pmd: add a JSON packet outputapp/test-pmd/cmdline.c app/test-pmd/config.c app/test-pmd/testpmd.h +2 more+178 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v10 yet.

Read the v10 thread

Cover letter [PATCH v10 0/8] test-pmd packet decoding enhancements

While debugging TAP rte_flow discovered that test pmd verbose output was confusing and unhelpful. Instead, made a simple dissector that prints one line per packet like this in test-pmd.

Also supports hex and JSON mode when more detail is needed.

The new commands are:
testpmd> set output /tmp/packet.log
testpmd> set format dissect

To enable packet logging need to use:
testpmd> set verbose 3

v10 - rebase based on changes to lib/net and cmdline

Stephen Hemminger (8):
net: add more icmp types
net: add new packet dissector
mbuf: decode the hash and fdir info in rte_pktmbuf_dump
test: add test for packet dissector
test-pmd: add option to redirect packet log
test-pmd: add hex decode
test-pmd: add packet dissect format
test-pmd: add a JSON packet output

 app/test-pmd/cmdline.c                      |  81 ++++
 app/test-pmd/config.c                       |  48 +++
 app/test-pmd/testpmd.c                      |   4 +
 app/test-pmd/testpmd.h                      |  12 +
 app/test-pmd/util.c                         | 256 +++++++++++-
 app/test/meson.build                        |   1 +
 app/test/test_dissect.c                     | 302 ++++++++++++++
 doc/guides/testpmd_app_ug/testpmd_funcs.rst |  22 +
 lib/mbuf/rte_mbuf.c                         |  14 +
 lib/net/meson.build                         |   2 +
 lib/net/rte_dissect.c                       | 429 ++++++++++++++++++++
 lib/net/rte_dissect.h                       |  45 ++
 lib/net/rte_icmp.h                          |   9 +
 lib/net/version.map                         |   7 +
 14 files changed, 1225 insertions(+), 7 deletions(-)
 create mode 100644 app/test/test_dissect.c
 create mode 100644 lib/net/rte_dissect.c
 create mode 100644 lib/net/rte_dissect.h
Signature · 1 line
2.45.2