Print this page
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>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/tcp_impl.h
          +++ new/usr/src/uts/common/inet/tcp_impl.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23   * Copyright (c) 2011, Joyent Inc. All rights reserved.
  24   24   * Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved.
       25 + * Copyright (c) 2013 by Delphix. All rights reserved.
  25   26   */
  26   27  
  27   28  #ifndef _INET_TCP_IMPL_H
  28   29  #define _INET_TCP_IMPL_H
  29   30  
  30   31  /*
  31   32   * TCP implementation private declarations.  These interfaces are
  32   33   * used to build the IP module and are not meant to be accessed
  33   34   * by any modules except IP itself.  They are undocumented and are
  34   35   * subject to change without notice.
↓ open down ↓ 12 lines elided ↑ open up ↑
  47   48  #include <inet/tunables.h>
  48   49  
  49   50  #define TCP_MOD_ID      5105
  50   51  
  51   52  extern struct qinit     tcp_sock_winit;
  52   53  extern struct qinit     tcp_winit;
  53   54  
  54   55  extern sock_downcalls_t sock_tcp_downcalls;
  55   56  
  56   57  /*
       58 + * Note that by default, the _snd_lowat_fraction tunable controls the value of
       59 + * the transmit low water mark.  TCP_XMIT_LOWATER (and thus the _xmit_lowat
       60 + * property) is only used if the administrator has disabled _snd_lowat_fraction
       61 + * by setting it to 0.
       62 + */
       63 +#define TCP_XMIT_LOWATER        4096
       64 +#define TCP_XMIT_HIWATER        49152
       65 +#define TCP_RECV_LOWATER        2048
       66 +#define TCP_RECV_HIWATER        128000
       67 +
       68 +/*
  57   69   * Bind hash list size and has function.  It has to be a power of 2 for
  58   70   * hashing.
  59   71   */
  60   72  #define TCP_BIND_FANOUT_SIZE    1024
  61   73  #define TCP_BIND_HASH(lport) (ntohs(lport) & (TCP_BIND_FANOUT_SIZE - 1))
  62   74  
  63   75  /*
  64   76   * This implementation follows the 4.3BSD interpretation of the urgent
  65   77   * pointer and not RFC 1122. Switching to RFC 1122 behavior would cause
  66   78   * incompatible changes in protocols like telnet and rlogin.
↓ open down ↓ 667 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX