From: Stefano Brivio <sbrivio@redhat.com>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: Yumei Huang <yuhuang@redhat.com>, passt-dev@passt.top
Subject: Re: [PATCH] conf, pasta: Add --no-tap option
Date: Tue, 13 Jan 2026 01:12:09 +0100 [thread overview]
Message-ID: <20260113011209.3c5ed9f6@elisabeth> (raw)
In-Reply-To: <aWR35hL-qDQ2phHO@zatzit>
On Mon, 12 Jan 2026 15:26:14 +1100
David Gibson <david@gibson.dropbear.id.au> wrote:
> On Sat, Jan 10, 2026 at 07:12:19PM +0100, Stefano Brivio wrote:
> > On Mon, 5 Jan 2026 16:53:49 +0800
> > Yumei Huang <yuhuang@redhat.com> wrote:
> >
> > > On Mon, Jan 5, 2026 at 12:18 PM David Gibson
> > > <david@gibson.dropbear.id.au> wrote:
> > > >
> > > > On Mon, Dec 29, 2025 at 05:55:58PM +0800, Yumei Huang wrote:
> > > >
> > > > > + if (c->pasta_conf_ns)
> > > > > + die("--no-tap is incompatible with --config-net");
> > > >
> > > > I don't think this is right. We still can and should bring up 'lo' in
> > > > the --no-tap case.
> > >
> > > I see your point, but seems c->pasta_conf_ns is only used for tap as
> > > https://passt.top/passt/tree/pasta.c#n328, 'lo' is configured before
> > > that line.
> >
> > Right, and the reason is that there are basic bits of functionality
> > (probing pipe sizes if I recall correctly, or anyway probing for some
> > kind of capability) that need the loopback interface to be up.
>
> Ah, right. Drat. In general I don't like us touching the guest
> netlink at all if we don't have --config-net. Hrm.. now what exactly
> needs this. It's not anything in sock_probe_features() - that runs in
> the host ns. Not pipe sizes, either - that also takes place in the
> host ns (and netns is irrelevant to pipes, anyway). There could well
> be something, but I'm not sure what it is.
Actually, I tried, and I don't get any trouble (but I think I had some
error when I added that in 2021).
But we implicitly break any outbound forwarding because our listening
sockets will be unreachable (bind() succeeds though). So... I would be
wary of changing that at this point. There might be users relying on
it, and it's otherwise harmless I guess.
--
Stefano
next prev parent reply other threads:[~2026-01-13 0:12 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-29 9:55 Yumei Huang
2025-12-31 15:07 ` Stefano Brivio
2026-01-05 4:18 ` David Gibson
2026-01-05 8:53 ` Yumei Huang
2026-01-10 18:12 ` Stefano Brivio
2026-01-12 4:26 ` David Gibson
2026-01-13 0:12 ` Stefano Brivio [this message]
2026-01-13 2:39 ` David Gibson
2026-01-13 9:57 ` Yumei Huang
2026-01-05 13:48 ` Paul Holzinger
2026-01-05 21:10 ` Stefano Brivio
2026-01-07 15:20 ` Paul Holzinger
2026-01-10 18:12 ` Stefano Brivio
2026-01-12 8:20 ` Yumei Huang
2026-01-10 18:12 ` Stefano Brivio
2026-01-13 11:20 ` Yumei Huang
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=20260113011209.3c5ed9f6@elisabeth \
--to=sbrivio@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
--cc=yuhuang@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).