From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202502 header.b=VwDC8Do0; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id E1D5F5A061C for ; Thu, 06 Mar 2025 06:37:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202502; t=1741239447; bh=W8qSYaJ9zpxko3m5fKOrdqaXRhd+wKPXJIXf97myKG8=; h=From:To:Cc:Subject:Date:From; b=VwDC8Do0cV6Y5JesT5OaxISnW/qiy5aL+SIL5BhHyvGeeGT872rfa1B6ZnZ7vMace 51KPtixv1wFRRdQMsOKZtVEDgKJKbPX9JRKtDEfBn2/GvmX+FCLjbUSbsh7XXoNaE+ R16de5RDbjvEN1Oo03uXIra1As7MYkQLhe9vlxY1Mey3j+JY83yCVuPGalyWzHiDmF YmycaJSy/RxwRZqsL8ioeutj50NVY/PDNmlZ0OCvgvW/GLwnBSrIUNoBEW3NyQ9Mn2 Z2u6BMoLsEGkyzqpDz/O8ACQzndl/uRedUCMTGb35RX5VP19Z4eH1FgxmiLhUCVVQj QNdoQ0+gcjAYw== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4Z7dTz4tSPz4x7D; Thu, 6 Mar 2025 16:37:27 +1100 (AEDT) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH v2 0/3] Tweaks to mode handling Date: Thu, 6 Mar 2025 16:37:22 +1100 Message-ID: <20250306053725.2153022-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.48.1 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: NXERJ6F5R4GRVYSDFY6JOYKH63TDC6LH X-Message-ID-Hash: NXERJ6F5R4GRVYSDFY6JOYKH63TDC6LH X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: David Gibson 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: While working on something else, I got mildly irritated by the fact that there's no a consistent place after which we can rely on the mode. We detect passt vs. pasta early, but only split out vhost-user later, which forces some other things later still. v2: * No changes, just rebased and reposted David Gibson (3): conf: Use the same optstring for passt and pasta modes conf: Move mode detection into helper function conf: Detect vhost-user mode earlier conf.c | 87 ++++++++++++++++++++++++++++++++++++++++++--------------- conf.h | 1 + passt.c | 14 ++-------- 3 files changed, 68 insertions(+), 34 deletions(-) -- 2.48.1