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 D95AF43883; Wed, 10 Jan 2024 14:18:18 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6B1A340269; Wed, 10 Jan 2024 14:18:18 +0100 (CET) Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) by mails.dpdk.org (Postfix) with ESMTP id 47AB94025E for ; Wed, 10 Jan 2024 14:18:17 +0100 (CET) Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-a28bd9ca247so449208266b.1 for ; Wed, 10 Jan 2024 05:18:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pantheon.tech; s=google; t=1704892697; x=1705497497; darn=dpdk.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=XMNqrcnhcRMkXl6UmG18LtZWdsNGMPCc/d372a2rgAE=; b=We3z9XBwJXbhs/FOFIygEHEVy1N1QsjHRzLAxQ7OB15Tt+KJGVfTpGvz5vu5PCQaS8 S3rw/O/pmDfid6dGpdkaztge23Tx73gyA5y0V8uKW2tH3EXUnHjbbUP+BxxGO6AZ/jud PNp47Xo19pMw6UOVrIqLyTUVtnpFdRAXouq2ANOdac0rBKJze15+0G7I0Ac7i7s9xLV4 Wl7orNUXutLrSAT+LBq8wUUVP+OzdxJba11aGHC6FJaRFrYlS2kLqcwFH8yuiJbeFizW qWGBtn356bhI20+VeQlcCM/y+Nao+3pdkzvWJRS6a/GX8r683GE53GLLzX6h+JN66vQ5 sWiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704892697; x=1705497497; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=XMNqrcnhcRMkXl6UmG18LtZWdsNGMPCc/d372a2rgAE=; b=PoOcpR6/Q7z5N14B4zZb1X37Cs6tL4tQaz9ZZ3jdf65Ggoci3CliS5J5Ezb1WQvD8+ cdjkoW8ddwbNA6EsvLJnqTqcphDWt5YNcu7wMHzH3FbeWkW4ACd/bCyzoOrieHHsCFaB y6NY9Q4OpMBrqFvx2SbT10BahJ5xCuUf0RtYAYsTrf2HQk6sbJH8fux+wq7GmNHZkbTf zj5cQP91IJHVUN3bnfQIbdQ7tBSVO4SPoFx5OGHyQqP0f58wHlSJZ1WJUhk4tb7m/Xh/ SH5nFL52qM/5ZlhGOpAgO5868lafL0d23Tcmh4ra1f7u64l7oI2pATCKVDquzCO6TOWo Fd1w== X-Gm-Message-State: AOJu0Yxj1/RtTGhiphmzOxBa+T7Ie7C6U0SNyVMbO1eBQALOhTi5TUn+ wuyQYMzuSMBaiVb1S2wEOo4k8/NCw7bJ8oiJkcIfTgNBZeazkA== X-Google-Smtp-Source: AGHT+IGncmjVZBre+/4TfNRhVuNi1xNhiPG7OzYyuKCTGXjEUCtwx0VnWDNwYGCqSw6ETxImm+RWUej6hrqi6P7CzXc= X-Received: by 2002:a17:906:2b84:b0:a28:b9a7:c787 with SMTP id m4-20020a1709062b8400b00a28b9a7c787mr563194ejg.54.1704892696984; Wed, 10 Jan 2024 05:18:16 -0800 (PST) MIME-Version: 1.0 References: <20240103223206.23129-1-jspewock@iol.unh.edu> <20240109153633.766-1-jspewock@iol.unh.edu> <20240109153633.766-2-jspewock@iol.unh.edu> In-Reply-To: <20240109153633.766-2-jspewock@iol.unh.edu> From: =?UTF-8?Q?Juraj_Linke=C5=A1?= Date: Wed, 10 Jan 2024 14:18:06 +0100 Message-ID: Subject: Re: [PATCH v7 1/7] dts: add startup verification and forwarding modes to testpmd shell To: jspewock@iol.unh.edu Cc: Honnappa.Nagarahalli@arm.com, thomas@monjalon.net, wathsala.vithanage@arm.com, probb@iol.unh.edu, paul.szczepanek@arm.com, yoan.picchi@foss.arm.com, lylavoie@iol.unh.edu, ferruh.yigit@amd.com, andrew.rybchenko@oktetlabs.ru, dev@dpdk.org Content-Type: text/plain; charset="UTF-8" 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 > diff --git a/dts/framework/remote_session/testpmd_shell.py b/dts/framework/remote_session/testpmd_shell.py > index 0184cc2e71..11c5c7f93c 100644 > --- a/dts/framework/remote_session/testpmd_shell.py > +++ b/dts/framework/remote_session/testpmd_shell.py > @@ -82,3 +182,50 @@ def get_devices(self) -> list[TestPmdDevice]: > if "device name:" in line.lower(): > dev_list.append(TestPmdDevice(line)) > return dev_list > + > + def wait_link_status_up(self, port_id: int, timeout=SETTINGS.timeout) -> bool: > + """Wait until the link status on the given port is "up". > + > + Arguments: > + port_id: Port to check the link status on. > + timeout: Time to wait for the link to come up. The default value for this > + argument may be modified using the :option:`-t, --timeout` command-line argument This should be just :option:`--timeout`, otherwise Sphinx complains: WARNING: unknown option: '-t, --timeout' > + or the :envvar:`DTS_TIMEOUT` environment variable. > + > + Returns: > + Whether the link came up in time or not. > + """