]> git.baikalelectronics.ru Git - kernel.git/commit
[INET]: Use pskb_trim_unique when trimming paged unique skbs
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 14 Aug 2006 03:12:58 +0000 (20:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Aug 2006 03:12:58 +0000 (20:12 -0700)
commit88f4e726cbc46a080999d922afa528bfbcdd934c
tree7313e7994ed8dbeb47ca454ee7c53d45e040738d
parent310934098b81d11c5abe130fc8dbe96a5ddc91ce
[INET]: Use pskb_trim_unique when trimming paged unique skbs

The IPv4/IPv6 datagram output path was using skb_trim to trim paged
packets because they know that the packet has not been cloned yet
(since the packet hasn't been given to anything else in the system).

This broke because skb_trim no longer allows paged packets to be
trimmed.  Paged packets must be given to one of the pskb_trim functions
instead.

This patch adds a new pskb_trim_unique function to cover the IPv4/IPv6
datagram output path scenario and replaces the corresponding skb_trim
calls with it.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/ipv4/ip_output.c
net/ipv6/ip6_output.c