From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 5F9115A0283 for ; Mon, 19 Feb 2024 08:57:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202312; t=1708329414; bh=R7IKgCbtpYTPfQBOkXps3QG8fUx/0nqJwaxw4rjmHDU=; h=From:To:Cc:Subject:Date:From; b=bqlUvx3K3nbalpGgFO/u+158tk0Hfe3/gwtvzMiwL1gEUAWuh0UDY2ekpZ0dk1O+r KMAtzeZacAKxNSQ1nmEcD9addvVDUablz4k0w2KqcoRHhfzRZ9vcRzVS+5ZCpFJQH2 CaFSnp73ixgj9YNlnMdZ0nYZ1bpddzbSw/1nY5n7x4GFaFiyKPRtcnxoKf0DM4Vuw8 5W83CY1fTnbzYyEzlbw7Na4eVQzRAfzeUpAThl13vZRctS4xTyD3JpauTLd7DMBndT kLF3doy+8JUS+9hGGqcRC8/2WzjSBnBzIwaEqvv+y+HxTeQQugfCbHUYvsnd1K3ZFr B5ZELbkGdnxhQ== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4TdZck2jGfz4x0r; Mon, 19 Feb 2024 18:56:54 +1100 (AEDT) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH 0/6] tcp: Improve error handling around socket pools Date: Mon, 19 Feb 2024 18:56:45 +1100 Message-ID: <20240219075651.1360229-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.43.2 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: GMFAFC27SHLEZRGOERZTC3ZD5OIDVXCU X-Message-ID-Hash: GMFAFC27SHLEZRGOERZTC3ZD5OIDVXCU 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: To reduce latency, the TCP code maintains several pools of ready to connect TCP sockets. This patch series contains a number of improvements to improve error handling and reporting when we're unable to refill these pools, or unable to obtain a socket from these pools. David Gibson (6): treewide: Use sa_family_t for address family variables tcp: Don't stop refilling socket pool if we find a filled entry tcp: Stop on first error when refilling socket pools tcp, tcp_splice: Issue warnings if unable to refill socket pool tcp, tcp_splice: Helpers for getting sockets from the pools tcp: Don't store errnos in socket pool icmp.c | 6 ++--- icmp.h | 4 +-- inany.h | 3 ++- tcp.c | 73 ++++++++++++++++++++++++++++++++++++++++------------ tcp.h | 2 +- tcp_conn.h | 4 +-- tcp_splice.c | 71 +++++++++++++++++++++++++++++++------------------- udp.c | 2 +- udp.h | 2 +- util.c | 2 +- util.h | 2 +- 11 files changed, 114 insertions(+), 57 deletions(-) -- 2.43.2