summaryrefslogtreecommitdiffstats
path: root/sys/netsmb/smb_trantcp.h
diff options
context:
space:
mode:
authorbp <bp@FreeBSD.org>2002-09-18 07:38:10 +0000
committerbp <bp@FreeBSD.org>2002-09-18 07:38:10 +0000
commit549a16a759511d5c6bcff7ab98c0a91f7810dfc8 (patch)
tree4dcea3a71c3340936664264d8fc34728040f43f3 /sys/netsmb/smb_trantcp.h
parentc30c4f6198157709ed26516fd8d8a998c54c3627 (diff)
downloadFreeBSD-src-549a16a759511d5c6bcff7ab98c0a91f7810dfc8.zip
FreeBSD-src-549a16a759511d5c6bcff7ab98c0a91f7810dfc8.tar.gz
Increase send/receive queue to accomodate large readx/writex requests.
Receive packets in a small pieces (NB_SORECEIVE_CHUNK), so TCP slowstart will get its ACKs faster. Obtained from: Darwin
Diffstat (limited to 'sys/netsmb/smb_trantcp.h')
-rw-r--r--sys/netsmb/smb_trantcp.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/netsmb/smb_trantcp.h b/sys/netsmb/smb_trantcp.h
index d160fa4..482d77e 100644
--- a/sys/netsmb/smb_trantcp.h
+++ b/sys/netsmb/smb_trantcp.h
@@ -78,8 +78,16 @@ struct nbpcb {
/*
* Nominal space allocated per a NETBIOS socket.
*/
-#define NB_SNDQ (10 * 1024)
-#define NB_RCVQ (20 * 1024)
+#define NB_SNDQ (64 * 1024)
+#define NB_RCVQ (64 * 1024)
+
+/*
+ * TCP slowstart presents a problem in conjunction with large
+ * reads. To ensure a steady stream of ACKs while reading using
+ * large transaction sizes, we call soreceive() with a smaller
+ * buffer size. See nbssn_recv().
+ */
+#define NB_SORECEIVE_CHUNK (8 * 1024)
extern struct smb_tran_desc smb_tran_nbtcp_desc;
OpenPOWER on IntegriCloud