Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_lro.h
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | struct lro_entry { | ||||
uint32_t tcp_tot_p_len; /* TCP payload length of chain */ | uint32_t tcp_tot_p_len; /* TCP payload length of chain */ | ||||
uint16_t window; | uint16_t window; | ||||
uint16_t timestamp; /* flag, not a TCP hdr field. */ | uint16_t timestamp; /* flag, not a TCP hdr field. */ | ||||
uint16_t need_wakeup; | uint16_t need_wakeup; | ||||
uint16_t mbuf_cnt; /* Count of mbufs collected see note */ | uint16_t mbuf_cnt; /* Count of mbufs collected see note */ | ||||
uint16_t mbuf_appended; | uint16_t mbuf_appended; | ||||
struct timeval mtime; | struct timeval mtime; | ||||
}; | }; | ||||
/* | /* | ||||
* Note: The mbuf_cnt field tracks our number of mbufs added to the m_next | * Note: The mbuf_cnt field tracks our number of mbufs added to the m_next | ||||
* list. Each mbuf counted can have data and of course it will | * list. Each mbuf counted can have data and of course it will | ||||
* have an ack as well (by defintion any inbound tcp segment will | * have an ack as well (by defintion any inbound tcp segment will | ||||
* have an ack value. We use this count to tell us how many ACK's | * have an ack value. We use this count to tell us how many ACK's | ||||
* are present for our ack-count threshold. If we exceed that or | * are present for our ack-count threshold. If we exceed that or | ||||
* the data threshold we will wake up the endpoint. | * the data threshold we will wake up the endpoint. | ||||
*/ | */ | ||||
LIST_HEAD(lro_head, lro_entry); | LIST_HEAD(lro_head, lro_entry); | ||||
#define le_ip4 leip.ip4 | #define le_ip4 leip.ip4 | ||||
#define le_ip6 leip.ip6 | #define le_ip6 leip.ip6 | ||||
#define source_ip4 lesource.s_ip4 | #define source_ip4 lesource.s_ip4 | ||||
#define dest_ip4 ledest.d_ip4 | #define dest_ip4 ledest.d_ip4 | ||||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |