diff options
author | bp <bp@FreeBSD.org> | 2002-09-18 07:38:10 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 2002-09-18 07:38:10 +0000 |
commit | 549a16a759511d5c6bcff7ab98c0a91f7810dfc8 (patch) | |
tree | 4dcea3a71c3340936664264d8fc34728040f43f3 /sys/netsmb/smb_trantcp.h | |
parent | c30c4f6198157709ed26516fd8d8a998c54c3627 (diff) | |
download | FreeBSD-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.h | 12 |
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; |