OSDN Git Service

netfilter: nft_set_rbtree: Introduce and use nft_rbtree_interval_start()
authorStefano Brivio <sbrivio@redhat.com>
Sun, 22 Mar 2020 02:22:00 +0000 (03:22 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 24 Mar 2020 18:59:30 +0000 (19:59 +0100)
commit6f7c9caf017be8ab0fe3b99509580d0793bf0833
tree9a622c95fd729d38e728835c906445f9a86edcce
parent0eb4b5ee33f2461d149408a247af8ae24756a6ca
netfilter: nft_set_rbtree: Introduce and use nft_rbtree_interval_start()

Replace negations of nft_rbtree_interval_end() with a new helper,
nft_rbtree_interval_start(), wherever this helps to visualise the
problem at hand, that is, for all the occurrences except for the
comparison against given flags in __nft_rbtree_get().

This gets especially useful in the next patch.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_rbtree.c