]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix output framentation of paged-skbs
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 22 Aug 2006 20:41:18 +0000 (13:41 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Sep 2006 21:51:36 +0000 (14:51 -0700)
commitea624f5adfb84678011dd39422fe1366440a978b
tree4ba1953fa5c0e70748017f2f5ea420820b9b83d9
parent35d2f110af2b9415dec490a0f59303ee7b3ba41c
Fix output framentation of paged-skbs

[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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/skbuff.h
net/ipv4/ip_output.c
net/ipv6/ip6_output.c