From nobody Fri Jun 03 19:56:32 2022 X-Original-To: dev-commits-src-main@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 863481BD6B89; Fri, 3 Jun 2022 19:56: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 4LFDD20K6zz4r5Z; Fri, 3 Jun 2022 19:56:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654286194; 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=LvQEBdkbaGBxFemV/akElgMMg0JnSfwc1n10qaU5CWk=; b=vFGJSMsLoxmxb7LGfq0iPxaiNZJhu4tuCUh19f8OzSqb5M5YoiORcM7+gSrcveLlz+/pCg vvu5XmKQATSYe3VAwTjcofMN5/w37Mx3rLQesdPZ2J/j9nLa0/N4IivI2X/eDwrdB0+GGE +91XOKDV1P6vyh5Yoe64/ovUe4kxvFIot82LXSsULcdkIHlNewz58ao3/7TQrUR37+fnxC I6wc9XyLLahqK7cbBVPdUNXxJu1pJQPLPqWyrbJhhID9E8Dzg6NoXiPBNCEx5l/S9baY8s T5vFgtKNieYQUdSkGUIJW+FKXJa+bKPso0540ESVuBhkPX/A1hQMDpn2iZldzQ== 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 69B1F7BAB; Fri, 3 Jun 2022 19:56:32 +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 253JuW6L080719; Fri, 3 Jun 2022 19:56:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 253JuWpm080718; Fri, 3 Jun 2022 19:56:32 GMT (envelope-from git) Date: Fri, 3 Jun 2022 19:56:32 GMT Message-Id: <202206031956.253JuWpm080718@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: 2573e6ced996 - main - unix/dgram: rename unpdg_sendspace to unpdg_maxdgram List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2573e6ced99616f2edccf97fb0f9283a84148246 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654286194; 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=LvQEBdkbaGBxFemV/akElgMMg0JnSfwc1n10qaU5CWk=; b=UYd9IThpWb6kwFD3HaQ7QWvqsC6AD+8QiwyYRj3NLnz5meuYhLtmkU2YPsP++ZNDZsNv0i /mcqbp5gox3rQ/BJoHTOCqbaopVKZOLi7ze8sr6RvOvpw/1VdTfOvCfQSyncp7IX4Bo/jt 8vS/AFo1znEzqV1aATty5GTPx4GHox6YAO9CrG2kARXRHKGHhLAoTcIAxGClZ567chqwZX 3nNYCWjJRNwRczAbusUx/3PUei+SK4YG+znspA4hYUVmduOOrZycod6jllTVXgsPt83FWJ WgJYV1Xvmh21YPFbN0aBLv/21S6nVhCX9JI3+Mmxdce2NVP+hVy14uWnW8bm3g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654286194; a=rsa-sha256; cv=none; b=wI0f+62BSFzS2eqipOuZ9kLoHRFBvxlxUBMoEhev5ybG/AG4EcZ1afbK1xIyNqqtfASUJ5 NRmIGgSXGa24uKaekUmRFfgVdtZjYHB2MeY0nQvOQU2AtT1U+hYTfQxGflY/u/f1lTGuFU UULnaP/VQdcQ/SklpREb+qBBrZtg2vlReoGKukna+wj1fK0R4OWYO/hk4QOdwtYKvImfZs kqWi5/EuiY3ecii+IaT0gd6XBTYkYydjkn1NR02EfgSy3kHXYKToSbbiFOeZImocAm4tzL VG+cBeOH4CBUWBCr0Zy9Q3sHbJDG8X6EZi+aBGTy5dgD6tFlP2t70E8prxhr+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=2573e6ced99616f2edccf97fb0f9283a84148246 commit 2573e6ced99616f2edccf97fb0f9283a84148246 Author: Gleb Smirnoff AuthorDate: 2022-06-03 19:55:44 +0000 Commit: Gleb Smirnoff CommitDate: 2022-06-03 19:55:44 +0000 unix/dgram: rename unpdg_sendspace to unpdg_maxdgram Matches the meaning of the variable and sysctl node name. --- sys/kern/uipc_usrreq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 0796c383134c..968631999d2c 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -156,7 +156,7 @@ static struct task unp_defer_task; #endif static u_long unpst_sendspace = PIPSIZ; static u_long unpst_recvspace = PIPSIZ; -static u_long unpdg_sendspace = 2*1024; /* really max datagram size */ +static u_long unpdg_maxdgram = 2*1024; static u_long unpdg_recvspace = 16*1024; /* support 8KB syslog msgs */ static u_long unpsp_sendspace = PIPSIZ; /* really max datagram size */ static u_long unpsp_recvspace = PIPSIZ; @@ -178,7 +178,7 @@ SYSCTL_ULONG(_net_local_stream, OID_AUTO, sendspace, CTLFLAG_RW, SYSCTL_ULONG(_net_local_stream, OID_AUTO, recvspace, CTLFLAG_RW, &unpst_recvspace, 0, "Default stream receive space."); SYSCTL_ULONG(_net_local_dgram, OID_AUTO, maxdgram, CTLFLAG_RW, - &unpdg_sendspace, 0, "Default datagram send space."); + &unpdg_maxdgram, 0, "Maximum datagram size."); SYSCTL_ULONG(_net_local_dgram, OID_AUTO, recvspace, CTLFLAG_RW, &unpdg_recvspace, 0, "Default datagram receive space."); SYSCTL_ULONG(_net_local_seqpacket, OID_AUTO, maxseqpacket, CTLFLAG_RW, @@ -528,7 +528,7 @@ uipc_attach(struct socket *so, int proto, struct thread *td) break; case SOCK_DGRAM: - sendspace = unpdg_sendspace; + sendspace = unpdg_maxdgram; recvspace = unpdg_recvspace; break;