summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBaker Zhang <baker.kernel@gmail.com>2013-03-19 04:24:30 +0000
committerDavid S. Miller <davem@davemloft.net>2013-03-19 10:35:11 -0400
commitb5fb82c48b5898c50a9cf75fc957911b56fe1dc5 (patch)
tree94061aef10d0da5f8b4eec7fab1b1ebb0293f026 /tools
parent6fed9592de7bd9c904ab476c3e264a18d1cf3598 (diff)
downloadop-kernel-dev-b5fb82c48b5898c50a9cf75fc957911b56fe1dc5.zip
op-kernel-dev-b5fb82c48b5898c50a9cf75fc957911b56fe1dc5.tar.gz
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 <baker.zhang@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud