netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: eric.dumazet@gmail.com
Cc: xiaosuo@gmail.com, netdev@vger.kernel.org
Subject: Re: inetpeer with create==0
Date: Thu, 03 Mar 2011 00:32:29 -0800 (PST)	[thread overview]
Message-ID: <20110303.003229.229764095.davem@davemloft.net> (raw)
In-Reply-To: <1299137977.2456.15.camel@edumazet-laptop>

From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Thu, 03 Mar 2011 08:39:37 +0100

> Le mercredi 02 mars 2011 à 22:42 -0800, David Miller a écrit :
>> Actually, back to the original topic, I wonder how bad it is to simply
>> elide the recheck in the create==0 case anyways.  Except for the ipv4
>> fragmentation wraparound protection values, perfect inetpeer finding
>> is not necessary for correctness.  And IPv4 fragmentation always calls
>> inetpeer with create!=0.
> 
> We could use a seqlock, to detect that a writer might have changed
> things while we did our RCU lookup ?

That would certainly work.

  reply	other threads:[~2011-03-03  8:31 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03  4:45 inetpeer with create==0 David Miller
2011-03-03  5:30 ` Changli Gao
2011-03-03  5:36   ` David Miller
2011-03-03  6:27     ` Changli Gao
2011-03-03  6:42       ` David Miller
2011-03-03  7:39         ` Eric Dumazet
2011-03-03  8:32           ` David Miller [this message]
2011-03-04 15:09             ` [PATCH net-next-2.6] inetpeer: seqlock optimization Eric Dumazet
2011-03-04 19:17               ` David Miller
2011-03-04 20:45                 ` David Miller
2011-03-04 22:13                   ` Eric Dumazet
2011-03-04 22:44                     ` David Miller
2011-03-04 23:02                       ` Eric Dumazet
2011-03-03  8:07         ` inetpeer with create==0 Changli Gao
2011-03-03  8:34           ` David Miller
2011-03-03  6:51 ` Eric Dumazet
2011-03-03  8:30   ` 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=20110303.003229.229764095.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=eric.dumazet@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=xiaosuo@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;
as well as URLs for NNTP newsgroup(s).