Changeset View
Changeset View
Standalone View
Standalone View
tcp_ratelimit.h
Context not available. | |||||
#define RS_PACING_SUB_OK 0x0010 /* If a rate can't be found get the | #define RS_PACING_SUB_OK 0x0010 /* If a rate can't be found get the | ||||
* next best rate (highest or lowest). */ | * next best rate (highest or lowest). */ | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#ifndef ETHERNET_SEGMENT_SIZE | |||||
#define ETHERNET_SEGMENT_SIZE 1514 | |||||
#endif | |||||
#ifdef RATELIMIT | #ifdef RATELIMIT | ||||
#define DETAILED_RATELIMIT_SYSCTL 1 /* | #define DETAILED_RATELIMIT_SYSCTL 1 /* | ||||
* Undefine this if you don't want | * Undefine this if you don't want | ||||
Context not available. | |||||
{ | { | ||||
return; | return; | ||||
} | } | ||||
#endif | #endif | ||||
/* | |||||
* Given a b/w and a segsiz, and optional hardware | |||||
* rate limit, return the ideal size to burst | |||||
* out at once. Note the parameter can_use_1mss | |||||
* dictates if the transport will tolerate a 1mss | |||||
* limit, if not it will bottom out at 2mss (think | |||||
* delayed ack). | |||||
*/ | |||||
uint32_t | |||||
tcp_get_pacing_mss(uint64_t bw, uint32_t segsiz, int can_use_1mss, | |||||
const struct tcp_hwrate_limit_table *te); | |||||
#endif | #endif | ||||
#endif | #endif | ||||
Context not available. |