Print this page
5295 remove maxburst logic from TCP's send algorithm Reviewed by: Dan McDonald <danmcd@omniti.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 + * Copyright (c) 2013, 2014 by Delphix. All rights reserved.
  26   26   */
  27   27  
  28   28  #ifndef _INET_TCP_IMPL_H
  29   29  #define _INET_TCP_IMPL_H
  30   30  
  31   31  /*
  32   32   * TCP implementation private declarations.  These interfaces are
  33   33   * used to build the IP module and are not meant to be accessed
  34   34   * by any modules except IP itself.  They are undocumented and are
  35   35   * subject to change without notice.
↓ open down ↓ 397 lines elided ↑ open up ↑
 433  433   * DISP_ADDR_AND_PORT means that the returned string also contains the
 434  434   * remote and local IP address.
 435  435   */
 436  436  #define DISP_PORT_ONLY          1
 437  437  #define DISP_ADDR_AND_PORT      2
 438  438  
 439  439  #define IP_ADDR_CACHE_SIZE      2048
 440  440  #define IP_ADDR_CACHE_HASH(faddr)                                       \
 441  441          (ntohl(faddr) & (IP_ADDR_CACHE_SIZE -1))
 442  442  
 443      -/* TCP cwnd burst factor. */
 444      -#define TCP_CWND_INFINITE       65535
 445      -#define TCP_CWND_SS             3
 446      -#define TCP_CWND_NORMAL         5
 447      -
 448  443  /*
 449  444   * TCP reassembly macros.  We hide starting and ending sequence numbers in
 450  445   * b_next and b_prev of messages on the reassembly queue.  The messages are
 451  446   * chained using b_cont.  These macros are used in tcp_reass() so we don't
 452  447   * have to see the ugly casts and assignments.
 453  448   */
 454  449  #define TCP_REASS_SEQ(mp)               ((uint32_t)(uintptr_t)((mp)->b_next))
 455  450  #define TCP_REASS_SET_SEQ(mp, u)        ((mp)->b_next = \
 456  451                                          (mblk_t *)(uintptr_t)(u))
 457  452  #define TCP_REASS_END(mp)               ((uint32_t)(uintptr_t)((mp)->b_prev))
↓ open down ↓ 288 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX