Lines Matching +full:4 +full:th
43 struct tcphdr *th = tcp_hdr(skb); in tcp4_gso_segment() local
49 th->check = 0; in tcp4_gso_segment()
62 struct tcphdr *th; in tcp_gso_segment() local
72 th = tcp_hdr(skb); in tcp_gso_segment()
73 thlen = th->doff * 4; in tcp_gso_segment()
74 if (thlen < sizeof(*th)) in tcp_gso_segment()
118 th = tcp_hdr(skb); in tcp_gso_segment()
119 seq = ntohl(th->seq); in tcp_gso_segment()
124 newcheck = ~csum_fold((__force __wsum)((__force u32)th->check + in tcp_gso_segment()
128 th->fin = th->psh = 0; in tcp_gso_segment()
129 th->check = newcheck; in tcp_gso_segment()
132 gso_reset_checksum(skb, ~th->check); in tcp_gso_segment()
134 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment()
143 th = tcp_hdr(skb); in tcp_gso_segment()
145 th->seq = htonl(seq); in tcp_gso_segment()
146 th->cwr = 0; in tcp_gso_segment()
173 th->check = ~csum_fold((__force __wsum)((__force u32)th->check + in tcp_gso_segment()
176 gso_reset_checksum(skb, ~th->check); in tcp_gso_segment()
178 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment()
187 struct tcphdr *th; in tcp_gro_receive() local
199 hlen = off + sizeof(*th); in tcp_gro_receive()
200 th = skb_gro_header_fast(skb, off); in tcp_gro_receive()
202 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
203 if (unlikely(!th)) in tcp_gro_receive()
207 thlen = th->doff * 4; in tcp_gro_receive()
208 if (thlen < sizeof(*th)) in tcp_gro_receive()
213 th = skb_gro_header_slow(skb, hlen, off); in tcp_gro_receive()
214 if (unlikely(!th)) in tcp_gro_receive()
221 flags = tcp_flag_word(th); in tcp_gro_receive()
229 if (*(u32 *)&th->source ^ *(u32 *)&th2->source) { in tcp_gro_receive()
245 flush |= (__force int)(th->ack_seq ^ th2->ack_seq); in tcp_gro_receive()
246 for (i = sizeof(*th); i < thlen; i += 4) in tcp_gro_receive()
247 flush |= *(u32 *)((u8 *)th + i) ^ in tcp_gro_receive()
264 flush |= (ntohl(th2->seq) + skb_gro_len(p)) ^ ntohl(th->seq); in tcp_gro_receive()
293 struct tcphdr *th = tcp_hdr(skb); in tcp_gro_complete() local
295 skb->csum_start = (unsigned char *)th - skb->head; in tcp_gro_complete()
301 if (th->cwr) in tcp_gro_complete()
324 struct tcphdr *th = tcp_hdr(skb); in tcp4_gro_complete() local
326 th->check = ~tcp_v4_check(skb->len - thoff, iph->saddr, in tcp4_gro_complete()