From nobody Wed Nov 02 17:47:10 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 4N2Z8Z44xVz4gVRT; Wed, 2 Nov 2022 17:47:10 +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 4N2Z8Z3YVbz41FJ; Wed, 2 Nov 2022 17:47:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667411230; 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=xn8zi6pHEhctXQuo0zKV1aq5r4tz88iNh0vy8BbABkA=; b=YoKtiUCLXhL7vOOcgC4xSdx8oCO9WZ6Kndi/tnfIc81d+U8dbEdwg3asGGEciyVHrXDIBy NOqS36qrmmjHMAV4XD+s39MtBz6F1nzPxAwZdhYJ8s5fWHQDV3BK3AI9MNjTx+jLTp+Vsr fOh1M+6w1MT+7X06YW+fCr77B+gocXo9QY5CZQT1yDJR6/I358sdVqdTzk/PqIVBJ4xyYX Kl36Ou9A7/A6KMEmBBtcXFuZLdOAGRRGeYRevvGQeFSv+B345WkZO3AhqU++MmFYaDingC hhWyWAYFy5EGvkN2HhZL9HNs971xnF1MoQnzpCZ8zpIpsrJj12GBfuulYv5Kdw== 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 4N2Z8Z2g5Cz14dQ; Wed, 2 Nov 2022 17:47:10 +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 2A2HlAvp022550; Wed, 2 Nov 2022 17:47:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2A2HlAnN022549; Wed, 2 Nov 2022 17:47:10 GMT (envelope-from git) Date: Wed, 2 Nov 2022 17:47:10 GMT Message-Id: <202211021747.2A2HlAnN022549@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: d0f8e31761b7 - main - 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/main X-Git-Reftype: branch X-Git-Commit: d0f8e31761b7de6010e8b3ed49a1a5f9fc5726f7 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667411230; 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=xn8zi6pHEhctXQuo0zKV1aq5r4tz88iNh0vy8BbABkA=; b=MPSsnCKQcsIRhLHslFiB+dOrF506wJiPXHyqhnoJWJltBcJ7YQs2u7PqD8iE8lsUN1WM3J e5+Agkn3nU/XWePkODgtFzGMTyEhqiitNGgbI9qEw8f7i5AJjrLLG6QJ3wBotxjktqEEl8 lFjhVid1HVmWgDph4f0H6YfDVKW8BtH8OfW0AYE2QBycuoJQjH72EeiDQrpo5rzKqzya2u CD87Aemfdoc6L6OItqODANFz6+AVRq5HdehS2kd2Zzx4wTkNJfqKn2tcp1em6mve8nwLU8 QlbAbHqcNdLj0vDQ4l4GOfeJywCfGB5HKltezAgLI/Aoxq120vAtqZ+Ia5xv0g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667411230; a=rsa-sha256; cv=none; b=x36pCnDyciLfltrdRl/PeScpwgD5aBZ2Se6Qm7P+/9JoUWh/jtJLxTh6QKIaGvw4uoSCpJ zKKP/b0OV0S4uJPs1XqQAR/YRuMbKRHXnTfBiUyzB+SX8JJ+PLSUoQ+aPfXz3r0sl/wGHF PPX+jKFFHzG1luRmtrxZUCo8bLdCm3wpPGj8qE2cGqlQT/JkBC8pngb4hMqQ7MdNYhmqxn 6BznTrxUP+CY6oBwIi2m98pNiUwrDAb5m0PjUXoyqya35eJPzyVAbL7Jtzq81eegAfr3Fj rp7WmTAXYTz5RSdpyWxpPOvqOWlTuzu0iVduze0t0v+0Gja9wrUDYbU75djBQA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d0f8e31761b7de6010e8b3ed49a1a5f9fc5726f7 commit d0f8e31761b7de6010e8b3ed49a1a5f9fc5726f7 Author: Mark Johnston AuthorDate: 2022-11-02 17:01:59 +0000 Commit: Mark Johnston CommitDate: 2022-11-02 17:46:24 +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. --- 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