From: Cong Wang <xiyou.wangcong@gmail.com>
To: netdev@vger.kernel.org
Subject: Re: [PATCH net-next] netem: Introduce skb_orphan_partial() helper
Date: Wed, 31 Jul 2013 03:21:33 +0000 (UTC) [thread overview]
Message-ID: <kt9vrt$occ$1@ger.gmane.org> (raw)
In-Reply-To: 1375232108.10515.47.camel@edumazet-glaptop
On Wed, 31 Jul 2013 at 00:55 GMT, Eric Dumazet <eric.dumazet@gmail.com> 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).
next prev parent reply other threads:[~2013-07-31 3:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-31 0:55 [PATCH net-next] netem: Introduce skb_orphan_partial() helper Eric Dumazet
2013-07-31 3:21 ` Cong Wang [this message]
2013-07-31 3:27 ` Eric Dumazet
2013-07-31 22:00 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='kt9vrt$occ$1@ger.gmane.org' \
--to=xiyou.wangcong@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).