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 EFDB945552; Tue, 2 Jul 2024 21:09:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E259240E31; Tue, 2 Jul 2024 21:09:16 +0200 (CEST) Received: from mail-oa1-f51.google.com (mail-oa1-f51.google.com [209.85.160.51]) by mails.dpdk.org (Postfix) with ESMTP id 4B96740E30 for ; Tue, 2 Jul 2024 21:09:16 +0200 (CEST) Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-25989f87e20so715284fac.1 for ; Tue, 02 Jul 2024 12:09:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1719947355; x=1720552155; 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=HaJJJlgW0F0v/fOzO2E5+iJzDB2Bj6bFuWByCoG0mYmeFCRLVDGSU1g/vXUSG0P62r Y/f8pa2YpzRciOoq6KQPFINTpQWdxB7SViHSV/DSPFSjWfU3V/6s42pbt48EYR1PsBhZ c3ZYvK7wmquiQSocind/lvLFhuXBxW/Bm2k8U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719947355; x=1720552155; 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=jVoZ+k9AA0a0jknUwdIJGh9s7O/J6ZwqyQBU8V255GqgO/cwkCdkguaSxhVsd+HKGw 5IzO7/kd0dVjVIa2mBF91eCKl+PhMxbFe1pD1NU+n9pvdVY8oY30F8txIVmLnz42V/98 ZbSXoAtTCO+uAYJ6gPd+juR08dfmW3MNBiQsevGMNpf5zrzHkbghVeLVziLdQGuHun94 xUbZ1vsaI64Sl8ivzoQt9t+esiy1TMkajPmGjBEiFfySw59/IcsMfRB2pNZZ8CnEK64u w21tkIL+uGPCUbComQ5Ec8twZj4p3PxaI8R8CYvzTC9nYIDXntdj8F2atp4kv8bajpm6 lPhQ== X-Gm-Message-State: AOJu0YwtHiMGxnsurRkxU0wIx9l8ugVtfq6f3HB/qmxYd1qaFYIZHAxk FpBYQlU/2gDK9YxmCV05p/FOjXVWTXX7mEOqkDBWP/FUh1hDnp4F6ws6GJY/MqU= X-Google-Smtp-Source: AGHT+IGDd/UQgwkr0LSzu+DjdCWxJ/CM912ZDCxE1uVHy/ZWjhzz27eMp9o7gGLkqtC8OY3GTLG83A== X-Received: by 2002:a05:6870:b155:b0:254:d417:351f with SMTP id 586e51a60fabf-25db338f8f9mr10412586fac.1.1719947355205; Tue, 02 Jul 2024 12:09:15 -0700 (PDT) Received: from localhost.unh.edu ([2606:4100:3880:1271:e2f8:4ec3:8bf3:864c]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-446514b9d41sm43853411cf.88.2024.07.02.12.09.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jul 2024 12:09:14 -0700 (PDT) From: Nicholas Pratte To: luca.vizzarro@arm.com, jspewock@iol.unh.edu, probb@iol.unh.edu, yoan.picchi@foss.arm.com, dmarx@iol.unh.edu, Honnappa.Nagarahalli@arm.com, juraj.linkes@pantheon.tech, paul.szczepanek@arm.com Cc: dev@dpdk.org, Nicholas Pratte Subject: [PATCH v2 1/3] dts: add boolean to adjust addresses Date: Tue, 2 Jul 2024 15:04:15 -0400 Message-ID: <20240702190415.27886-4-npratte@iol.unh.edu> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240621172059.8194-2-npratte@iol.unh.edu> References: <20240621172059.8194-2-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