From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id 6258D5A031A for ; Mon, 15 Jul 2024 02:43:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1721004189; bh=xuHgfYbMoaL5cKxQ4DoG6aEoDMbgeWkbgEz+u2EQmTI=; h=From:To:Cc:Subject:Date:From; b=LOl1eSwaKPN2tsuDtmVbjZH5XO8MKhK0QVYqGDArgcUZLsyl1M9gvJHOGPcSzm8KK LWgJm0tbON6g3wswOofovEZ2BoBCOcCeYGTYVOIHUxnigSgPG21kj05LywMfJj4zyT iHybYsveRC8MuG9qzeVldwHgHflIOQlhZzh5U61hKZ88EDtY4ZQ5G9wLCARsGXGzFI BTue8fTfQ5vOpWf6TD7zvB960+Pt/KS3ftqelLoPn+XJWXF+E3Sih0S1dwJ5R4Q93o UvYnVRW0s595lXeZ6oV5G8hjSPctWZz76Z6S9qJAuESESQiUbT6H7Xnt5Z0GPFCziC cthgPIjEtZKsQ== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4WMk2P4hr9z4x3c; Mon, 15 Jul 2024 10:43:09 +1000 (AEST) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH] doc: Trivial fix for reuseaddr-priority Date: Mon, 15 Jul 2024 10:43:07 +1000 Message-ID: <20240715004307.41501-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: ZNGPV32BSVVY4PIST3MTOOPXLBJOMEFZ X-Message-ID-Hash: ZNGPV32BSVVY4PIST3MTOOPXLBJOMEFZ 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 , David Taylor 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: This test program checks for particular behaviour regardless of order of operations. So, we step through the test with all possible orders for a number of different of parts. Or at least, we're supposed to, a copy pasta error led to using the same order for two things which should be independent. Fixes: 299c40750 ("doc: Add program to document and test assumptions...") Reported-by: David Taylor Signed-off-by: David Gibson --- doc/platform-requirements/reuseaddr-priority.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/platform-requirements/reuseaddr-priority.c b/doc/platform-requirements/reuseaddr-priority.c index 644553f8..701b6fff 100644 --- a/doc/platform-requirements/reuseaddr-priority.c +++ b/doc/platform-requirements/reuseaddr-priority.c @@ -222,7 +222,7 @@ static void check_all_orders(void) for (k = 0; k < norders; k++) for (l = 0; l < norders; l++) check_one_order(orders[i], orders[j], - orders[j], orders[l]); + orders[k], orders[l]); } int main(int argc, char *argv[]) -- 2.45.2