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 5B9D245920; Fri, 6 Sep 2024 19:37:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 74D7342FB5; Fri, 6 Sep 2024 19:37:40 +0200 (CEST) Received: from mail-pj1-f98.google.com (mail-pj1-f98.google.com [209.85.216.98]) by mails.dpdk.org (Postfix) with ESMTP id CA72F400D5 for ; Fri, 6 Sep 2024 19:37:39 +0200 (CEST) Received: by mail-pj1-f98.google.com with SMTP id 98e67ed59e1d1-2d8b679d7f2so1767959a91.1 for ; Fri, 06 Sep 2024 10:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1725644259; x=1726249059; 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=D2NjKYBceMLaomq7KDsmUyotzPrjeYuBUKcBwsBNR0s=; b=TcDBxaeYvZuz5mC/gc7O5y2qhc9bvSYq68rnf+/nd55nZk8MkSpLZmNNagCLirNbs/ q/Ljd8ytXKevABonufrfEv11gsXsBDL8G4SbETqzO71tFRbXJ5y1gFcTI1XN7OR9CzFd j1B5LE8D/27kU6u49+tF9olkZcpXbkUHEWd+Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725644259; x=1726249059; 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=D2NjKYBceMLaomq7KDsmUyotzPrjeYuBUKcBwsBNR0s=; b=Y/6b1WhPsaBzaYDpxHjTzBdfL+0kVx6NH6ifbpUMhjbJ7pmmLxCQ9M7WLL7c9ZndzI TjccWHGeeRIPoMiZNYmB9P5mBao+AZhJh2ylGzSha0vpVGITjcKCbp9SwstrWyG+KfY2 Ifzn8FKj6VMaVIbio1sM3dErZJruBAB8/sspyhRX6HbDzL+gvdYJ22sh9OR10mS9npfv /S+w/JxcOHyI9WEuOtuXhpjn9V2TRyf0yVcNvQX7zTt0pHWSmTWKVlx6z4w66F+hJVrV ALnyNFplcDPwy67K1pzmKCBq/3NAlJPc39U3n8E/UNasF2+4Aoz/7XBTwP6Mg4ySPI8t DDfg== X-Gm-Message-State: AOJu0Yxpi/mJrgA3GdMTJDdqKrprTMJTggwT9aBb1jYhnFcUq0PmeIN4 yFkaDXIdRGz9AcInnhSsCzkix6sZxWAhA22THEgGo6NXJYF2sUHuD4eFWbcKgFkevNgElyREaR5 IDQ/5NrH2AtxoYwoipAwce5Pz8Zb/HysEosZbgpDU+sJ1mKwu X-Google-Smtp-Source: AGHT+IG9OeanBSCCAo6igVy17qg0iabAk01zJJc5oWCMLR8n7wn7/EiSj9TCIV3O6ZdM7ctoPVynYw2HE0/Y X-Received: by 2002:a17:90a:f301:b0:2cf:fe5d:ea12 with SMTP id 98e67ed59e1d1-2dad505649emr4345613a91.24.1725644258887; Fri, 06 Sep 2024 10:37:38 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [2606:4100:3880:1234::84]) by smtp-relay.gmail.com with ESMTPS id 98e67ed59e1d1-2dadc03d89csm102354a91.11.2024.09.06.10.37.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 06 Sep 2024 10:37:38 -0700 (PDT) X-Relaying-Domain: iol.unh.edu Received: from iol.unh.edu (unknown [IPv6:2606:4100:3880:1257::1083]) by postal.iol.unh.edu (Postfix) with ESMTP id 6F1786050A6D; Fri, 6 Sep 2024 13:37:37 -0400 (EDT) From: jspewock@iol.unh.edu To: npratte@iol.unh.edu, thomas@monjalon.net, alex.chapman@arm.com, probb@iol.unh.edu, wathsala.vithanage@arm.com, Luca.Vizzarro@arm.com, Honnappa.Nagarahalli@arm.com, yoan.picchi@foss.arm.com, paul.szczepanek@arm.com, juraj.linkes@pantheon.tech Cc: dev@dpdk.org, Jeremy Spewock Subject: [PATCH v1 1/3] dts: allow specifying ingress port in send_packets Date: Fri, 6 Sep 2024 13:37:07 -0400 Message-ID: <20240906173709.17487-2-jspewock@iol.unh.edu> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240906173709.17487-1-jspewock@iol.unh.edu> References: <20240906173709.17487-1-jspewock@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 From: Jeremy Spewock In order to use VFs in the framework, methods for sending packets had to be modified so that they support choosing which ports to use when sending and receiving. This patch creates the same support for the send_packets method so that it can be used with VFs. Signed-off-by: Jeremy Spewock --- 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 b17f0c04b2..6490500610 100644 --- a/dts/framework/test_suite.py +++ b/dts/framework/test_suite.py @@ -221,13 +221,18 @@ def send_packet_and_capture( def send_packets( self, packets: list[Packet], + sut_ingress: Port | None = None, ) -> None: """Send packets using the traffic generator and do not capture received traffic. Args: packets: Packets to send. + sut_ingress: Optional port to use as the SUT ingress port. Defaults to + `self._sut_port_ingress`. """ - packets = self._adjust_addresses(packets) + if sut_ingress is None: + sut_ingress = self._sut_port_ingress + packets = self._adjust_addresses(packets, sut_ingress, self._sut_port_egress) self.tg_node.send_packets(packets, self._tg_port_egress) def get_expected_packet( -- 2.46.0