Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_lro.c
Show First 20 Lines • Show All 464 Lines • ▼ Show 20 Lines | if (csum_flags & CSUM_IP_CHECKED) { | ||||
} | } | ||||
} | } | ||||
/* Find the TCP header (we assured there are no IP options). */ | /* Find the TCP header (we assured there are no IP options). */ | ||||
*th = (struct tcphdr *)(ip4 + 1); | *th = (struct tcphdr *)(ip4 + 1); | ||||
return (0); | return (0); | ||||
} | } | ||||
#endif | #endif | ||||
#ifdef TCPHPTS | |||||
static void | static void | ||||
tcp_lro_log(struct tcpcb *tp, struct lro_ctrl *lc, | tcp_lro_log(struct tcpcb *tp, struct lro_ctrl *lc, | ||||
struct lro_entry *le, struct mbuf *m, int frm, int32_t tcp_data_len, | struct lro_entry *le, struct mbuf *m, int frm, int32_t tcp_data_len, | ||||
uint32_t th_seq , uint32_t th_ack, uint16_t th_win) | uint32_t th_seq , uint32_t th_ack, uint16_t th_win) | ||||
{ | { | ||||
if (tp->t_logstate != TCP_LOG_STATE_OFF) { | if (tp->t_logstate != TCP_LOG_STATE_OFF) { | ||||
union tcp_log_stackspecific log; | union tcp_log_stackspecific log; | ||||
struct timeval tv; | struct timeval tv; | ||||
Show All 34 Lines | else | ||||
log.u_bbr.inhpts = 0; | log.u_bbr.inhpts = 0; | ||||
TCP_LOG_EVENTP(tp, NULL, | TCP_LOG_EVENTP(tp, NULL, | ||||
&tp->t_inpcb->inp_socket->so_rcv, | &tp->t_inpcb->inp_socket->so_rcv, | ||||
&tp->t_inpcb->inp_socket->so_snd, | &tp->t_inpcb->inp_socket->so_snd, | ||||
TCP_LOG_LRO, 0, | TCP_LOG_LRO, 0, | ||||
0, &log, false, &tv); | 0, &log, false, &tv); | ||||
} | } | ||||
} | } | ||||
#endif | |||||
static void | static void | ||||
tcp_flush_out_le(struct tcpcb *tp, struct lro_ctrl *lc, struct lro_entry *le) | tcp_flush_out_le(struct tcpcb *tp, struct lro_ctrl *lc, struct lro_entry *le) | ||||
{ | { | ||||
if (le->append_cnt > 1) { | if (le->append_cnt > 1) { | ||||
struct tcphdr *th; | struct tcphdr *th; | ||||
uint16_t p_len; | uint16_t p_len; | ||||
▲ Show 20 Lines • Show All 1,572 Lines • Show Last 20 Lines |