Lines Matching +full:4 +full:th

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