netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
To: Herbert Xu <herbert@gondor.apana.org.au>
Cc: shemminger@osdl.org, davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: [PATCH] ip multicast route bug fix
Date: Wed, 26 Jul 2006 17:27:27 +0400	[thread overview]
Message-ID: <20060726132727.GA10167@ms2.inr.ac.ru> (raw)
In-Reply-To: <E1G5Z62-00083O-00@gondolin.me.apana.org.au>

HellO!

> I like this.  However, since the cloned skb is either discarded in case
> of error, or queued in which case the caller discards its reference right
> away, wouldn't it be simpler to just do this?

Well, if we wanted just to cheat those checking tools, it is nice.
But if we want clarity, it does not look so sweet.

I _loved_ the tricks with skb refcnt a lot (look into netlink.c :-))
until the day, when pskb_expand_head() and Co appeared. It is so much
more handy and so hates refcnt.

I would seriously review all the uses of refcnt and leave it internal
to skbuff.c and use it externally only in a few places,
where it is obviously safe (MSG_PEEK, mostly) 

Alexey

      reply	other threads:[~2006-07-26 13:28 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-19 21:57 [PATCH] ip multicast route bug fix Stephen Hemminger
2006-07-25  5:29 ` James Morris
2006-07-25  6:03 ` Martin Josefsson
2006-07-25  8:03 ` Herbert Xu
2006-07-25 15:42   ` [PATCH] ip multicast route bug fix (rev2) Stephen Hemminger
2006-07-25 16:20 ` [PATCH] ip multicast route bug fix Alexey Kuznetsov
2006-07-25 15:55   ` Stephen Hemminger
2006-07-25 16:48     ` Alexey Kuznetsov
2006-07-25 18:31     ` Alexey Kuznetsov
2006-07-25 21:17     ` Alexey Kuznetsov
2006-07-25 21:24       ` Stephen Hemminger
2006-07-25 23:45       ` David Miller
2006-07-26  2:26       ` Herbert Xu
2006-07-26 13:27         ` Alexey Kuznetsov [this message]

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=20060726132727.GA10167@ms2.inr.ac.ru \
    --to=kuznet@ms2.inr.ac.ru \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@osdl.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).