summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/inet/tcp_impl.h
diff options
context:
space:
mode:
authorSebastien Roy <seb@delphix.com>2013-08-01 17:47:00 -0800
committerChristopher Siden <chris.siden@delphix.com>2013-08-01 18:47:01 -0700
commit299625c6492013aa7bd163862f0d181854f69b3c (patch)
treed84f72b9de7c9f9cee6a7bdd01809e048a2e607f /usr/src/uts/common/inet/tcp_impl.h
parenta29160b0f5f650ae34e2273cacdd3eff15c62fba (diff)
downloadillumos-gate-299625c6492013aa7bd163862f0d181854f69b3c.tar.gz
3942 inject sanity into ipadm tcp buffer size properties
3943 _snd_lowat_fraction tcp tunable has no effect Reviewed by: Adam Leventhal <ahl@delphix.com> Reviewed by: Peng Dai <peng.dai@delphix.com> Reviewed by: Dan McDonald <danmcd@nexenta.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Dan McDonald <danmcd@nexenta.com>
Diffstat (limited to 'usr/src/uts/common/inet/tcp_impl.h')
-rw-r--r--usr/src/uts/common/inet/tcp_impl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/usr/src/uts/common/inet/tcp_impl.h b/usr/src/uts/common/inet/tcp_impl.h
index c3274a7491..da0947bccb 100644
--- a/usr/src/uts/common/inet/tcp_impl.h
+++ b/usr/src/uts/common/inet/tcp_impl.h
@@ -22,6 +22,7 @@
* Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2011, Joyent Inc. All rights reserved.
* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
+ * Copyright (c) 2013 by Delphix. All rights reserved.
*/
#ifndef _INET_TCP_IMPL_H
@@ -54,6 +55,17 @@ extern struct qinit tcp_winit;
extern sock_downcalls_t sock_tcp_downcalls;
/*
+ * Note that by default, the _snd_lowat_fraction tunable controls the value of
+ * the transmit low water mark. TCP_XMIT_LOWATER (and thus the _xmit_lowat
+ * property) is only used if the administrator has disabled _snd_lowat_fraction
+ * by setting it to 0.
+ */
+#define TCP_XMIT_LOWATER 4096
+#define TCP_XMIT_HIWATER 49152
+#define TCP_RECV_LOWATER 2048
+#define TCP_RECV_HIWATER 128000
+
+/*
* Bind hash list size and has function. It has to be a power of 2 for
* hashing.
*/