diff options
| author | Stuart McLaren <stuart.mclaren@hpe.com> | 2026-12-04 14:45:19 +0000 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2026-12-04 22:54:33 +0100 |
| commit | 24470b42b36a44dbd94d9cf28a166a02fb2eb58a (patch) | |
| tree | bbb5d66e6bd40c75e416572d2a355ae5aff7fbd7 | |
| parent | 5e7a154aaaa8891afa007e111aed6d67f7680645 (diff) | |
| download | passt-24470b42b36a44dbd94d9cf28a166a02fb2eb58a.tar passt-24470b42b36a44dbd94d9cf28a166a02fb2eb58a.tar.gz passt-24470b42b36a44dbd94d9cf28a166a02fb2eb58a.tar.bz2 passt-24470b42b36a44dbd94d9cf28a166a02fb2eb58a.tar.lz passt-24470b42b36a44dbd94d9cf28a166a02fb2eb58a.tar.xz passt-24470b42b36a44dbd94d9cf28a166a02fb2eb58a.tar.zst passt-24470b42b36a44dbd94d9cf28a166a02fb2eb58a.zip | |
conf: Make --splice-only and --fd mutually exclusive
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>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
| -rw-r--r-- | conf.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -2170,6 +2170,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; |
