]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: xfrm: Eliminate ->rt_src reference in policy code.
authorDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2011 22:13:28 +0000 (15:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 May 2011 20:32:48 +0000 (13:32 -0700)
commit15d92b11c6656b2c6d46dd9b60c3bc550f200c52
treeb98ccf5aeb28e93d564513f441a81dc062fb44c5
parentd6e32b157cee83486de426b829410b7d343f443e
ipv4: xfrm: Eliminate ->rt_src reference in policy code.

Rearrange xfrm4_dst_lookup() so that it works by calling a helper
function __xfrm_dst_lookup() that takes an explicit flow key storage
area as an argument.

Use this new helper in xfrm4_get_saddr() so we can fetch the selected
source address from the flow instead of from rt->rt_src

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/xfrm4_policy.c