mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-10 20:48:12 +00:00
netfilter: nft_set_rbtree: use binary search array in get command
[ Upstream commit2aa34191f0] Rework .get interface to use the binary search array, this needs a specific lookup function to match on end intervals (<=). Packet path lookup is slight different because match is on lesser value, not equal (ie. <). After this patch, seqcount can be removed in a follow up patch. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Florian Westphal <fw@strlen.de> Stable-dep-of:782f268812("netfilter: nft_set_rbtree: validate element belonging to interval") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
36ed9b6e39
commit
e4ea5be0b3
1 changed files with 64 additions and 90 deletions
Loading…
Add table
Add a link
Reference in a new issue