From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 27CBD457FE; Fri, 23 Aug 2024 09:45:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A93FE43245; Fri, 23 Aug 2024 09:45:56 +0200 (CEST) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mails.dpdk.org (Postfix) with ESMTP id EFF2A42FEF for ; Fri, 23 Aug 2024 09:45:55 +0200 (CEST) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-42816ca797fso12780675e9.2 for ; Fri, 23 Aug 2024 00:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantheon.tech; s=google; t=1724399155; x=1725003955; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gf9av2HTxYD0px7hay0cMTCGh6WrrfhVqtWR8Y78xis=; b=k//5fpr3MA+W3O48YoUGM/IDk0cVPvKVLZo2ijhT4Jo/zEuX5hbvibv0M8YFTdEs1L 4QG+n5+qlFg8kSvRbxnAYhdrq3vH6LZBMZV4Z7zAQDSZ+856F79eowrG86Ow2f/44Txt C0oRQz6d1tJO1MZVXHxNqXSsnMwGHiBmjnsUwCfDfeGBJywia4yBSo4AXunSARB9ZxuO HL2w6UvlT+h0BkWHPOanPE6INZx7FA9RE4tmeCmhZH25S+Bkkny57kVCEgL7Meae/a2N 9ZqTtT2fDsYwjg/O9w31AHU+yK/3wE/uVtY/1F+9ptP7BD5EYNHxlpog+4zkHnbIImBw irdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724399155; x=1725003955; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gf9av2HTxYD0px7hay0cMTCGh6WrrfhVqtWR8Y78xis=; b=V5nh/p/otvlOlIeB6lS8OfwvNnqO2HKlJyAlp4NvWTuLe72Qt9cp2Hr+g8NgX8ob6c eg1uys6uNe++aaXiLrX8pxVm6dsa9NTi/MkUKvon+UlnMmPAdOQ1XRXA2NEYkJ68Zjsl SIwfNfj4p5Bw0ZG7yEcZWGTxzUuvveeTMAIRMt8tmvkmuuNcsHbTqhX1BekUOT7Otqfl yQ1lElo1dGNT0IVLtQMmjDDo6Y9ztvhFNOm9bchWSEN8Qwx7izVh/1BHPL7FXaf9Nt68 tcErpa4GigH4X7l+RMWVfUACLFzMuscwcR1zICgDk7EqJXmWQKvuM9IiERnytpJM7E70 pN7w== X-Gm-Message-State: AOJu0YyXOMIPYn58nAYo7NrESQbtxJXEk/rGAyCPfFJaLo3c9Y4s6vj2 7nNj3bb3nJPTHZeVAaDVmMHgjjzDigum7a4v1nYIzB1OLaWDmLkNjfubPBf1i/I= X-Google-Smtp-Source: AGHT+IEE8exTa6gWkQKROuKHt3kIElSwKVRCmOmWgSg+zedcpBuc/y3cZgI4Gjxh/o9fmetOdBi5aA== X-Received: by 2002:a05:600c:4715:b0:429:a3e:c785 with SMTP id 5b1f17b1804b1-42acc8e150bmr9381235e9.21.1724399155416; Fri, 23 Aug 2024 00:45:55 -0700 (PDT) Received: from localhost.localdomain ([84.245.121.107]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42abeffefcasm88328245e9.45.2024.08.23.00.45.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2024 00:45:55 -0700 (PDT) From: =?UTF-8?q?Juraj=20Linke=C5=A1?= To: thomas@monjalon.net, Honnappa.Nagarahalli@arm.com, paul.szczepanek@arm.com, Luca.Vizzarro@arm.com, alex.chapman@arm.com, probb@iol.unh.edu, jspewock@iol.unh.edu, npratte@iol.unh.edu, dmarx@iol.unh.edu Cc: dev@dpdk.org, =?UTF-8?q?Juraj=20Linke=C5=A1?= Subject: [PATCH v1] dts: fix testpmd port device error handling mode Date: Fri, 23 Aug 2024 09:45:53 +0200 Message-Id: <20240823074553.15815-1-juraj.linkes@pantheon.tech> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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š --- 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( -- 2.34.1