From nobody Thu Nov 10 17:30:33 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N7TPk3FvVz4dTjZ; Thu, 10 Nov 2022 17:30:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N7TPk1Jr8z3n96; Thu, 10 Nov 2022 17:30:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668101434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FZqZxMXk/ljNjcwAqG5v8fa+xC0HuS6aNMCFUFDT5Ec=; b=UyJBrKtBYjX6qeKRbf8R50/J8iUYekdGB6aY2Vm8OkQRJJGbJFoB3cl/WnRJcHwfLZ9OCW OzbtYIl6WX3ocn4hHFhSKs5t8JipY7ViEYErbfFmB3Nd4exsa7ecDqVE2KjzpYBF+LMVhV AgtiUfp/Jp/v1Is1zs5sWye6xlWnW2jb3Y3elh4erMKmkfKwXiPpNSw+F6lFk4TLdjMDr6 /nj5yE24IC0WI6zp2KsrmtspGtUDADTBZu1N8Wydue4p6VwZ0/ueLENHlbtWw6HNJ/AZKw +NN4W04OlyUVqwtP4cgcD1SmJubQKFO00nPBRqhDpg6C+d9g61PhqfTMyP6X0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668101434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FZqZxMXk/ljNjcwAqG5v8fa+xC0HuS6aNMCFUFDT5Ec=; b=mc3sUg6/QqyJ/+nE36GeA3gaCtd9Dz68Lizm/+VayW82wPCgwfQgfl68x5qTzG/XZPojuj 6pyfLmR9KS1M9FNDFOPw2Q5xeeJuOVTBpNAsXhgBgkQhB4YLTqJkwiY07JHO9SDRtsn6Je HiWTdiWc7v8SGImLaSvWarA705bLLDr1joQDsw1NJ7Hi2r9UnXVktdzCyUj2HblMSARciN FK1lKZq23+KzrzBJLjhnR5Wn5yk+iNHBzY4AvOHEG/6rP08cga5P+/TVVGf5YnP0x+SZbI KSJg5RTu97DCoNs5Hv3AsxZJSJYt3ZRc5kp9qJSPV3R5xhjRpy9hmNTLQWfdJg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668101434; a=rsa-sha256; cv=none; b=mdnCbdowdpYHGZxtUMYg3570DIu+vxqn6aoeWAGu5cRrXXoE4P4pqCY/a9AtxfzmF2kGuo hn43m4FbMwD0X0mkjsoHTl2jODYqHtbhg5QtgF7NDhNxJCglnrA4QWt2Xq1hvj7c/qP/5e e3wh0twIVV1ZVtCWFk3DPl51n1tV9p9AbPmzINCzlGGgZDPgU1LEOhca6xKrjmxz0U2zsx uFCefqXSdexU+0e1LA++nRB+YY+TpPnHNB03y8b8/BdB+9GVzXqCEUdaaFkGQXayBAeRHh KbJvTsa6tsB4dCs8OH6DTF0OMNOWZrF5Sqpl77PD1uqvtHAMa0eWB1MpDKN/6g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N7TPj759bz18T7; Thu, 10 Nov 2022 17:30:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AAHUXAb053918; Thu, 10 Nov 2022 17:30:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AAHUX36053904; Thu, 10 Nov 2022 17:30:33 GMT (envelope-from git) Date: Thu, 10 Nov 2022 17:30:33 GMT Message-Id: <202211101730.2AAHUX36053904@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: f9b1c96e30cd - stable/13 - getsockopt.2: Clarify the SO_REUSEPORT_LB text a bit List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: f9b1c96e30cdc2d921af2a6cd67c9b569fe9f3e6 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f9b1c96e30cdc2d921af2a6cd67c9b569fe9f3e6 commit f9b1c96e30cdc2d921af2a6cd67c9b569fe9f3e6 Author: Mark Johnston AuthorDate: 2022-11-02 17:01:59 +0000 Commit: Mark Johnston CommitDate: 2022-11-10 17:02:47 +0000 getsockopt.2: Clarify the SO_REUSEPORT_LB text a bit Refer to sockets rather than processes, since one can have multiple sockets in a load-balancing group within the same process. MFC after: 1 week Sponsored by: Modirum MDPay Sponsored by: Klara, Inc. (cherry picked from commit d0f8e31761b7de6010e8b3ed49a1a5f9fc5726f7) --- lib/libc/sys/getsockopt.2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2 index 3ff971a0e5db..c44c32ed2579 100644 --- a/lib/libc/sys/getsockopt.2 +++ b/lib/libc/sys/getsockopt.2 @@ -214,14 +214,14 @@ This option permits multiple instances of a program to each receive UDP/IP multicast or broadcast datagrams destined for the bound port. .Pp .Dv SO_REUSEPORT_LB -allows completely duplicate bindings by multiple processes +allows completely duplicate bindings by multiple sockets if they all set .Dv SO_REUSEPORT_LB before binding the port. -Incoming TCP and UDP connections are distributed among the sharing -processes based on a hash function of local port number, foreign IP +Incoming TCP and UDP connections are distributed among the participating +listening sockets based on a hash function of local port number, and foreign IP address and port number. -A maximum of 256 processes can share one socket. +A maximum of 256 sockets can be bound to the same load-balancing group. .Pp .Dv SO_KEEPALIVE enables the