]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd5caffcc738e077b17f6cfa509b0f29b0d0bdc33
tree9a622c95fd729d38e728835c906445f9a86edcce
parenta4ab8dd27fbaf788c3010032e5a2f03e95c2e30a
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