• Home
  • Raw
  • Download

Lines Matching full:seg

192 static void __udpv4_gso_segment_csum(struct sk_buff *seg,  in __udpv4_gso_segment_csum()  argument
202 uh = udp_hdr(seg); in __udpv4_gso_segment_csum()
203 iph = ip_hdr(seg); in __udpv4_gso_segment_csum()
206 inet_proto_csum_replace4(&uh->check, seg, *oldip, *newip, in __udpv4_gso_segment_csum()
208 inet_proto_csum_replace2(&uh->check, seg, *oldport, *newport, in __udpv4_gso_segment_csum()
221 struct sk_buff *seg; in __udpv4_gso_segment_list_csum() local
225 seg = segs; in __udpv4_gso_segment_list_csum()
226 uh = udp_hdr(seg); in __udpv4_gso_segment_list_csum()
227 iph = ip_hdr(seg); in __udpv4_gso_segment_list_csum()
229 if ((udp_hdr(seg)->dest == udp_hdr(seg->next)->dest) && in __udpv4_gso_segment_list_csum()
230 (udp_hdr(seg)->source == udp_hdr(seg->next)->source) && in __udpv4_gso_segment_list_csum()
231 (ip_hdr(seg)->daddr == ip_hdr(seg->next)->daddr) && in __udpv4_gso_segment_list_csum()
232 (ip_hdr(seg)->saddr == ip_hdr(seg->next)->saddr)) in __udpv4_gso_segment_list_csum()
235 while ((seg = seg->next)) { in __udpv4_gso_segment_list_csum()
236 uh2 = udp_hdr(seg); in __udpv4_gso_segment_list_csum()
237 iph2 = ip_hdr(seg); in __udpv4_gso_segment_list_csum()
239 __udpv4_gso_segment_csum(seg, in __udpv4_gso_segment_list_csum()
242 __udpv4_gso_segment_csum(seg, in __udpv4_gso_segment_list_csum()
250 static void __udpv6_gso_segment_csum(struct sk_buff *seg, in __udpv6_gso_segment_csum() argument
255 struct udphdr *uh = udp_hdr(seg); in __udpv6_gso_segment_csum()
261 inet_proto_csum_replace16(&uh->check, seg, oldip->s6_addr32, in __udpv6_gso_segment_csum()
264 inet_proto_csum_replace2(&uh->check, seg, *oldport, newport, in __udpv6_gso_segment_csum()
279 struct sk_buff *seg; in __udpv6_gso_segment_list_csum() local
282 seg = segs; in __udpv6_gso_segment_list_csum()
283 uh = udp_hdr(seg); in __udpv6_gso_segment_list_csum()
284 iph = ipv6_hdr(seg); in __udpv6_gso_segment_list_csum()
285 uh2 = udp_hdr(seg->next); in __udpv6_gso_segment_list_csum()
286 iph2 = ipv6_hdr(seg->next); in __udpv6_gso_segment_list_csum()
293 while ((seg = seg->next)) { in __udpv6_gso_segment_list_csum()
294 uh2 = udp_hdr(seg); in __udpv6_gso_segment_list_csum()
295 iph2 = ipv6_hdr(seg); in __udpv6_gso_segment_list_csum()
297 __udpv6_gso_segment_csum(seg, &iph2->saddr, &iph->saddr, in __udpv6_gso_segment_list_csum()
299 __udpv6_gso_segment_csum(seg, &iph2->daddr, &iph->daddr, in __udpv6_gso_segment_list_csum()
329 struct sk_buff *segs, *seg; in __udp_gso_segment() local
403 seg = segs; in __udp_gso_segment()
404 uh = udp_hdr(seg); in __udp_gso_segment()
407 skb_shinfo(seg)->tskey = skb_shinfo(gso_skb)->tskey; in __udp_gso_segment()
408 skb_shinfo(seg)->tx_flags |= in __udp_gso_segment()
417 seg->destructor = sock_wfree; in __udp_gso_segment()
418 seg->sk = sk; in __udp_gso_segment()
419 sum_truesize += seg->truesize; in __udp_gso_segment()
422 if (!seg->next) in __udp_gso_segment()
428 if (seg->ip_summed == CHECKSUM_PARTIAL) in __udp_gso_segment()
429 gso_reset_checksum(seg, ~check); in __udp_gso_segment()
431 uh->check = gso_make_checksum(seg, ~check) ? : in __udp_gso_segment()
434 seg = seg->next; in __udp_gso_segment()
435 uh = udp_hdr(seg); in __udp_gso_segment()
439 newlen = htons(skb_tail_pointer(seg) - skb_transport_header(seg) + in __udp_gso_segment()
440 seg->data_len); in __udp_gso_segment()
446 if (seg->ip_summed == CHECKSUM_PARTIAL) in __udp_gso_segment()
447 gso_reset_checksum(seg, ~check); in __udp_gso_segment()
449 uh->check = gso_make_checksum(seg, ~check) ? : CSUM_MANGLED_0; in __udp_gso_segment()