[IPSEC]: Move flow construction into xfrm_dst_lookup
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 14 Nov 2007 05:37:28 +0000 (21:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:53:42 +0000 (14:53 -0800)
commit66cdb3ca27323a92712d289fc5edc7841d74a139
tree443c864e4cab413743c3ca755a50f8a5d0ec300d
parentf04e7e8d7f175c05bbde3ae748bf2541da53721d
[IPSEC]: Move flow construction into xfrm_dst_lookup

This patch moves the flow construction from the callers of
xfrm_dst_lookup into that function.  It also changes xfrm_dst_lookup
so that it takes an xfrm state as its argument instead of explicit
addresses.

This removes any address-specific logic from the callers of
xfrm_dst_lookup which is needed to correctly support inter-family
transforms.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/xfrm.h
net/ipv4/xfrm4_policy.c
net/ipv6/xfrm6_policy.c
net/xfrm/xfrm_policy.c