Print this page
sctp: align to cache line

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/inet/sctp/sctp_impl.h
          +++ new/usr/src/uts/common/inet/sctp/sctp_impl.h
↓ open down ↓ 437 lines elided ↑ open up ↑
 438  438  /*
 439  439   * Listener hash array size and hash function.  The size must be a power
 440  440   * of 2 and lport must be in host byte order.
 441  441   */
 442  442  #define SCTP_LISTEN_FANOUT_SIZE 512
 443  443  #define SCTP_LISTEN_HASH(lport) (((lport) * 31) & (SCTP_LISTEN_FANOUT_SIZE - 1))
 444  444  
 445  445  typedef struct sctp_tf_s {
 446  446          struct sctp_s   *tf_sctp;
 447  447          kmutex_t        tf_lock;
      448 +#define SF_CACHEL_PAD   64
      449 +        uchar_t         tf_pad[SF_CACHEL_PAD - (sizeof (struct sctp_s *) +
      450 +                            sizeof (kmutex_t))];
 448  451  } sctp_tf_t;
 449  452  
 450  453  /* Round up the value to the nearest mss. */
 451  454  #define MSS_ROUNDUP(value, mss)         ((((value) - 1) / (mss) + 1) * (mss))
 452  455  
 453  456  extern sin_t    sctp_sin_null;  /* Zero address for quick clears */
 454  457  extern sin6_t   sctp_sin6_null; /* Zero address for quick clears */
 455  458  
 456  459  #define SCTP_IS_DETACHED(sctp)          ((sctp)->sctp_detached)
 457  460  
↓ open down ↓ 751 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX