[IPSEC]: Only set neighbour on top xfrm dst
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 14 Nov 2007 05:35:01 +0000 (21:35 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:53:39 +0000 (14:53 -0800)
The neighbour field is only used by dst_confirm which only ever happens on
the top-most xfrm dst.  So it's a waste to duplicate for every other xfrm
dst.  This patch moves its setting out of the loop so that only the top one
gets set.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found