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 32EED45AA2; Tue, 8 Oct 2024 23:47:46 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 35F9F40A6B; Tue, 8 Oct 2024 23:47:42 +0200 (CEST) Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) by mails.dpdk.org (Postfix) with ESMTP id DCF8D4067C for ; Tue, 8 Oct 2024 23:47:40 +0200 (CEST) Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-7afc5925679so67273685a.3 for ; Tue, 08 Oct 2024 14:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1728424060; x=1729028860; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=B2MKTZxTE79prH0L5GuAWy5wBT0LwjlxE+aioDKeIlQ=; b=bHDk/5C59jpmX7xYW64NcvVlQg4ajF1sj1mBMdCGb0tP5capn/Z/TZfh+9i151k/FX GkQbEBzoJ2z4uLa2MQ/KRP1BjK0cVhernPPpu+4feQFVi5HSi/bilhjHpzPaEPywTEJ2 71db7/0CDwER+4am2y+rGb5NGjNp23/r0jRNw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728424060; x=1729028860; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=B2MKTZxTE79prH0L5GuAWy5wBT0LwjlxE+aioDKeIlQ=; b=SXNVgqDgF0oAlQ6ZINN4nBjr3tVI+sIiBtP67beaFW69HLsQ3VB2SzaUzjqmFUc/21 ots9ZNtASccV/KznVm/hQm8WH+lpKloj9uvN/H4RPjgl8XWETq7ifgeqm01ZcjiMrd/E MlsxxVzaeMJWCfVxYAUEFecx7UYPQcOHVR/sovVfi3X6rLJc0449ZjsFIWAbhd/SBgJd QG/t5pCFP72nZPPyFKx45KEygbYqBubog+W6CVFiA/0kayQWcoD1vfDacfYg8ilK6Qfy qm30eR+Z48bg+SPGR/L/iRneI/C1JKOb/731c+OZNsOW7vFPC+3oEAivSYssMkwdFHU4 TcoA== X-Gm-Message-State: AOJu0Yx9ZnzgEYG18RAkIRy/IGhk8qVv1krJWmT7NaK5O/3pn/mLcIz3 C/8XWQ/U2OQJRdeL8UkuOYn/ev2e6hTth5elnaT1I+k6mXU80dj034fEXh6X0JWxmNt1osvkoUp d X-Google-Smtp-Source: AGHT+IGuKPLKpjTY0RO2tC0Zlc8yzUh+V054Ie01G7ELWsnIk5GjIzAVzSJSlT7Y2ECvnPgDp6G3+Q== X-Received: by 2002:a05:620a:c53:b0:7a9:bb80:1f56 with SMTP id af79cd13be357-7b07954f1a6mr43399685a.33.1728424060094; Tue, 08 Oct 2024 14:47:40 -0700 (PDT) Received: from dean-laptop.iol.unh.edu ([2606:4100:3880:1271:f9bd:24da:464d:6294]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7ae756378fesm392647285a.69.2024.10.08.14.47.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Oct 2024 14:47:39 -0700 (PDT) From: Dean Marx To: probb@iol.unh.edu, npratte@iol.unh.edu, luca.vizzarro@arm.com, yoan.picchi@foss.arm.com, Honnappa.Nagarahalli@arm.com, paul.szczepanek@arm.com Cc: dev@dpdk.org, Dean Marx , Jeremy Spewock Subject: [PATCH v10] dts: port over queue start/stop suite Date: Tue, 8 Oct 2024 17:48:03 -0400 Message-ID: <20241008214803.19208-2-dmarx@iol.unh.edu> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20241008214803.19208-1-dmarx@iol.unh.edu> References: <20240807193611.23060-1-dmarx@iol.unh.edu> <20241008214803.19208-1-dmarx@iol.unh.edu> MIME-Version: 1.0 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 This suite tests the ability of the Poll Mode Driver to enable and disable Rx/Tx queues on a port. Depends-on: patch-144442 ("dts: add port queue modification and forwarding stats to testpmd") Signed-off-by: Dean Marx Reviewed-by: Jeremy Spewock --- dts/framework/config/conf_yaml_schema.json | 3 ++- dts/tests/TestSuite_queue_start_stop.py | 16 +++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/dts/framework/config/conf_yaml_schema.json b/dts/framework/config/conf_yaml_schema.json index df390e8ae2..12a4a26dc8 100644 --- a/dts/framework/config/conf_yaml_schema.json +++ b/dts/framework/config/conf_yaml_schema.json @@ -187,7 +187,8 @@ "enum": [ "hello_world", "os_udp", - "pmd_buffer_scatter" + "pmd_buffer_scatter", + "queue_start_stop" ] }, "test_target": { diff --git a/dts/tests/TestSuite_queue_start_stop.py b/dts/tests/TestSuite_queue_start_stop.py index 7533f0b395..389030ae8c 100644 --- a/dts/tests/TestSuite_queue_start_stop.py +++ b/dts/tests/TestSuite_queue_start_stop.py @@ -17,9 +17,13 @@ from scapy.packet import Raw # type: ignore[import-untyped] from framework.remote_session.testpmd_shell import SimpleForwardingModes, TestPmdShell -from framework.test_suite import TestSuite +from framework.test_suite import TestSuite, func_test +from framework.testbed_model.capability import NicCapability, TopologyType, requires +@requires(topology_type=TopologyType.two_links) +@requires(NicCapability.RUNTIME_RX_QUEUE_SETUP) +@requires(NicCapability.RUNTIME_TX_QUEUE_SETUP) class TestQueueStartStop(TestSuite): """DPDK Queue start/stop test suite. @@ -30,14 +34,6 @@ class TestQueueStartStop(TestSuite): queue and verify that packets are not received/forwarded. """ - def set_up_suite(self) -> None: - """Set up the test suite. - - Setup: - Verify that at least two ports are open for session. - """ - self.verify(len(self._port_links) > 1, "Not enough ports") - def send_packet_and_verify(self, should_receive: bool = True) -> None: """Generate a packet, send to the DUT, and verify it is forwarded back. @@ -54,6 +50,7 @@ def send_packet_and_verify(self, should_receive: bool = True) -> None: f"Packet was {'dropped' if should_receive else 'received'}", ) + @func_test def test_rx_queue_start_stop(self) -> None: """Verify packets are not received by port 0 when Rx queue is disabled. @@ -72,6 +69,7 @@ def test_rx_queue_start_stop(self) -> None: "Packets were received on Rx queue when it should've been disabled", ) + @func_test def test_tx_queue_start_stop(self) -> None: """Verify packets are not forwarded by port 1 when Tx queue is disabled. -- 2.44.0