From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=fail (p=reject dis=none) header.from=hpe.com Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by passt.top (Postfix) with ESMTPS id 5E7125A026E for ; Fri, 04 Dec 2026 15:45:28 +0100 (CET) Received: from pps.filterd (m0148664.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6B4ETGfW2719784 for ; Fri, 4 Dec 2026 14:45:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=cc :content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=pps0720; bh=QH7icWjigCOu64qd5xySh1ijI1rrYGXOh3OJ+ gb7E3E=; b=O5f+gkIjVNPXgvEnCFwLw95AGTKm8G58A69Van4sdapBfXUEYZFmA 4Z3uk5G+5oGimdRxRbtZhwpl6xBw7e4jYIf7rmpCiWBNWqw0cFDxh/oQEQKGnZk5 kfl13dhaweJLkoyUd0ExyUEdvKnpMVsbd0D2xFkBsvfzhGnz0bHqAmfmsBUtjE5M IXjcgv6Xvk7zzucJERVNP/y2nQyotSnHUTb3RX/pXAzrkCnre0SGNjlbR/9e9wPF kJy5V8P7SZJQWBKaFK4UjXyrafNYTnWxQc+CSaLXpx945epXhHZf3xyCeg26p3uL 1lnOgVfsJ2v+N2wYkzOfQeTBt8WinOEvQ== Received: from p1lg14881.it.hpe.com (p1lg14881.it.hpe.com [16.230.97.202]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 4jbx041dgg-1 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Fri, 04 Dec 2026 14:45:26 +0000 (GMT) Received: from p1lg14886.dc01.its.hpecorp.net (unknown [10.119.18.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by p1lg14881.it.hpe.com (Postfix) with ESMTPS id C0475805EAC for ; Fri, 4 Dec 2026 14:45:23 +0000 (UTC) Received: from hpecorp.net (unknown [16.231.227.36]) by p1lg14886.dc01.its.hpecorp.net (Postfix) with ESMTP id ACF9280CBF4; Fri, 4 Dec 2026 14:45:22 +0000 (UTC) From: Stuart McLaren To: passt-dev@passt.top Subject: [PATCH] conf: Make --splice-only and --fd mutually exclusive Date: Fri, 4 Dec 2026 14:45:19 +0000 Message-Id: <20261204144519.3194689-1-stuart.mclaren@hpe.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: -1H_1inzTLiws2PxS6o2UNnxm8p8Hqqw X-Proofpoint-Spam-Info: AW1haW4tMjYxMjA0MDA1OCBTYWx0ZWRfXwztkwdwm7cuY 9xRsZ8gjRxO0T30pPKRTD3ZOjfTcHlJmTWAWXLAhq7gXufqPO69vbo47Z0t4/QOlpeyuHDTz0qg 9Kkc3Nk9qbpYF1czvoYHCq+ZBAL9odU= X-Proofpoint-ORIG-GUID: -1H_1inzTLiws2PxS6o2UNnxm8p8Hqqw X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMjA0MDA1OCBTYWx0ZWRfXzngORpt+cFJ/ Z4jEeOJRt4It2ndiXRTb+1DIse4PfF4DoW7Vih/MNhds2/4nD+NxRNl3xxkbYl2DdxlU8eBmbLk x4ok0CQt9b9yDNyIosL/Zahz4LXnpYGhfKkhRGcncHr6wU4XWv6EEeBkCcYs/VHB+h65qqKn8JL lG/K0ohsLg/0yF5cVzQwMp/csJKw6gP0b/JslMhCvurIEhj+aAuDz0Vb1kfeezqEw4ScN9Gx6OU 6evUUkanFLL9jX8Qgg4nI/IcYJm7/tELvSbOLq2Wl8fpuCrRco/TiiG6Hpq5+5fVavrqo3E5wJw SstdtHHCMEDJwi9RkZr/ZznlXyGUpFzSTVo71QBf0nyGlgD1r2mp+z02IotbPsznri8UsA1btRy o7WhvBzGnKoqNjLJYQnKkDKcQyKWGs0Lri20T2oq6sU2z5I6nd0Nj1U2XwsPvwNKWlEZaqMjVyR CDjrTBeZHbMLcB+/1Sw== X-Authority-Analysis: v=2.4 cv=d59gWhjE c=1 sm=1 tr=0 ts=6b12d206 cx=c_pps a=FAnPgvRYq/vnBSvlTDCQOQ==:117 a=FAnPgvRYq/vnBSvlTDCQOQ==:17 a=pUM-KoujPXoA:10 a=VkNPw1HP01LnGYTKEx00:22 a=gQcMVamqm3wCPoSYhaRC:22 a=NCWKwCw8Xy9Og0ibBRsL:22 a=pNgXkJcRAAAA:8 a=MvuuwTCpAAAA:8 a=MiV9GYEmex-jIvjjhdYA:9 a=tKe0A8swS_RTMQ4Dt1Wu:22 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-12-04_03,2026-12-03_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 phishscore=0 bulkscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2612040058 X-MailFrom: stuart.mclaren@hpe.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: 6V7VVW3YHHU3IGU3GNXUTWPW3QEF5RC6 X-Message-ID-Hash: 6V7VVW3YHHU3IGU3GNXUTWPW3QEF5RC6 X-Mailman-Approved-At: Fri, 04 Dec 2026 19:26:09 +0100 CC: Stuart McLaren X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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 --- 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