Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_lro.h
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | struct tcp_ackent { | ||||
uint8_t ack_val_set; /* Classification of ack used by the stack */ | uint8_t ack_val_set; /* Classification of ack used by the stack */ | ||||
uint8_t pad[2]; /* To 32 byte boundary */ | uint8_t pad[2]; /* To 32 byte boundary */ | ||||
}; | }; | ||||
/* We use two M_PROTO on the mbuf */ | /* We use two M_PROTO on the mbuf */ | ||||
#define M_ACKCMP M_PROTO4 /* Indicates LRO is sending in a Ack-compression mbuf */ | #define M_ACKCMP M_PROTO4 /* Indicates LRO is sending in a Ack-compression mbuf */ | ||||
#define M_LRO_EHDRSTRP M_PROTO6 /* Indicates that LRO has stripped the etherenet header */ | #define M_LRO_EHDRSTRP M_PROTO6 /* Indicates that LRO has stripped the etherenet header */ | ||||
#define lro_tcp_d_len PH_loc.sixteen[0] /* inbound during LRO (no reassembly) */ | |||||
#define lro_tcp_d_csum PH_loc.sixteen[1] /* inbound during LRO (no reassembly) */ | |||||
#define lro_tcp_h_off PH_loc.sixteen[2] /* inbound during LRO (no reassembly) */ | |||||
#define lro_etype PH_loc.sixteen[3] /* inbound during LRO (no reassembly) */ | |||||
#define TCP_LRO_LENGTH_MAX (65535 - 255) /* safe value with room for outer headers */ | #define TCP_LRO_LENGTH_MAX (65535 - 255) /* safe value with room for outer headers */ | ||||
#define TCP_LRO_ACKCNT_MAX 65535 /* unlimited */ | #define TCP_LRO_ACKCNT_MAX 65535 /* unlimited */ | ||||
int tcp_lro_init(struct lro_ctrl *); | int tcp_lro_init(struct lro_ctrl *); | ||||
int tcp_lro_init_args(struct lro_ctrl *, struct ifnet *, unsigned, unsigned); | int tcp_lro_init_args(struct lro_ctrl *, struct ifnet *, unsigned, unsigned); | ||||
void tcp_lro_free(struct lro_ctrl *); | void tcp_lro_free(struct lro_ctrl *); | ||||
void tcp_lro_flush_inactive(struct lro_ctrl *, const struct timeval *); | void tcp_lro_flush_inactive(struct lro_ctrl *, const struct timeval *); | ||||
void tcp_lro_flush(struct lro_ctrl *, struct lro_entry *); | void tcp_lro_flush(struct lro_ctrl *, struct lro_entry *); | ||||
Show All 11 Lines |