[v1] dts: fix testpmd port device error handling mode
Checks
Commit Message
Make device_error_handling_mode of testpmd port optional as it may not
be present, e.g. in VM ports.
Fixes: 61d5bc9bf974 ("dts: add port info command to testpmd shell")
Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
---
dts/framework/remote_session/testpmd_shell.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
Reviewed-by: Luca Vizzarro <luca.vizzarro@arm.com>
Reviewed-by: Jeremy Spewock <jspewock@iol.unh.edu>
Applied to next-dts, thanks.
On 23. 8. 2024 9:45, Juraj Linkeš wrote:
> Make device_error_handling_mode of testpmd port optional as it may not
> be present, e.g. in VM ports.
>
> Fixes: 61d5bc9bf974 ("dts: add port info command to testpmd shell")
>
> Signed-off-by: Juraj Linkeš <juraj.linkes@pantheon.tech>
> ---
> dts/framework/remote_session/testpmd_shell.py | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/dts/framework/remote_session/testpmd_shell.py b/dts/framework/remote_session/testpmd_shell.py
> index 43e9f56517..c3df44e7ab 100644
> --- a/dts/framework/remote_session/testpmd_shell.py
> +++ b/dts/framework/remote_session/testpmd_shell.py
> @@ -464,8 +464,8 @@ class TestPmdPort(TextParser):
> metadata=DeviceCapabilitiesFlag.make_parser(),
> )
> #:
> - device_error_handling_mode: DeviceErrorHandlingMode = field(
> - metadata=DeviceErrorHandlingMode.make_parser()
> + device_error_handling_mode: DeviceErrorHandlingMode | None = field(
> + default=None, metadata=DeviceErrorHandlingMode.make_parser()
> )
> #:
> device_private_info: str | None = field(
@@ -464,8 +464,8 @@ class TestPmdPort(TextParser):
metadata=DeviceCapabilitiesFlag.make_parser(),
)
#:
- device_error_handling_mode: DeviceErrorHandlingMode = field(
- metadata=DeviceErrorHandlingMode.make_parser()
+ device_error_handling_mode: DeviceErrorHandlingMode | None = field(
+ default=None, metadata=DeviceErrorHandlingMode.make_parser()
)
#:
device_private_info: str | None = field(