Lines Matching refs:th
42 struct tcphdr *th = tcp_hdr(skb);
48 th->check = 0;
61 struct tcphdr *th;
71 th = tcp_hdr(skb);
72 thlen = th->doff * 4;
73 if (thlen < sizeof(*th))
117 th = tcp_hdr(skb);
118 seq = ntohl(th->seq);
123 newcheck = ~csum_fold(csum_add(csum_unfold(th->check), delta));
126 th->fin = th->psh = 0;
127 th->check = newcheck;
130 gso_reset_checksum(skb, ~th->check);
132 th->check = gso_make_checksum(skb, ~th->check);
141 th = tcp_hdr(skb);
143 th->seq = htonl(seq);
144 th->cwr = 0;
172 th->check = ~csum_fold(csum_add(csum_unfold(th->check), delta));
174 gso_reset_checksum(skb, ~th->check);
176 th->check = gso_make_checksum(skb, ~th->check);
185 struct tcphdr *th;
197 hlen = off + sizeof(*th);
198 th = skb_gro_header(skb, hlen, off);
199 if (unlikely(!th))
202 thlen = th->doff * 4;
203 if (thlen < sizeof(*th))
208 th = skb_gro_header_slow(skb, hlen, off);
209 if (unlikely(!th))
216 flags = tcp_flag_word(th);
224 if (*(u32 *)&th->source ^ *(u32 *)&th2->source) {
240 flush |= (__force int)(th->ack_seq ^ th2->ack_seq);
241 for (i = sizeof(*th); i < thlen; i += 4)
242 flush |= *(u32 *)((u8 *)th + i) ^
267 flush |= (ntohl(th2->seq) + skb_gro_len(p)) ^ ntohl(th->seq);
301 struct tcphdr *th = tcp_hdr(skb);
307 skb->csum_start = (unsigned char *)th - skb->head;
314 if (th->cwr)
336 struct tcphdr *th = tcp_hdr(skb);
338 th->check = ~tcp_v4_check(skb->len - thoff, iph->saddr,