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 6608B45552; Tue, 2 Jul 2024 21:12:05 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5339A40E5A; Tue, 2 Jul 2024 21:12:05 +0200 (CEST) Received: from mail-qv1-f48.google.com (mail-qv1-f48.google.com [209.85.219.48]) by mails.dpdk.org (Postfix) with ESMTP id A652E40E4F for ; Tue, 2 Jul 2024 21:12:04 +0200 (CEST) Received: by mail-qv1-f48.google.com with SMTP id 6a1803df08f44-6b57fea1518so809786d6.3 for ; Tue, 02 Jul 2024 12:12:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1719947524; x=1720552324; 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=HPxR+UBk4SszTnCi3aE+MMFhqxwN53UDeAQ3on+YV6nYzXYv0+sxXflCn9tQ0qc5L6 24zkTrKSrblo5Xzmd4rsKKhI8BagbJhKP/13mZGAJTB+b9VVwdwREMvZAsfnj2Vq4PrC 79UlOReqitdd8jrv8YEDY7n8gEOoCbpa5uxTo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719947524; x=1720552324; 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=efqO3zwgkh9duxzkyQSAdrXlg+pc3CXUQBzSv/FCQk68KitxO4pA3N0ZnfT6bCq/u8 MFovE0HzNJX5yXYqYcT9e2X60xLOhDyHmHzGiKFbuZgeXUX1AbDBO043ccYTimJ8RtOb nLBv3blF/AmHWMyHkbX5VOMwIp0NztWCqjE7DzlMQcNxNF57KsJpdJdJkqDvKm+V+Ahf UYV3suYil3j7kAK5Tz6ex/Q0T9FItQbAsPm7WHCwz3cURCLcKvmHTl0+AIlqIV9/9X9X Imtwslp6cGoOsrPpGJwDCZ+dMnBdZsCB5tjPdRbkWD5JuP9VBr2Vd0amSVKGzjY7fz3s LkLA== X-Gm-Message-State: AOJu0Yw9zVcZKNWtuHl+B8cAir8vWxEZWzA27KborX1EQ6uTWZ3IwqTk epZ2GXLV/bCRZD1Kfow50bJk+z7QySis/VE9/4ZO5Ht1lk2i4xtaVFvDo5iPrho= X-Google-Smtp-Source: AGHT+IF9jbnj1QusPzqw1uBWgcLsOTQymqCvbnHdk7iZR8Ljj/i9sltvyPfalKugB5Pt2fXIWdn9AQ== X-Received: by 2002:a05:6214:2265:b0:6b5:de38:d6ee with SMTP id 6a1803df08f44-6b5de38dde1mr8513216d6.3.1719947524003; Tue, 02 Jul 2024 12:12:04 -0700 (PDT) Received: from localhost.unh.edu ([2606:4100:3880:1271:e2f8:4ec3:8bf3:864c]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b59e5f2123sm46524486d6.99.2024.07.02.12.12.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jul 2024 12:12:03 -0700 (PDT) From: Nicholas Pratte To: luca.vizzarro@arm.com, dmarx@iol.unh.edu, yoan.picchi@foss.arm.com, paul.szczepanek@arm.com, juraj.linkes@pantheon.tech, Honnappa.Nagarahalli@arm.com, jspewock@iol.unh.edu, probb@iol.unh.edu Cc: dev@dpdk.org, Nicholas Pratte Subject: [PATCH v2 1/3] dts: add boolean to adjust addresses Date: Tue, 2 Jul 2024 15:11:22 -0400 Message-ID: <20240702191122.30699-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