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 E2C3D45A3C; Thu, 26 Sep 2024 22:39:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2C93D4027D; Thu, 26 Sep 2024 22:39:52 +0200 (CEST) Received: from mail-pl1-f230.google.com (mail-pl1-f230.google.com [209.85.214.230]) by mails.dpdk.org (Postfix) with ESMTP id 0584C4027D for ; Thu, 26 Sep 2024 22:39:50 +0200 (CEST) Received: by mail-pl1-f230.google.com with SMTP id d9443c01a7336-20570b42f24so16548525ad.1 for ; Thu, 26 Sep 2024 13:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iol.unh.edu; s=unh-iol; t=1727383189; x=1727987989; 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=TLsUbMYhxTzDQvovw9FfFeNtIlkOaL1pnQqUvhj98hI=; b=QkcwQk49lUgmetNPTLQiPiKatngboL5WKdG3nGvvuNEk1ECY9/rwtv5T35pWoYfFR2 ShdVuBTGBEhFOupoCyFHCyPMWUMPgnoCHpfTuTxL3LYtpobsSEhJdZwSDW0LXzh9dbWE MZY0OTYXmddSZQMx6Tyr2PqHbu/x+8/6x/3ro= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727383189; x=1727987989; 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=TLsUbMYhxTzDQvovw9FfFeNtIlkOaL1pnQqUvhj98hI=; b=WAhByhNf0D06E+QHya+DtUQfl21go0u1LMPYJelIdVMRVYFsovzpISz/KZM8baSyIO OrRKb4pZTsWFIaWpyoU7+moTGDb3lxslqlNMzItvvGylyQVRT86fwhI2nE510bN9APY1 tllr5SlRXPJNxqxgHE+c2/z48/QFmgd2R2gaFgX4DZRo2QNElvmPraCjkk0GMX7fzFv+ ZgCI42xmUi05VrWE0t9UbN9Fo3lw1ZlwyBgQBfIjYXRl5oVbaBiyqieYWutwo4OXZqSp tFh7p7f84nNIELOd/efDsdNLVat/EAZZWkqI0czu2EPgHeYpJ0oEEZeHJsVPsWPusA/M fOCA== X-Gm-Message-State: AOJu0YwRLbEpZ9YEYpaFFqfmAcCFP1ZaK0YmUA11sRyEUKhCRKOFNBee rBAbgt9nnyw1hlFUrIfD9gsZwASrxPrmdWdpHjUR3BqoDep4nnnQ8crkXWUIi2Zap3MN6nhQIEG qDi7ZMCHBGpiEIBXlIVREUp7GBZtQQtdf X-Google-Smtp-Source: AGHT+IHGBFEaVtBoY2oT4I8yWq5RAWpRD9Et7h/hbcjvYZF/kyvXqy5RE91PmLuJGdJZG4F22CQW69dTgvqs X-Received: by 2002:a05:6a21:e8f:b0:1c4:9f31:ac9e with SMTP id adf61e73a8af0-1d4fa7ae094mr1120267637.42.1727383188972; Thu, 26 Sep 2024 13:39:48 -0700 (PDT) Received: from postal.iol.unh.edu (postal.iol.unh.edu. [132.177.123.84]) by smtp-relay.gmail.com with ESMTPS id 41be03b00d2f7-7e6db2acd2asm24126a12.12.2024.09.26.13.39.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Sep 2024 13:39:48 -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 7086F605C351; Thu, 26 Sep 2024 16:39:47 -0400 (EDT) From: jspewock@iol.unh.edu To: npratte@iol.unh.edu, paul.szczepanek@arm.com, wathsala.vithanage@arm.com, thomas@monjalon.net, probb@iol.unh.edu, Luca.Vizzarro@arm.com, yoan.picchi@foss.arm.com, alex.chapman@arm.com, Honnappa.Nagarahalli@arm.com, juraj.linkes@pantheon.tech Cc: dev@dpdk.org, Jeremy Spewock Subject: [PATCH v2 1/3] dts: allow specifying ingress port in send_packets Date: Thu, 26 Sep 2024 16:39:26 -0400 Message-ID: <20240926203928.19881-2-jspewock@iol.unh.edu> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240926203928.19881-1-jspewock@iol.unh.edu> References: <20240906173709.17487-1-jspewock@iol.unh.edu> <20240926203928.19881-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 ac927d15ef..5253083896 100644 --- a/dts/framework/test_suite.py +++ b/dts/framework/test_suite.py @@ -251,13 +251,18 @@ def send_packets_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