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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 May 2020 06:20:25 +0000 (08:20 +0200)
commit1c235d0eb1f0884403d00634ebd8801e891135b5
tree1f7b095fe30fab707191892379d20730452fe2c5
parent6259b1c1bca54a5c72d8c5b331c42a255d351cdb
netfilter: nft_set_rbtree: Introduce and use nft_rbtree_interval_start()

[ Upstream commit 6f7c9caf017be8ab0fe3b99509580d0793bf0833 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nft_set_rbtree.c