Searched refs:genmask (Results 1 - 5 of 5) sorted by relevance
/linux-4.1.27/net/netfilter/ |
H A D | nft_hash.c | 40 u8 genmask; member in struct:nft_hash_cmp_arg 69 if (!nft_set_elem_active(&he->ext, x->genmask)) nft_hash_cmp() 80 .genmask = nft_genmask_cur(read_pnet(&set->pnet)), nft_hash_lookup() 103 .genmask = NFT_GENMASK_ANY, nft_hash_update() 134 .genmask = nft_genmask_next(read_pnet(&set->pnet)), nft_hash_insert() 158 .genmask = nft_genmask_next(read_pnet(&set->pnet)), nft_hash_deactivate() 192 u8 genmask = nft_genmask_cur(read_pnet(&set->pnet)); nft_hash_walk() local 221 if (!nft_set_elem_active(&he->ext, genmask)) nft_hash_walk()
|
H A D | nft_rbtree.c | 39 u8 genmask = nft_genmask_cur(read_pnet(&set->pnet)); nft_rbtree_lookup() local 55 if (!nft_set_elem_active(&rbe->ext, genmask)) { nft_rbtree_lookup() 85 u8 genmask = nft_genmask_next(read_pnet(&set->pnet)); __nft_rbtree_insert() local 101 if (nft_set_elem_active(&rbe->ext, genmask)) __nft_rbtree_insert() 149 u8 genmask = nft_genmask_cur(read_pnet(&set->pnet)); nft_rbtree_deactivate() local 162 if (!nft_set_elem_active(&rbe->ext, genmask)) { nft_rbtree_deactivate() 181 u8 genmask = nft_genmask_cur(read_pnet(&set->pnet)); nft_rbtree_walk() local 189 if (!nft_set_elem_active(&rbe->ext, genmask)) nft_rbtree_walk()
|
H A D | nf_tables_core.c | 140 if (unlikely(rule->genmask & (1 << gencursor))) nft_do_chain()
|
H A D | nf_tables_api.c | 201 return (rule->genmask & nft_genmask_cur(net)) == 0; nft_rule_is_active() 207 return (rule->genmask & nft_genmask_next(net)) == 0; nft_rule_is_active_next() 214 rule->genmask = nft_genmask_cur(net); nft_rule_activate_next() 220 rule->genmask = nft_genmask_next(net); nft_rule_deactivate_next() 225 rule->genmask &= ~nft_genmask_next(net); nft_rule_clear() 3435 ext->genmask = nft_genmask_cur(ctx->net) | NFT_SET_ELEM_BUSY_MASK; nft_add_set_elem()
|
/linux-4.1.27/include/net/netfilter/ |
H A D | nf_tables.h | 415 * @genmask: generation mask 420 u8 genmask; member in struct:nft_set_ext 673 * @genmask: generation mask 681 genmask:2, member in struct:nft_rule 919 u8 genmask) nft_set_elem_active() 921 return !(ext->genmask & genmask); nft_set_elem_active() 927 ext->genmask ^= nft_genmask_next(read_pnet(&set->pnet)); nft_set_elem_change_active() 931 * We use a free bit in the genmask field to indicate the element 935 * Even though the genmask is only a single byte wide, this works 954 BUILD_BUG_ON(offsetof(struct nft_set_ext, genmask) != 0); nft_set_elem_mark_busy() 918 nft_set_elem_active(const struct nft_set_ext *ext, u8 genmask) nft_set_elem_active() argument
|
Completed in 194 milliseconds