Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_lro.h
Show First 20 Lines • Show All 134 Lines • ▼ Show 20 Lines | struct lro_entry { | ||||
uint32_t next_seq; /* tcp_seq */ | uint32_t next_seq; /* tcp_seq */ | ||||
uint32_t ack_seq; /* tcp_seq */ | uint32_t ack_seq; /* tcp_seq */ | ||||
uint32_t tsval; | uint32_t tsval; | ||||
uint32_t tsecr; | uint32_t tsecr; | ||||
uint16_t compressed; | uint16_t compressed; | ||||
uint16_t uncompressed; | uint16_t uncompressed; | ||||
uint16_t window; | uint16_t window; | ||||
uint16_t timestamp; /* flag, not a TCP hdr field. */ | uint16_t timestamp; /* flag, not a TCP hdr field. */ | ||||
sbintime_t alloc_time; /* time when entry was allocated */ | struct bintime alloc_time; /* time when entry was allocated */ | ||||
}; | }; | ||||
LIST_HEAD(lro_head, lro_entry); | LIST_HEAD(lro_head, lro_entry); | ||||
struct lro_mbuf_sort { | struct lro_mbuf_sort { | ||||
uint64_t seq; | uint64_t seq; | ||||
struct mbuf *mb; | struct mbuf *mb; | ||||
}; | }; | ||||
/* NB: This is part of driver structs. */ | /* NB: This is part of driver structs. */ | ||||
struct lro_ctrl { | struct lro_ctrl { | ||||
struct ifnet *ifp; | struct ifnet *ifp; | ||||
struct lro_mbuf_sort *lro_mbuf_data; | struct lro_mbuf_sort *lro_mbuf_data; | ||||
sbintime_t lro_last_queue_time; /* last time data was queued */ | struct bintime lro_last_queue_time; /* last time data was queued */ | ||||
uint64_t lro_queued; | uint64_t lro_queued; | ||||
uint64_t lro_flushed; | uint64_t lro_flushed; | ||||
uint64_t lro_bad_csum; | uint64_t lro_bad_csum; | ||||
unsigned lro_cnt; | unsigned lro_cnt; | ||||
unsigned lro_mbuf_count; | unsigned lro_mbuf_count; | ||||
unsigned lro_mbuf_max; | unsigned lro_mbuf_max; | ||||
unsigned short lro_ackcnt_lim; /* max # of aggregated ACKs */ | unsigned short lro_ackcnt_lim; /* max # of aggregated ACKs */ | ||||
unsigned lro_length_lim; /* max len of aggregated data */ | unsigned lro_length_lim; /* max len of aggregated data */ | ||||
▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines |