From nobody Fri Dec 1 23:37:56 2023 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 4ShqHS4z1Nz52WRb; Fri, 1 Dec 2023 23:37:56 +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 4ShqHS4N6xz4RCm; Fri, 1 Dec 2023 23:37:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701473876; 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=CmZkc71kmD9XD9DSPBN4idAfzWkQM0FA97o3bqy6ido=; b=ID0/1Y5/TCQBwo+lZ2tcG+xnDD3TsASanv3Hf+brscoojv7byRBDthfT5FbpPtAeiwYo6p ZMsiziazSymFy9ln+YW3emDSyO5r9IIm22A1hD6+ZXz45oQZMaflXyLTZO3gc3lTqFoXTm DdJDndG/+R7712SV5vA2Dgc2kj6LwUzWZRWavkm3mAcsrYAXRykH83rIz25hpsEJaFOERw SnorpNV2+fTXu2RJRTctd16W8dTa5y3XXYcSpP/nRF3AvZIwwFhhp8wSXZ3eJKWvBqVblW ZP7jYNxntZLSAgD26L4hlo99aFvUlgUNbor0wUJ8h/cIMI5IN/lC0TvDNEl1CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701473876; 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=CmZkc71kmD9XD9DSPBN4idAfzWkQM0FA97o3bqy6ido=; b=PQjrI90oZLJQoWf0LEPoiUwnu4S2HzDdMgHd5CUMv4EC68jYUNHJfaRHPozV6J6h5H5gT5 5qg8fnwoQxQSYD4p2fxIOtd71ICdbOrQwsYdDZt2X2Y+GT3KensSAF09/LYElw6o+0Bhz2 eZ5BTE77xhXjVA4A/UuX/vfAv+JLlEKWjr9MwXacAztnKyq7t6IlJiO5utlebDiTX9CWIb jydC8RBKJnLmY3tRcxngFrqym8jSaTyxHBTxlpak4zfCjfvZBPNFBqYWH2a/I32Fn72U1l rXrTQuPRXVkU11tmzLA/LCGJvYkptwld7eHVYvJ1BvB9KV/++iFQ/aa/EjvFSg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701473876; a=rsa-sha256; cv=none; b=hilxng+QlwIoeI3Fp6/W4Jdte2fvoSJOzJds0bv5KkhLWEiz+H1SiXeuPNH4Wcqa8azHFg BEyBP1OTpr+mUvpdwVJRnGyTozla2Vk0IltF64lN/fW8VMfHJdU0rFGiXfV+1fcZ/BRN3V gWP4w5UMon3svm0VE9e6Ru+T51RrV3ZZ86V0pI9HYnOH/3jvHLqdQYrSC5YaUMttM4Lsx4 3aXHVVcfW6zEnArT3W7DWw96lNMm6W1+FvYsXX3HpVEisOpWElAhESOi07Q5tUOLDuk5kN JP7N6+jAOA9dDRVS2DDeAWnz1CDd7RkEsfSwt7TnHRAn43x3Jrb7U6K+azOJ1w== 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 4ShqHS3Ks1ztDn; Fri, 1 Dec 2023 23:37:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3B1Nbujk092079; Fri, 1 Dec 2023 23:37:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B1NbuZg092076; Fri, 1 Dec 2023 23:37:56 GMT (envelope-from git) Date: Fri, 1 Dec 2023 23:37:56 GMT Message-Id: <202312012337.3B1NbuZg092076@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: be7c095ac99a - main - unix/dgram: bump maximum datagram size limit to 8k 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: be7c095ac99ad29fd72b780c7d58949a38656c66 Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=be7c095ac99ad29fd72b780c7d58949a38656c66 commit be7c095ac99ad29fd72b780c7d58949a38656c66 Author: Gleb Smirnoff AuthorDate: 2023-12-01 23:37:29 +0000 Commit: Gleb Smirnoff CommitDate: 2023-12-01 23:37:29 +0000 unix/dgram: bump maximum datagram size limit to 8k This is important for wpa_supplicant operation on a crowded network. Note: we actually need an API to increase maximum datagram size on a socket. Previously SO_SNDBUF magically acted like that, but that was an undocumented "feature". Also move the comment to the proper line. Previously it was the receive buffer that imposed the limit. Now notion of buffer size and maximum datagram are separate. Reviewed by: bz, tuexen, karels Differential Revision: https://reviews.freebsd.org/D42830 PR: 274990 --- sys/kern/uipc_usrreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 069294e1c963..8f5560e0f30b 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -154,8 +154,8 @@ static struct task unp_defer_task; #endif static u_long unpst_sendspace = PIPSIZ; static u_long unpst_recvspace = PIPSIZ; -static u_long unpdg_maxdgram = 2*1024; -static u_long unpdg_recvspace = 16*1024; /* support 8KB syslog msgs */ +static u_long unpdg_maxdgram = 8*1024; /* support 8KB syslog msgs */ +static u_long unpdg_recvspace = 16*1024; static u_long unpsp_sendspace = PIPSIZ; /* really max datagram size */ static u_long unpsp_recvspace = PIPSIZ;