From nobody Tue Jan 9 00:30:02 2024 X-Original-To: dev-commits-src-branches@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 4T8Bf31Vvxz55Lyf; Tue, 9 Jan 2024 00:30:03 +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 4T8Bf30ydmz4BnQ; Tue, 9 Jan 2024 00:30:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704760203; 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=QjvL+7JicxroIag1T4qI9giG7LK89c3pRx7377YmfkQ=; b=r7FYDgfIpRL2qp9NIopeomRusaf1goFqQkN7O2ZStDlfxKOWEs0sfY4LMnUh0UA3i16geF yzD+1ljOoRyaI7t+QBPkf74EJI9O4QNMMwvWhekus0PwYj/iWG78QD5Xp7yIry29I/d7kg aX8Sx+rdI1YMJ07d2HaY2lA9lo6UCBR1gQI744GAX4YHHx9hmYqnPA9xqJM8bDsPKNYVO8 i4PHbH7ryex8dgwria4J6n5QlE4UL7liXCYQFgFpmd9rtN7KrmwY7XQ0No6pn/kjnt2qbV WEjKmfkmB8NPEZ7hifANOdCYmv+bUa2p/XYFpohLFeOesJ1voTdBZQ7ExM/kJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704760203; 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=QjvL+7JicxroIag1T4qI9giG7LK89c3pRx7377YmfkQ=; b=FRZY92PZkAYkDtvK3kzRXFhwit7sH5usXBh2ukEQ1L422/N+AH9XB7i5qy3B3ooQlbjRmr cS1HjPBeETllgM/NuGG9rohJLd/BpIrCRslOs+mY0opxDTMZs+tJDo3T/e338/ZUK2/dCI Y0ctPIuVA4orB5fZdfwxcQcW79udtRolzl0hcd9Ff30YT8f6xyZxeFGq7StBVCA7Lpm1RZ HBaNTTAc6xbe2czCcya5hMxe/2vT5beQ0G92wxX3N2sBovjjTIiNyos8PQKpf09rpqNxVz uZXJCzhyZrpXOsFCY6+ohzG/Z7UIUVgypyvDBSt6AKH42fAiu+aen4yCuADayQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704760203; a=rsa-sha256; cv=none; b=f/zdEtAW0RoMVk2MCSIv/s/1tlEHH4L6PiNCUqMcrYQM8CuYLRh6ibyoKlHJw3/RpRlj9T 9yzf76ML+Lq70Jjb0uzkRMRYEWry1xRcAegbcIatHEsGugXDvnm07DhtzduxPH59WlnPIO 7djWIoL98gTAgobymq6Q8qS1/41+G140nwWoFN+MSEWJvCGe/VDCgwe8pd0Iql2guRm8/Q R6sTLlp59XRKZNEY7c0IDR9uhn4nA9Rg4km7L9t7ltDtyYMumlgoeIpjwGrKg1X4BlTKgt Lq8s2qWZrniaVw4avttwF3GMqOBNXVYlNghtjEvQ5LoaErrxnQHFLK7w8y4i4Q== 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 4T8Bf3038lzTcK; Tue, 9 Jan 2024 00:30:03 +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 4090U2Vp013996; Tue, 9 Jan 2024 00:30:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4090U2hx013991; Tue, 9 Jan 2024 00:30:02 GMT (envelope-from git) Date: Tue, 9 Jan 2024 00:30:02 GMT Message-Id: <202401090030.4090U2hx013991@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gleb Smirnoff Subject: git: ac84975e4a1f - stable/14 - unix/dgram: bump maximum datagram size limit to 8k List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: ac84975e4a1f89a608a3c6ba8f8322b19a83421e Auto-Submitted: auto-generated The branch stable/14 has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=ac84975e4a1f89a608a3c6ba8f8322b19a83421e commit ac84975e4a1f89a608a3c6ba8f8322b19a83421e Author: Gleb Smirnoff AuthorDate: 2023-12-01 23:37:29 +0000 Commit: Gleb Smirnoff CommitDate: 2024-01-09 00:26:38 +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 (cherry picked from commit be7c095ac99ad29fd72b780c7d58949a38656c66) --- 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 f12693f3982a..5d39e5ea91c1 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -153,8 +153,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;