test-pmd packet decoding enhancements
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v10 Latest8 patches 0 repliesNew
- v98 patches 0 repliesSuperseded
- v87 patches 0 repliesSuperseded
Earlier versions · 6
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v7 | 4 patches | 4 replies | Superseded | |
| v6 | 4 patches | 0 replies | Superseded | |
| v5 | 4 patches | 3 replies | Superseded | |
| v4 | 3 patches | 0 replies | Superseded | |
| v3 | 3 patches | 0 replies | Superseded | |
| v2 | 3 patches | 0 replies | Superseded |
Patches in v10 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | net: add more icmp typeslib/ | +9 | 0 replies | |
| 2/8 | net: add new packet dissectorlib/ lib/ lib/ +1 more | +483 | 0 replies | |
| 3/8 | mbuf: decode the hash and fdir info in rte_pktmbuf_dumplib/ | +14 | 0 replies | |
| 4/8 | test: add test for packet dissectorapp/ app/ | +303 | 0 replies | |
| 5/8 | test-pmd: add option to redirect packet logapp/ app/ app/ +3 more | +86 | 0 replies | |
| 6/8 | test-pmd: add hex decodeapp/ app/ app/ +3 more | +115 | 0 replies | |
| 7/8 | test-pmd: add packet dissect formatapp/ app/ app/ +2 more | +59 | 0 replies | |
| 8/8 | test-pmd: add a JSON packet outputapp/ app/ app/ +2 more | +178 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v10 yet.
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