From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id C6555454BD;
	Fri, 21 Jun 2024 19:22:46 +0200 (CEST)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id B4E4E42EAF;
	Fri, 21 Jun 2024 19:22:46 +0200 (CEST)
Received: from mail-oi1-f182.google.com (mail-oi1-f182.google.com
 [209.85.167.182])
 by mails.dpdk.org (Postfix) with ESMTP id 865CB42EAE
 for <dev@dpdk.org>; Fri, 21 Jun 2024 19:22:45 +0200 (CEST)
Received: by mail-oi1-f182.google.com with SMTP id
 5614622812f47-3d1b8bacf67so197106b6e.2
 for <dev@dpdk.org>; Fri, 21 Jun 2024 10:22:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=iol.unh.edu; s=unh-iol; t=1718990565; x=1719595365; 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=pln1caBAOk9pNTkzEnMmikKKX+ApTj9vzDvCK2U73hM=;
 b=aaSenO5p4bTUZdq12Z0mZum/8AQgfY2/ZNAb7gN4BW3KNW9Tue44TpksH4MOlc/trh
 idEn75VBR8u6qM9B5G1f29G9SthhZzpZZG+CT0SoYzDgaAhBdrsOrNnLCPQ8yUpTg/+U
 pJXysjlZwa5kAkoPPoIIaMJfdEScfPt8NCGh4=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1718990565; x=1719595365;
 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=pln1caBAOk9pNTkzEnMmikKKX+ApTj9vzDvCK2U73hM=;
 b=ky952HSiNMCAxufvcsKAiJUDsxBQHJQhnVrmYjh7JaJgX3zj9KL7kYSl1pWGE6hPSW
 vjWt8nOaPDcKJh3mISheaUFqKCxGDs7Jm57yCIARPpwMM3RHnV+9aZ3XN0Ief4Ab+H26
 u2viVVDKdx4kNgNkgrOPIrcoNTgFrFCFOyj29kM7vjVAXHhYixExmcpmD3BvJLdmsfuF
 gsRjoVJrahbRFmp0OGK9pKSC0i4PWw9cqFBOptuNvwRZ/IX92P9MXTpptIKWYaUChNQW
 fWptiGbMm9y3ZT1s6SwVjPBUspRoQsVG+gCr2B4r6+ANaVd7E/jcsQnZRBcUYkJ/m6VZ
 tJwQ==
X-Gm-Message-State: AOJu0Yx64yqNo+OJP5haMGtfCoizy01C+uAa34SJ3RSLCjYHf+kbjmeb
 WHxluacvgxzX4QqyMlQTZS+aHwp2SDaJn1q5hA/6l6aEfxJRAEAqPfV/lBgxkT0=
X-Google-Smtp-Source: AGHT+IGNQDX/sWnUtcdMLcyi4t6bMEYyrXnZnHhrCw0NbLdBC/DH+TYcVd3o/04x8zohwOZkAoTx7Q==
X-Received: by 2002:a05:6830:63c5:b0:6f9:7deb:f3b4 with SMTP id
 46e09a7af769-700706a6c62mr9255307a34.0.1718990564651; 
 Fri, 21 Jun 2024 10:22:44 -0700 (PDT)
Received: from localhost.unh.edu ([2606:4100:3880:1271:e2f8:4ec3:8bf3:864c])
 by smtp.gmail.com with ESMTPSA id
 6a1803df08f44-6b51ef58fcesm10510446d6.116.2024.06.21.10.22.43
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 21 Jun 2024 10:22:44 -0700 (PDT)
From: Nicholas Pratte <npratte@iol.unh.edu>
To: juraj.linkes@pantheon.tech, paul.szczepanek@arm.com, probb@iol.unh.edu,
 jspewock@iol.unh.edu, Honnappa.Nagarahalli@arm.com,
 yoan.picchi@foss.arm.com, dmarx@iol.unh.edu, luca.vizzarro@arm.com,
 bruce.richardson@intel.com
Cc: dev@dpdk.org,
	Nicholas Pratte <npratte@iol.unh.edu>
Subject: [PATCH 1/3] dts: add boolean to adjust addresses
Date: Fri, 21 Jun 2024 13:20:59 -0400
Message-ID: <20240621172059.8194-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 <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=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 <npratte@iol.unh.edu>
---
 dts/framework/test_suite.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dts/framework/test_suite.py b/dts/framework/test_suite.py
index 694b2eba65..5044d5f9bb 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.
 
@@ -199,7 +200,8 @@ def send_packet_and_capture(
         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