Subject: Re: [PATCH net-next] netem: Introduce skb_orphan_partial() helper

From: Cong Wang <[email-masked]>
Date: Wed, 31 Jul 2013 03:21:33 +0000 (UTC)

On Wed, 31 Jul 2013 at 00:55 GMT, Eric Dumazet <[email-masked]> wrote:
> diff --git a/include/net/sock.h b/include/net/sock.h
> index b9f2b09..53d4714 100644
> --- a/include/net/sock.h
> +++ b/include/net/sock.h
> @@ -1520,6 +1520,7 @@ extern struct sk_buff		*sock_rmalloc(struct sock *sk,
>  					      unsigned long size, int force,
>  					      gfp_t priority);
>  extern void			sock_wfree(struct sk_buff *skb);
> +extern void			skb_orphan_partial(struct sk_buff *skb);
>  extern void			sock_rfree(struct sk_buff *skb);
>  extern void			sock_edemux(struct sk_buff *skb);
>  
> diff --git a/net/core/sock.c b/net/core/sock.c
> index 85e8de1..a753d97 100644
> --- a/net/core/sock.c
> +++ b/net/core/sock.c
> @@ -1576,6 +1576,25 @@ void sock_wfree(struct sk_buff *skb)
>  }
>  EXPORT_SYMBOL(sock_wfree);
>  
> +void skb_orphan_partial(struct sk_buff *skb)

I think net/core/skbuff.c is a better place to put this (or skbuff.h
if it can be inlined).