Re: [PATCH v5 1/1] dts: add text parser for testpmd verbose output

2024-09-23 Thread Juraj Linkeš
The question is when the exception would be raised, or, in other words, what should we do when hasattr(cls, name) is False. If I understand this correctly, is it's False, then name is not among the flags and that means testpmd returned an unsupported flag, which shouldn't happen, but if it doe

Re: [PATCH v5 1/1] dts: add text parser for testpmd verbose output

2024-09-20 Thread Jeremy Spewock
On Thu, Sep 19, 2024 at 8:35 AM Juraj Linkeš wrote: > > > diff --git a/dts/framework/remote_session/testpmd_shell.py > > b/dts/framework/remote_session/testpmd_shell.py > > > @@ -577,6 +577,497 @@ class TestPmdPortStats(TextParser): > > tx_bps: int = field(metadata=TextParser.find_int(r"Tx-

Re: [PATCH v5 1/1] dts: add text parser for testpmd verbose output

2024-09-20 Thread Jeremy Spewock
On Thu, Sep 19, 2024 at 5:02 AM Juraj Linkeš wrote: > > > diff --git a/dts/framework/remote_session/testpmd_shell.py > > b/dts/framework/remote_session/testpmd_shell.py > > > @@ -577,6 +577,497 @@ class TestPmdPortStats(TextParser): > > tx_bps: int = field(metadata=TextParser.find_int(r"Tx-

Re: [PATCH v5 1/1] dts: add text parser for testpmd verbose output

2024-09-19 Thread Juraj Linkeš
diff --git a/dts/framework/remote_session/testpmd_shell.py b/dts/framework/remote_session/testpmd_shell.py @@ -577,6 +577,497 @@ class TestPmdPortStats(TextParser): tx_bps: int = field(metadata=TextParser.find_int(r"Tx-bps:\s+(\d+)")) +class PacketOffloadFlag(Flag): +"""Flag r

Re: [PATCH v5 1/1] dts: add text parser for testpmd verbose output

2024-09-19 Thread Juraj Linkeš
diff --git a/dts/framework/remote_session/testpmd_shell.py b/dts/framework/remote_session/testpmd_shell.py @@ -577,6 +577,497 @@ class TestPmdPortStats(TextParser): tx_bps: int = field(metadata=TextParser.find_int(r"Tx-bps:\s+(\d+)")) +class PacketOffloadFlag(Flag): +"""Flag r