public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
* [PATCH] conf: Make --splice-only and --fd mutually exclusive
@ 2026-12-04 14:45 Stuart McLaren
  2026-12-04 22:31 ` Stefano Brivio
  0 siblings, 1 reply; 2+ messages in thread
From: Stuart McLaren @ 2026-12-04 14:45 UTC (permalink / raw)
  To: passt-dev; +Cc: Stuart McLaren

The --fd option passes in a pre-opened fd carrying layer 2 traffic
(tap datapath). In splice-only mode that datapath is unusable: with L2
buffers no longer initialised, traffic from the fd is silently
dropped. Reject the combination.

Link: https://archives.passt.top/passt-dev/20261203175624.3078368-1-stuart.mclaren@hpe.com/
Signed-off-by: Stuart McLaren <stuart.mclaren@hpe.com>
---
 conf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/conf.c b/conf.c
index d3976d3..4409ab8 100644
--- a/conf.c
+++ b/conf.c
@@ -2159,6 +2159,9 @@ void conf(struct ctx *c, int argc, char **argv)
 		if (c->no_splice)
 			die("--splice-only is incompatible with --no-splice");
 
+		if (c->fd_tap != -1)
+			die("--splice-only is incompatible with --fd");
+
 		c->host_lo_to_ns_lo = 1;
 		c->no_icmp = 1;
 		c->no_dns = 1;
-- 
2.34.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] conf: Make --splice-only and --fd mutually exclusive
  2026-12-04 14:45 [PATCH] conf: Make --splice-only and --fd mutually exclusive Stuart McLaren
@ 2026-12-04 22:31 ` Stefano Brivio
  0 siblings, 0 replies; 2+ messages in thread
From: Stefano Brivio @ 2026-12-04 22:31 UTC (permalink / raw)
  To: Stuart McLaren; +Cc: passt-dev

On Fri,  4 Dec 2026 14:45:19 +0000
Stuart McLaren <stuart.mclaren@hpe.com> wrote:

> The --fd option passes in a pre-opened fd carrying layer 2 traffic
> (tap datapath). In splice-only mode that datapath is unusable: with L2
> buffers no longer initialised, traffic from the fd is silently
> dropped. Reject the combination.
> 
> Link: https://archives.passt.top/passt-dev/20261203175624.3078368-1-stuart.mclaren@hpe.com/
> Signed-off-by: Stuart McLaren <stuart.mclaren@hpe.com>

Applied, too.

-- 
Stefano

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-04 22:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-04 14:45 [PATCH] conf: Make --splice-only and --fd mutually exclusive Stuart McLaren
2026-12-04 22:31 ` Stefano Brivio

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).