[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20101006.174934.232737066.davem@davemloft.net>
Date: Wed, 06 Oct 2010 17:49:34 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: eric.dumazet@...il.com
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH net-next] neigh: RCU conversion of struct neighbour
From: Eric Dumazet <eric.dumazet@...il.com>
Date: Wed, 06 Oct 2010 17:54:16 +0200
> This is the second step for neighbour RCU conversion.
>
> (first was commit d6bf7817 : RCU conversion of neigh hash table)
>
> neigh_lookup() becomes lockless, but still take a reference on found
> neighbour. (no more read_lock()/read_unlock() on tbl->lock)
>
> struct neighbour gets an additional rcu_head field and is freed after an
> RCU grace period.
>
> Future work would need to eventually not take a reference on neighbour
> for temporary dst (DST_NOCACHE), but this would need dst->_neighbour to
> use a noref bit like we did for skb->_dst.
>
> Signed-off-by: Eric Dumazet <eric.dumazet@...il.com>
Applied, thanks Eric.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists