Lines Matching refs:th
40 struct tcphdr *th = tcp_hdr(skb);
46 th->check = 0;
59 struct tcphdr *th;
69 th = tcp_hdr(skb);
70 thlen = th->doff * 4;
71 if (thlen < sizeof(*th))
115 th = tcp_hdr(skb);
116 seq = ntohl(th->seq);
121 newcheck = ~csum_fold((__force __wsum)((__force u32)th->check +
125 th->fin = th->psh = 0;
126 th->check = newcheck;
129 gso_reset_checksum(skb, ~th->check);
131 th->check = gso_make_checksum(skb, ~th->check);
140 th = tcp_hdr(skb);
142 th->seq = htonl(seq);
143 th->cwr = 0;
170 th->check = ~csum_fold((__force __wsum)((__force u32)th->check +
173 gso_reset_checksum(skb, ~th->check);
175 th->check = gso_make_checksum(skb, ~th->check);
184 struct tcphdr *th;
196 hlen = off + sizeof(*th);
197 th = skb_gro_header_fast(skb, off);
199 th = skb_gro_header_slow(skb, hlen, off);
200 if (unlikely(!th))
204 thlen = th->doff * 4;
205 if (thlen < sizeof(*th))
210 th = skb_gro_header_slow(skb, hlen, off);
211 if (unlikely(!th))
218 flags = tcp_flag_word(th);
226 if (*(u32 *)&th->source ^ *(u32 *)&th2->source) {
242 flush |= (__force int)(th->ack_seq ^ th2->ack_seq);
243 for (i = sizeof(*th); i < thlen; i += 4)
244 flush |= *(u32 *)((u8 *)th + i) ^
261 flush |= (ntohl(th2->seq) + skb_gro_len(p)) ^ ntohl(th->seq);
290 struct tcphdr *th = tcp_hdr(skb);
292 skb->csum_start = (unsigned char *)th - skb->head;
298 if (th->cwr)
325 struct tcphdr *th = tcp_hdr(skb);
327 th->check = ~tcp_v4_check(skb->len - thoff, iph->saddr,