[IPV6]: Only set nfheader_len for top xfrm dst
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 14 Nov 2007 05:32:26 +0000 (21:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:53:35 +0000 (14:53 -0800)
commit0148894223740da4818d7f4e6f92cbb5481a25b8
treebe37af4b8c3c81b45c7fff28ff7b6f09c78e2ef0
parentb24b8a247ff65c01b252025926fe564209fae4fc
[IPV6]: Only set nfheader_len for top xfrm dst

We only need to set nfheader_len in the top xfrm dst.  This is because
we only ever read the nfheader_len from the top xfrm dst.

It is also easier to count nfheader_len as part of header_len which
then lets us remove the ugly wrapper functions for incrementing and
decrementing header lengths in xfrm6_policy.c.

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