Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

inet: Remove unused sk_sndmsg_* from UFO

UFO doesn't really use the sk_sndmsg_* parameters so touching
them is pointless. It can't use them anyway since the whole
point of UFO is to use the original pages without copying.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Herbert Xu and committed by
David S. Miller
5a2ef920 9836f408

-5
-3
net/core/skbuff.c
··· 2434 2434 return -ENOMEM; 2435 2435 2436 2436 /* initialize the next frag */ 2437 - sk->sk_sndmsg_page = page; 2438 - sk->sk_sndmsg_off = 0; 2439 2437 skb_fill_page_desc(skb, frg_cnt, page, 0, 0); 2440 2438 skb->truesize += PAGE_SIZE; 2441 2439 atomic_add(PAGE_SIZE, &sk->sk_wmem_alloc); ··· 2453 2455 return -EFAULT; 2454 2456 2455 2457 /* copy was successful so update the size parameters */ 2456 - sk->sk_sndmsg_off += copy; 2457 2458 frag->size += copy; 2458 2459 skb->len += copy; 2459 2460 skb->data_len += copy;
-1
net/ipv4/ip_output.c
··· 767 767 768 768 skb->ip_summed = CHECKSUM_PARTIAL; 769 769 skb->csum = 0; 770 - sk->sk_sndmsg_off = 0; 771 770 772 771 /* specify the length of each IP datagram fragment */ 773 772 skb_shinfo(skb)->gso_size = mtu - fragheaderlen;
-1
net/ipv6/ip6_output.c
··· 1061 1061 1062 1062 skb->ip_summed = CHECKSUM_PARTIAL; 1063 1063 skb->csum = 0; 1064 - sk->sk_sndmsg_off = 0; 1065 1064 } 1066 1065 1067 1066 err = skb_append_datato_frags(sk,skb, getfrag, from,