usr/src/uts/common/inet/tcp/tcp.c
changeset 13345 20c193a013b8
parent 12881 fb36eaeb6ee0
child 13435 3185061eadee
equal deleted inserted replaced
13344:7691b36f7461 13345:20c193a013b8
    19  * CDDL HEADER END
    19  * CDDL HEADER END
    20  */
    20  */
    21 
    21 
    22 /*
    22 /*
    23  * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
    23  * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
       
    24  * Copyright (c) 2011, Joyent Inc. All rights reserved.
    24  */
    25  */
    25 /* Copyright (c) 1990 Mentat Inc. */
    26 /* Copyright (c) 1990 Mentat Inc. */
    26 
    27 
    27 #include <sys/types.h>
    28 #include <sys/types.h>
    28 #include <sys/stream.h>
    29 #include <sys/stream.h>
   238 #define	TIDUSZ	4096	/* transport interface data unit size */
   239 #define	TIDUSZ	4096	/* transport interface data unit size */
   239 
   240 
   240 /*
   241 /*
   241  * Size of acceptor hash list.  It has to be a power of 2 for hashing.
   242  * Size of acceptor hash list.  It has to be a power of 2 for hashing.
   242  */
   243  */
   243 #define	TCP_ACCEPTOR_FANOUT_SIZE		256
   244 #define	TCP_ACCEPTOR_FANOUT_SIZE		512
   244 
   245 
   245 #ifdef	_ILP32
   246 #ifdef	_ILP32
   246 #define	TCP_ACCEPTOR_HASH(accid)					\
   247 #define	TCP_ACCEPTOR_HASH(accid)					\
   247 		(((uint_t)(accid) >> 8) & (TCP_ACCEPTOR_FANOUT_SIZE - 1))
   248 		(((uint_t)(accid) >> 8) & (TCP_ACCEPTOR_FANOUT_SIZE - 1))
   248 #else
   249 #else