Re: [PATCH 5/5] dts: add `show port stats` command to TestPmdShell

2024-04-30 Thread Luca Vizzarro
On 29/04/2024 16:54, Jeremy Spewock wrote: On Fri, Apr 12, 2024 at 7:11 AM Luca Vizzarro wrote: +output = self.send_command(f"show port stats {port_id}") Does this also need to skip the first line in the output? Yep, well spotted!

Re: [PATCH 5/5] dts: add `show port stats` command to TestPmdShell

2024-04-29 Thread Jeremy Spewock
On Fri, Apr 12, 2024 at 7:11 AM Luca Vizzarro wrote: > +def show_port_stats(self, port_id: int) -> TestPmdPortStats: > +"""Returns the given port statistics. > + > +Args: > +port_id: The port ID to gather information for. > + > +Raises: > +Inter

Re: [PATCH 5/5] dts: add `show port stats` command to TestPmdShell

2024-04-16 Thread Juraj Linkeš
On Fri, Apr 12, 2024 at 1:11 PM Luca Vizzarro wrote: > > Add a new TestPmdPortStats data structure to represent the output > returned by `show port stats`, which is implemented as part of > TestPmdShell. > > Bugzilla ID: 1407 > > Signed-off-by: Luca Vizzarro > Reviewed-by: Paul Szczepanek Acked

[PATCH 5/5] dts: add `show port stats` command to TestPmdShell

2024-04-12 Thread Luca Vizzarro
Add a new TestPmdPortStats data structure to represent the output returned by `show port stats`, which is implemented as part of TestPmdShell. Bugzilla ID: 1407 Signed-off-by: Luca Vizzarro Reviewed-by: Paul Szczepanek --- dts/framework/remote_session/testpmd_shell.py | 58 +++