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=U9+ivnuc; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 439F45A065B for ; Mon, 24 Feb 2025 08:57:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202502; t=1740383855; bh=OfGLdlQ555abXIH/G/PfFglYYjmvo4a3yCcT9MgtNGU=; h=From:To:Cc:Subject:Date:From; b=U9+ivnucZgT/yZrfM91foFOJC0b5ugb3EpgKeFmzTszN/+YulbiEywdEn3QyLY5md hu/GRG9Vz4+ibttODjLiLGc8DC/MYqBZZ6GU3BQsM1kWhWRDJKAmBBaFvTyv9hDnXG PNPqhkdtg9jkDIpW5V99FgeETG92eTFZx2hOxCkTC/NVMOevYzMY9YRr+WC9OXo+F8 216skqblTO9EaxC3Orjr7nThSweBR2Ybz86hPO92VA4MagUssCAI27lGiqFa2jLaPe 0Lg30bcgkm3/ccrjAVyzIDNpSMLToFasQnwwqiTCUhlUQYhRvy1/DzA27m6taQUlfS 2xjywTyPE0ZJg== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4Z1Y4H6kzdz4wcj; Mon, 24 Feb 2025 18:57:35 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/3] Tweaks to mode handling Date: Mon, 24 Feb 2025 18:57:31 +1100 Message-ID: <20250224075734.2824010-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: I7NPCGR5N3YSUAMCQ5EUR3M5KXEVF5W7 X-Message-ID-Hash: I7NPCGR5N3YSUAMCQ5EUR3M5KXEVF5W7 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. David Gibson (3): conf: Move mode detection into helper function conf: Detect vhost-user mode earlier conf: Use the same optstring for passt and pasta modes conf.c | 87 ++++++++++++++++++++++++++++++++++++++++++--------------- conf.h | 1 + passt.c | 14 ++-------- 3 files changed, 68 insertions(+), 34 deletions(-) -- 2.48.1