Skip to content

Commit 9cf545e

Browse files
Florian Westphalklassert
Florian Westphal
authored andcommitted
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 <[email protected]> Acked-by: David S. Miller <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
1 parent 6be3b0d commit 9cf545e

File tree

2 files changed

+328
-6
lines changed

2 files changed

+328
-6
lines changed

include/net/xfrm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ struct xfrm_policy {
590590
struct xfrm_lifetime_cur curlft;
591591
struct xfrm_policy_walk_entry walk;
592592
struct xfrm_policy_queue polq;
593+
bool bydst_reinsert;
593594
u8 type;
594595
u8 action;
595596
u8 flags;

0 commit comments

Comments
 (0)