Netdev List
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: roy.qing.li@gmail.com
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] net/core: fix comment in skb_try_coalesce
Date: Wed, 19 Sep 2012 07:08:16 +0200	[thread overview]
Message-ID: <1348031296.26523.277.camel@edumazet-glaptop> (raw)
In-Reply-To: <1348023201-7727-1-git-send-email-roy.qing.li@gmail.com>

On Wed, 2012-09-19 at 10:53 +0800, roy.qing.li@gmail.com wrote:
> From: Li RongQing <roy.qing.li@gmail.com>
> 
> It should be the skb which is not cloned
> 
> Signed-off-by: Li RongQing <roy.qing.li@gmail.com>
> ---
>  net/core/skbuff.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/net/core/skbuff.c b/net/core/skbuff.c
> index fe00d12..354a4e4 100644
> --- a/net/core/skbuff.c
> +++ b/net/core/skbuff.c
> @@ -3502,7 +3502,9 @@ bool skb_try_coalesce(struct sk_buff *to, struct sk_buff *from,
>  	if (!skb_cloned(from))
>  		skb_shinfo(from)->nr_frags = 0;
>  
> -	/* if the skb is cloned this does nothing since we set nr_frags to 0 */
> +	/* if the skb is not cloned this does nothing
> +	 * since we set nr_frags to 0.
> +	 */
>  	for (i = 0; i < skb_shinfo(from)->nr_frags; i++)
>  		skb_frag_ref(from, i);
>  

Yes I saw that yesterday and was about to submit the same change (more
or less)

Acked-by: Eric Dumazet <edumazet@google.com>

  reply	other threads:[~2012-09-19  5:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-19  2:53 [PATCH] net/core: fix comment in skb_try_coalesce roy.qing.li
2012-09-19  5:08 ` Eric Dumazet [this message]
2012-09-19 21:29 ` 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=1348031296.26523.277.camel@edumazet-glaptop \
    --to=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=roy.qing.li@gmail.com \
    /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