From: Baker Zhang Date: Tue, 19 Mar 2013 04:24:30 +0000 (+0000) Subject: xfrm: use xfrm direction when lookup policy X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~417 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5fb82c48b5898c50a9cf75fc957911b56fe1dc5;p=pandora-kernel.git xfrm: use xfrm direction when lookup policy because xfrm policy direction has same value with corresponding flow direction, so this problem is covered. In xfrm_lookup and __xfrm_policy_check, flow_cache_lookup is used to accelerate the lookup. Flow direction is given to flow_cache_lookup by policy_to_flow_dir. When the flow cache is mismatched, callback 'resolver' is called. 'resolver' requires xfrm direction, so convert direction back to xfrm direction. Signed-off-by: Baker Zhang Signed-off-by: David S. Miller --- Reading git-diff-tree failed