mbox series

[v10,0/8] test-pmd packet decoding enhancements

Message ID 20241028022131.142609-1-stephen@networkplumber.org (mailing list archive)
Headers
Series test-pmd packet decoding enhancements |

Message

Stephen Hemminger Oct. 28, 2024, 2:19 a.m. UTC
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