Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2024 00:30:02 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: ac84975e4a1f - stable/14 - unix/dgram: bump maximum datagram size limit to 8k
Message-ID:  <202401090030.4090U2hx013991@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=ac84975e4a1f89a608a3c6ba8f8322b19a83421e

commit ac84975e4a1f89a608a3c6ba8f8322b19a83421e
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2023-12-01 23:37:29 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401090030.4090U2hx013991>