[PATCH v2 1/4] dts: add layer 4 port field to verbose parser
Dean Marx
dmarx at iol.unh.edu
Thu May 15 20:33:24 CEST 2025
Add a field to the TestPmdVerbosePacket text parser
that stores destination port values for TCP/UDP packets.
Signed-off-by: Dean Marx <dmarx at iol.unh.edu>
Reviewed-by: Luca Vizzarro <luca.vizzarro at arm.com>
Reviewed-by: Nicholas Pratte <npratte at iol.unh.edu>
---
dts/framework/remote_session/testpmd_shell.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dts/framework/remote_session/testpmd_shell.py b/dts/framework/remote_session/testpmd_shell.py
index bd5f2659bd..e48b2c8ed5 100644
--- a/dts/framework/remote_session/testpmd_shell.py
+++ b/dts/framework/remote_session/testpmd_shell.py
@@ -1271,6 +1271,11 @@ class TestPmdVerbosePacket(TextParser):
l3_len: int | None = field(default=None, metadata=TextParser.find_int(r"l3_len=(\d+)"))
#:
l4_len: int | None = field(default=None, metadata=TextParser.find_int(r"l4_len=(\d+)"))
+ #:
+ l4_dport: int | None = field(
+ default=None,
+ metadata=TextParser.find_int(r"Destination (?:TCP|UDP) port=(\d+)"),
+ )
class RxOffloadCapability(Flag):
--
2.49.0
More information about the dev
mailing list