diff options
author | Florian Westphal <fw@strlen.de> | 2018-11-07 23:00:38 +0100 |
---|---|---|
committer | Steffen Klassert <steffen.klassert@secunet.com> | 2018-11-09 11:58:07 +0100 |
commit | 9cf545ebd591da673bb6b6c88150212ad83567a9 (patch) | |
tree | d394bcd44723236e3ef7b7bc3edb14f4d2aa2977 /include/net/xfrm.h | |
parent | xfrm: policy: add inexact policy search tree infrastructure (diff) | |
download | linux-9cf545ebd591da673bb6b6c88150212ad83567a9.tar.xz linux-9cf545ebd591da673bb6b6c88150212ad83567a9.zip |
xfrm: policy: store inexact policies in a tree ordered by destination address
This adds inexact lists per destination network, stored in a search tree.
Inexact lookups now return two 'candidate lists', the 'any' policies
('any' destionations), and a list of policies that share same
daddr/prefix.
Next patch will add a second search tree for 'saddr:any' policies
so we can avoid placing those on the 'any:any' list too.
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'include/net/xfrm.h')
-rw-r--r-- | include/net/xfrm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 9df6dca17155..fa4b3c877fcf 100644 --- a/include/net/xfrm.h +++ b/include/net/xfrm.h @@ -590,6 +590,7 @@ struct xfrm_policy { struct xfrm_lifetime_cur curlft; struct xfrm_policy_walk_entry walk; struct xfrm_policy_queue polq; + bool bydst_reinsert; u8 type; u8 action; u8 flags; |