Home | History | Annotate | Download | only in cxgb

Lines Matching refs:th

81 lro_match(struct mbuf *m, struct ip *ih, struct tcphdr *th)
86 return (th->th_sport == sth->th_sport &&
87 th->th_dport == sth->th_dport &&
93 lro_lookup(struct lro_state *l, int idx, struct ip *ih, struct tcphdr *th)
101 if (lro_match(s->head, ih, th))
131 can_lro_tcpsegment(struct tcphdr *th)
133 int olen = (th->th_off << 2) - sizeof (*th);
134 u8 control_bits = *((u8 *)th + 13);
140 uint32_t *ptr = (u32 *)(th + 1);
159 struct tcphdr *th = (struct tcphdr *) (ih + 1);
168 s->seq = ntohl(th->th_seq) + ip_len - sizeof(*ih) - (th->th_off << 2);
250 struct tcphdr *th, *nth = (struct tcphdr *)(nih + 1);
265 th = (struct tcphdr *)(mtod(sm, uint8_t *) + IPH_OFFSET + sizeof (struct ip));
268 uint32_t *ptr = (uint32_t *)(th + 1);
278 th->th_ack = nth->th_ack;
279 th->th_win = nth->th_win;
331 struct tcphdr *th;
341 th = (struct tcphdr *)(ih + 1);
344 LRO_SESSION_IDX_HINT_HASH(rss_hash), ih, th);
346 if (__predict_false(!can_lro_tcpsegment(th))) {