Print this page
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/ip/ipclassifier.c
          +++ new/usr/src/uts/common/inet/ip/ipclassifier.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
       23 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  23   24   */
  24   25  
  25   26  /*
  26   27   * IP PACKET CLASSIFIER
  27   28   *
  28   29   * The IP packet classifier provides mapping between IP packets and persistent
  29   30   * connection state for connection-oriented protocols. It also provides
  30   31   * interface for managing connection states.
  31   32   *
  32   33   * The connection state is kept in conn_t data structure and contains, among
↓ open down ↓ 236 lines elided ↑ open up ↑
 269  270  #include <inet/tcp.h>
 270  271  #include <inet/ipsec_impl.h>
 271  272  
 272  273  #include <sys/tsol/tnet.h>
 273  274  #include <sys/sockio.h>
 274  275  
 275  276  /* Old value for compatibility. Setable in /etc/system */
 276  277  uint_t tcp_conn_hash_size = 0;
 277  278  
 278  279  /* New value. Zero means choose automatically.  Setable in /etc/system */
 279      -uint_t ipcl_conn_hash_size = 0;
      280 +volatile uint_t ipcl_conn_hash_size = 0;
 280  281  uint_t ipcl_conn_hash_memfactor = 8192;
 281  282  uint_t ipcl_conn_hash_maxsize = 82500;
 282  283  
 283  284  /* bind/udp fanout table size */
 284  285  uint_t ipcl_bind_fanout_size = 512;
 285  286  uint_t ipcl_udp_fanout_size = 16384;
 286  287  
 287  288  /* Raw socket fanout size.  Must be a power of 2. */
 288  289  uint_t ipcl_raw_fanout_size = 256;
 289  290  
↓ open down ↓ 2435 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX