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 5D54E45648; Thu, 18 Jul 2024 21:11:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 408A842E6E; Thu, 18 Jul 2024 21:11:47 +0200 (CEST) Received: from mail-qv1-f49.google.com (mail-qv1-f49.google.com [209.85.219.49]) by mails.dpdk.org (Postfix) with ESMTP id CA1304069D for ; Thu, 18 Jul 2024 21:11:45 +0200 (CEST) Received: by mail-qv1-f49.google.com with SMTP id 6a1803df08f44-6b791aefd04so1340956d6.0 for ; Thu, 18 Jul 2024 12:11:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1721329905; x=1721934705; 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=xhr+3qUfLLxOPckiqY7JGUSN6l31wIZcTjO91TJQhuE=; b=Hu6jeK+lumubWn/aUWpTcqzvtPrbXsKSDAFPxlAw8oJcoMmQr/9NKxGRxLpfG3Qnkr rq8kIDypPK/DWVo4DKQef+xLp5oiJ9x0ZVtnJF/QVn6r7HKgU53R77N6jc8UwVlwSR/c v9B9/lBmjt4jKFMEuN29ShKkjXtQy9Wcuiip8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721329905; x=1721934705; 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=xhr+3qUfLLxOPckiqY7JGUSN6l31wIZcTjO91TJQhuE=; b=Tf6x39qq4JaVAEBQtKcrhl2CVRXCkOsk1rJ+gVGn38GAvkvolOzeRGDyv7t9r8LfBq WMEeJobd/l0dbvV/5N61bmDu0U7N0tCVQMwWkLT13OB7mBA5xsl0IhN3ASc733EN+ua4 qOejDgmmav/t60Vz0J/tANoER6vrEFUEkgVicZxciQzHQSkNQKMOFPPD3GflzhlMsrtp YD0tumdOalt92sVpm10N07jVJwbaoh6qG/p4iy1WSHW+02DHT+SFKBbS/liYkfYo3nFg xPr2eINJMxw8hCWbkcvJoaya9ZeqwcbJeFv4fBM5uWPAUhmTdJOJHO902aoiKv5tNzNZ Kzug== X-Gm-Message-State: AOJu0YzhoByqAJmzc0Tbil58+Zexqv+9eS4d39V4n8hkVCNrJltiyA8r eYGfLNupENU3ex16rGhgDrx53rkJzmexzoui6nxk6kpds9QLjqHqys1qpoGCMlM= X-Google-Smtp-Source: AGHT+IHZ+AIVk7tsPjqeT3MQgCPpSRH0+n5K1zLgaj6/FWoSMkjvyd5ot94WG8ULrsKTy0LYbjHdxA== X-Received: by 2002:a05:620a:c4d:b0:79f:f22:1e15 with SMTP id af79cd13be357-7a196eab8f6mr36796285a.7.1721329905118; Thu, 18 Jul 2024 12:11:45 -0700 (PDT) Received: from localhost.unh.edu ([2606:4100:3880:1271:e2f8:4ec3:8bf3:864c]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a1938d95a2sm55639885a.39.2024.07.18.12.11.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jul 2024 12:11:44 -0700 (PDT) From: Nicholas Pratte To: probb@iol.unh.edu, paul.szczepanek@arm.com, luca.vizzarro@arm.com, jspewock@iol.unh.edu, Honnappa.Nagarahalli@arm.com, dmarx@iol.unh.edu, yoan.picchi@foss.arm.com, juraj.linkes@pantheon.tech Cc: dev@dpdk.org, Nicholas Pratte Subject: [PATCH v3 1/3] dts: add boolean to adjust addresses Date: Thu, 18 Jul 2024 15:05:07 -0400 Message-ID: <20240718190509.4203-2-npratte@iol.unh.edu> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240718190509.4203-1-npratte@iol.unh.edu> References: <20240702192422.2480-2-npratte@iol.unh.edu> <20240718190509.4203-1-npratte@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 Various test cases in the mac filter test suite called for granular manipulation of destination mac addresses to properly test mac address filtering functionality. To compensate, there is now an adjust_addresses boolean which the user can toggle if they wish to send their own addressing; the boolean is true by default. Bugzilla ID: 1454 Signed-off-by: Nicholas Pratte --- dts/framework/test_suite.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dts/framework/test_suite.py b/dts/framework/test_suite.py index 694b2eba65..551a587525 100644 --- a/dts/framework/test_suite.py +++ b/dts/framework/test_suite.py @@ -185,6 +185,7 @@ def send_packet_and_capture( packet: Packet, filter_config: PacketFilteringConfig = PacketFilteringConfig(), duration: float = 1, + adjust_addresses: bool = True, ) -> list[Packet]: """Send and receive `packet` using the associated TG. @@ -195,11 +196,15 @@ def send_packet_and_capture( packet: The packet to send. filter_config: The filter to use when capturing packets. duration: Capture traffic for this amount of time after sending `packet`. + adjust_addresses: If :data:'True', adjust addresses of the egressing packet with + a default addressing scheme. If :data:'False', do not adjust the addresses of + egressing packet. Returns: A list of received packets. """ - packet = self._adjust_addresses(packet) + if adjust_addresses: + packet = self._adjust_addresses(packet) return self.tg_node.send_packet_and_capture( packet, self._tg_port_egress, -- 2.44.0