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=202410 header.b=Aej4Ui4V; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 2D1C95A061B for ; Wed, 23 Oct 2024 02:43:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202410; t=1729644174; bh=Hh3AZf+yTnJ/jSKdjVezi58Pa5f8BhzA9F09uDeli3M=; h=From:To:Cc:Subject:Date:From; b=Aej4Ui4V3CceUENvAH2VPhsQFEZ40kmNE3rHb5SQj/mBU1B1qqXUtZC6H+Q6wwgog x6MZU1fmo6wiYRaSyXobYmqPwk0rw0+ef6Ppvca5ZfhwIWu4H6ZMvSxeh7RNkPEYhV M+p3Q+1OlRh8kRlRLqjF2S5ZCDPRtjS/c795rpzvaLowCeo0qsDQYLjO3vLHwucVOF xfTKGUBewD3U2/TxU4pRPbl001EQ0y1alX9pyJUaTiNpqtYco4LhvBSdTobeuJD8Ln OK1k0Y0CsVsQ1trdx+YT+qb/g4J11W24BanGU/Gu6Wr2I98nfGwPkMUbzGHkIFpAoX EkHxbfBNbCCJg== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4XY9Hy14Xsz4wb7; Wed, 23 Oct 2024 11:42:54 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/2] tcp: Runtime checks for availability of TCP_INFO fields Date: Wed, 23 Oct 2024 11:42:51 +1100 Message-ID: <20241023004253.1729124-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.47.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: KKZRNNCVNG2AEJO52RHKVVRPUGL7GXKE X-Message-ID-Hash: KKZRNNCVNG2AEJO52RHKVVRPUGL7GXKE 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: We have a number of Makefile tests for the presence of various fields in tcp_info. However that only tells us if they're present in the kernel headers against which we're compiling, not whether they're available in the kernel we're running on. For anything outside the earliest forms of TCP_INFO (as described in netinet/tcp.h and shared with BSD), we should verify at runtime if the kernel is returning that information. This was supposed to be leading into improved handling of lazily calling TCP_INFO, but I hit additional complications there, so I've postponed it. Might as well get these bits merged, though. David Gibson (2): tcp: Generalise probing for tcpi_snd_wnd field tcp: Use runtime tests for TCP_INFO fields tcp.c | 97 +++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 57 insertions(+), 40 deletions(-) -- 2.47.0