Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys Increase the default size of some receive b...



details:   https://anonhg.NetBSD.org/src/rev/8e127c1fdcc7
branches:  trunk
changeset: 318972:8e127c1fdcc7
user:      roy <roy%NetBSD.org@localhost>
date:      Fri May 11 09:43:59 2018 +0000
description:
Increase the default size of some receive buffers from 8k to 16k.
This mitigates recent reports of socket overflow errors
and fixes PR bin/53247.

diffstat:

 sys/kern/uipc_usrreq.c   |  6 +++---
 sys/net/raw_cb.h         |  4 ++--
 sys/netinet6/in6_proto.c |  6 +++---
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r 4ca3e5d89592 -r 8e127c1fdcc7 sys/kern/uipc_usrreq.c
--- a/sys/kern/uipc_usrreq.c    Fri May 11 07:44:47 2018 +0000
+++ b/sys/kern/uipc_usrreq.c    Fri May 11 09:43:59 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_usrreq.c,v 1.185 2018/05/05 19:58:08 christos Exp $       */
+/*     $NetBSD: uipc_usrreq.c,v 1.186 2018/05/11 09:43:59 roy Exp $    */
 
 /*-
  * Copyright (c) 1998, 2000, 2004, 2008, 2009 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.185 2018/05/05 19:58:08 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_usrreq.c,v 1.186 2018/05/11 09:43:59 roy Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -680,7 +680,7 @@
 u_long unpst_sendspace = PIPSIZ;
 u_long unpst_recvspace = PIPSIZ;
 u_long unpdg_sendspace = 2*1024;       /* really max datagram size */
-u_long unpdg_recvspace = 4*1024;
+u_long unpdg_recvspace = 16*1024;
 
 u_int  unp_rights;                     /* files in flight */
 u_int  unp_rights_ratio = 2;           /* limit, fraction of maxfiles */
diff -r 4ca3e5d89592 -r 8e127c1fdcc7 sys/net/raw_cb.h
--- a/sys/net/raw_cb.h  Fri May 11 07:44:47 2018 +0000
+++ b/sys/net/raw_cb.h  Fri May 11 09:43:59 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: raw_cb.h,v 1.28 2017/09/25 01:56:22 ozaki-r Exp $      */
+/*     $NetBSD: raw_cb.h,v 1.29 2018/05/11 09:43:59 roy Exp $  */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -57,7 +57,7 @@
  * Nominal space allocated to a raw socket.
  */
 #define        RAWSNDQ         8192
-#define        RAWRCVQ         8192
+#define        RAWRCVQ         16384
 
 LIST_HEAD(rawcbhead, rawcb);
 
diff -r 4ca3e5d89592 -r 8e127c1fdcc7 sys/netinet6/in6_proto.c
--- a/sys/netinet6/in6_proto.c  Fri May 11 07:44:47 2018 +0000
+++ b/sys/netinet6/in6_proto.c  Fri May 11 09:43:59 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6_proto.c,v 1.124 2018/05/03 07:13:48 maxv Exp $     */
+/*     $NetBSD: in6_proto.c,v 1.125 2018/05/11 09:43:59 roy Exp $      */
 /*     $KAME: in6_proto.c,v 1.66 2000/10/10 15:35:47 itojun Exp $      */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6_proto.c,v 1.124 2018/05/03 07:13:48 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6_proto.c,v 1.125 2018/05/11 09:43:59 roy Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_gateway.h"
@@ -594,7 +594,7 @@
  * Nominal space allocated to a raw ip socket.
  */
 #define        RIPV6SNDQ       8192
-#define        RIPV6RCVQ       8192
+#define        RIPV6RCVQ       16384
 
 u_long rip6_sendspace = RIPV6SNDQ;
 u_long rip6_recvspace = RIPV6RCVQ;



Home | Main Index | Thread Index | Old Index