32#define HPTS_TICKS_PER_SLOT 10
33#define HPTS_MS_TO_SLOTS(x) ((x * 100) + 1)
34#define HPTS_USEC_TO_SLOTS(x) ((x+9) /10)
35#define HPTS_USEC_IN_SEC 1000000
36#define HPTS_MSEC_IN_SEC 1000
37#define HPTS_USEC_IN_MSEC 1000
62#define PACE_TMR_DELACK 0x01
63#define PACE_TMR_RACK 0x02
64#define PACE_TMR_TLP 0x04
65#define PACE_TMR_RXT 0x08
66#define PACE_TMR_PERSIT 0x10
67#define PACE_TMR_KEEP 0x20
68#define PACE_PKT_OUTPUT 0x40
69#define PACE_TMR_MASK (PACE_TMR_KEEP|PACE_TMR_PERSIT|PACE_TMR_RXT|PACE_TMR_TLP|PACE_TMR_RACK|PACE_TMR_DELACK)
71#define DEFAULT_CONNECTION_THESHOLD 100
85#define LOWEST_SLEEP_ALLOWED 50
86#define DEFAULT_MIN_SLEEP 250
92#define DYNAMIC_MIN_SLEEP DEFAULT_MIN_SLEEP
93#define DYNAMIC_MAX_SLEEP 100000
95#define OLDEST_THRESHOLD 1200
97#define TICKS_INDICATE_MORE_SLEEP 100
98#define TICKS_INDICATE_LESS_SLEEP 1000
146#define tcp_hpts_insert(inp, slot) \
147 tcp_hpts_insert_diag((inp), (slot), __LINE__, NULL)
150#define tcp_set_hpts(a) __tcp_set_hpts(a, __LINE__)
184static __inline uint64_t
static __inline uint32_t tcp_tv_to_mssectick(const struct timeval *sv)
int32_t tcp_min_hptsi_time
static __inline uint64_t tcp_tv_to_lusectick(const struct timeval *sv)
bool tcp_in_hpts(struct inpcb *)
#define HPTS_TICKS_PER_SLOT
static __inline uint32_t tcp_tv_to_usectick(const struct timeval *sv)
void __tcp_set_hpts(struct inpcb *inp, int32_t line)
uint16_t hpts_random_cpu(struct inpcb *inp)
void tcp_set_inp_to_drop(struct inpcb *inp, uint16_t reason)
static __inline uint32_t tcp_gethptstick(struct timeval *sv)
static __inline uint32_t tcp_get_usecs(struct timeval *tv)
#define HPTS_USEC_IN_MSEC
uint32_t tcp_hpts_insert_diag(struct inpcb *inp, uint32_t slot, int32_t line, struct hpts_diag *diag)
void tcp_hpts_remove(struct inpcb *)
static __inline uint32_t tcp_tv_to_hptstick(const struct timeval *sv)