public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Jon Maloy <jmaloy@redhat.com>
To: sbrivio@redhat.com, david@gibson.dropbear.id.au,
	jmaloy@redhat.com, passt-dev@passt.top
Subject: [PATCH] test/lib: Add --config-net to setup_pasta()
Date: Sat, 20 Jun 2026 16:09:21 -0400	[thread overview]
Message-ID: <20260620200921.1720380-1-jmaloy@redhat.com> (raw)

Since commit b4dace8 ("fwd: Direct inbound spliced forwards to the
guest's external address"), inbound splice connections target the
guest's external address (addr_seen) rather than loopback.  This
requires the namespace tap interface to be configured with that
address.

setup_pasta() starts pasta without --config-net, so the tap interface
in the namespace is never brought up and has no addresses or routes.
Splice connections to addr_seen fail because the address is
unreachable in the namespace, breaking all pasta TCP and UDP tests.

Add --config-net to the pasta command line in setup_pasta(), matching
what setup_passt_in_ns() and setup_two_guests() already do.

Signed-off-by: Jon Maloy <jmaloy@redhat.com>
---
 test/lib/setup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/lib/setup b/test/lib/setup
index 59945987..dbf8079d 100755
--- a/test/lib/setup
+++ b/test/lib/setup
@@ -107,7 +107,7 @@ setup_pasta() {
 	[ ${DEBUG} -eq 1 ] && __opts="${__opts} -d"
 	[ ${TRACE} -eq 1 ] && __opts="${__opts} --trace"
 
-	context_run_bg passt "./pasta ${__opts} -f -t 10002 -T 10003 -u 10002 -U 10003 -P ${STATESETUP}/passt.pid $(${NSTOOL} info -pw ${STATESETUP}/ns.hold)"
+	context_run_bg passt "./pasta ${__opts} -f -t 10002 -T 10003 -u 10002 -U 10003 --config-net -P ${STATESETUP}/passt.pid $(${NSTOOL} info -pw ${STATESETUP}/ns.hold)"
 
 	# pidfile isn't created until pasta is ready
 	wait_for [ -f "${STATESETUP}/passt.pid" ]
-- 
2.52.0


             reply	other threads:[~2026-06-20 20:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-20 20:09 Jon Maloy [this message]
2026-06-21  1:18 ` David Gibson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260620200921.1720380-1-jmaloy@redhat.com \
    --to=jmaloy@redhat.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=passt-dev@passt.top \
    --cc=sbrivio@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).