Print this page
11553 Want pluggable TCP congestion control algorithms
Portions contributed by: Cody Peter Mello <cody.mello@joyent.com>
Reviewed by: Dan McDonald <danmcd@joyent.com>
Reviewed by: Robert Mustacchi <robert.mustacchi@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/tcp_stack.h
          +++ new/usr/src/uts/common/inet/tcp_stack.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  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  /*
  23   23   * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
       24 + * Copyright (c) 2017 by Delphix. All rights reserved.
  24   25   */
  25   26  
  26   27  #ifndef _INET_TCP_STACK_H
  27   28  #define _INET_TCP_STACK_H
  28   29  
  29   30  #include <sys/netstack.h>
  30   31  #include <inet/ip.h>
  31   32  #include <inet/ipdrop.h>
  32   33  #include <inet/tcp_stats.h>
  33   34  #include <sys/sunddi.h>
↓ open down ↓ 73 lines elided ↑ open up ↑
 107  108          /* Variables for handling kmem reclaim call back. */
 108  109          kmutex_t        tcps_reclaim_lock;
 109  110          boolean_t       tcps_reclaim;
 110  111          timeout_id_t    tcps_reclaim_tid;
 111  112          uint32_t        tcps_reclaim_period;
 112  113  
 113  114          /* Listener connection limit configuration. */
 114  115          kmutex_t        tcps_listener_conf_lock;
 115  116          list_t          tcps_listener_conf;
 116  117  
      118 +        struct cc_algo  *tcps_default_cc_algo;
      119 +
 117  120          /*
 118  121           * Per CPU stats
 119  122           *
 120  123           * tcps_sc: array of pointer to per CPU stats.  The i-th element in the
 121  124           *    array represents the stats of the CPU with cpu_seqid.
 122  125           * tcps_sc_cnt: number of CPU stats in the tcps_sc array.
 123  126           */
 124  127          tcp_stats_cpu_t **tcps_sc;
 125  128          int             tcps_sc_cnt;
 126  129  };
 127  130  
 128  131  typedef struct tcp_stack tcp_stack_t;
 129  132  
 130  133  #endif /* _KERNEL */
 131  134  #ifdef  __cplusplus
 132  135  }
 133  136  #endif
 134  137  
 135  138  #endif  /* _INET_TCP_STACK_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX