From 1d8b3afd2b2c87c4612394b3d70bc42e585c7ff8 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 27 Oct 2011 15:53:41 -0400 Subject: [PATCH] net: add FCLONE_SCRATCH use to ipv6 udp path Like the ipv4 path, the ipv6 path can benefit from this change by taking advantage of the unused space at the tail of an skbuffs data area. Mark ipv6 udp multicast frames as being elligible for scratch fcloning. Signed-off-by: Neil Horman CC: "David S. Miller" --- net/ipv6/udp.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index e55aa9c..d79f43a 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -623,6 +623,8 @@ static int __udp6_lib_mcast_deliver(struct net *net, struct sk_buff *skb, int dif; unsigned int i, count = 0; + skb_make_fclone_scratch(skb); + spin_lock(&hslot->lock); sk = sk_nulls_head(&hslot->head); dif = inet6_iif(skb); -- 1.7.1