Home
last modified time | relevance | path

Searched refs:nft_net (Results 1 – 15 of 15) sorted by relevance

/linux/net/netfilter/
H A Dnf_tables_offload.c409 struct nftables_pernet *nft_net; in nft_indr_block_cleanup() local
415 nft_net = nft_pernet(net); in nft_indr_block_cleanup()
416 mutex_lock(&nft_net->commit_mutex); in nft_indr_block_cleanup()
420 mutex_unlock(&nft_net->commit_mutex); in nft_indr_block_cleanup()
519 struct nftables_pernet *nft_net = nft_pernet(net); in nft_flow_rule_offload_abort() local
522 list_for_each_entry_continue_reverse(trans, &nft_net->commit_list, list) { in nft_flow_rule_offload_abort()
568 struct nftables_pernet *nft_net = nft_pernet(net); in nft_flow_rule_offload_commit() local
573 list_for_each_entry(trans, &nft_net->commit_list, list) { in nft_flow_rule_offload_commit()
628 static struct nft_chain *__nft_offload_get_chain(const struct nftables_pernet *nft_net, in __nft_offload_get_chain() argument
636 list_for_each_entry(table, &nft_net in __nft_offload_get_chain()
668 struct nftables_pernet *nft_net; nft_offload_netdev_event() local
[all...]
H A Dnf_tables_api.c230 struct nftables_pernet *nft_net; in __nft_set_trans_bind() local
237 nft_net = nft_pernet(net); in __nft_set_trans_bind()
238 list_for_each_entry_reverse(trans, &nft_net->commit_list, list) { in __nft_set_trans_bind()
265 struct nftables_pernet *nft_net; in __nft_chain_trans_bind() local
272 nft_net = nft_pernet(net); in __nft_chain_trans_bind()
273 list_for_each_entry_reverse(trans, &nft_net->commit_list, list) { in __nft_chain_trans_bind()
499 static bool nft_trans_collapse_set_elem(struct nftables_pernet *nft_net, in nft_trans_collapse_set_elem() argument
528 &nft_net->commit_list); in nft_trans_collapse_set_elem()
538 list_add_tail(&new_trans->nft_trans.list, &nft_net->commit_list); in nft_trans_collapse_set_elem()
543 static bool nft_trans_try_collapse(struct nftables_pernet *nft_net, in nft_trans_try_collapse() argument
569 struct nftables_pernet *nft_net = nft_pernet(net); nft_trans_commit_list_add_tail() local
599 struct nftables_pernet *nft_net = nft_pernet(net); nft_trans_commit_list_add_elem() local
985 struct nftables_pernet *nft_net; nft_table_lookup() local
1012 struct nftables_pernet *nft_net; nft_table_lookup_byhandle() local
1075 struct nftables_pernet *nft_net; nft_request_module() local
1218 struct nftables_pernet *nft_net; nf_tables_table_notify() local
1252 struct nftables_pernet *nft_net; nf_tables_dump_tables() local
1411 struct nftables_pernet *nft_net = nft_pernet(ctx->net); nft_table_pending_update() local
1576 struct nftables_pernet *nft_net = nft_pernet(info->net); nf_tables_newtable() local
1740 struct nftables_pernet *nft_net = nft_pernet(ctx->net); nft_flush() local
1868 struct nftables_pernet *nft_net = nft_pernet(net); lockdep_commit_lock_is_held() local
2158 struct nftables_pernet *nft_net; nf_tables_chain_notify() local
2196 struct nftables_pernet *nft_net; nf_tables_dump_chains() local
2547 struct nftables_pernet *nft_net = nft_pernet(net); nft_chain_parse_hook() local
2896 struct nftables_pernet *nft_net; nf_tables_updchain() local
3029 struct nftables_pernet *nft_net = nft_pernet(ctx->net); nf_tables_updchain() local
3088 struct nftables_pernet *nft_net = nft_pernet(net); nft_chain_lookup_byid() local
3105 struct nftables_pernet *nft_net = nft_pernet(info->net); nf_tables_newchain() local
3821 struct nftables_pernet *nft_net = nft_pernet(ctx->net); nf_tables_rule_notify() local
3937 struct nftables_pernet *nft_net; nf_tables_dump_rules() local
4304 struct nftables_pernet *nft_net = nft_pernet(info->net); nf_tables_newrule() local
4543 struct nftables_pernet *nft_net = nft_pernet(net); nft_rule_lookup_byid() local
4667 struct nftables_pernet *nft_net = nft_pernet(ctx->net); nft_select_set_ops() local
4802 struct nftables_pernet *nft_net = nft_pernet(net); nft_set_lookup_byid() local
5085 struct nftables_pernet *nft_net = nft_pernet(ctx->net); nf_tables_set_notify() local
5121 struct nftables_pernet *nft_net; nf_tables_dump_sets() local
6286 struct nftables_pernet *nft_net; nf_tables_dump_set() local
6671 struct nftables_pernet *nft_net; nf_tables_setelem_notify() local
8469 struct nftables_pernet *nft_net; nf_tables_dump_obj() local
8709 struct nftables_pernet *nft_net = nft_pernet(net); __nft_obj_notify() local
9093 struct nftables_pernet *nft_net; nft_flowtable_update() local
9515 struct nftables_pernet *nft_net; nf_tables_dump_flowtable() local
9660 struct nftables_pernet *nft_net = nft_pernet(ctx->net); nf_tables_flowtable_notify() local
9808 struct nftables_pernet *nft_net = nft_pernet(dev_net(dev)); __nf_tables_flowtable_event() local
9826 struct nftables_pernet *nft_net; nf_tables_flowtable_event() local
10104 struct nftables_pernet *nft_net = nft_pernet(net); nf_tables_validate() local
10247 struct nftables_pernet *nft_net = container_of(w, struct nftables_pernet, destroy_work); nf_tables_trans_destroy_work() local
10268 struct nftables_pernet *nft_net = nft_pernet(net); nf_tables_trans_destroy_flush_work() local
10343 struct nftables_pernet *nft_net = nft_pernet(net); nf_tables_commit_chain_prepare_cancel() local
10480 struct nftables_pernet *nft_net; nft_trans_gc_work_done() local
10672 struct nftables_pernet *nft_net = nft_pernet(net); nf_tables_module_autoload_cleanup() local
10685 struct nftables_pernet *nft_net = nft_pernet(net); nf_tables_commit_release() local
10719 struct nftables_pernet *nft_net = nft_pernet(net); nft_commit_notify() local
10843 nft_gc_seq_begin(struct nftables_pernet * nft_net) nft_gc_seq_begin() argument
10854 nft_gc_seq_end(struct nftables_pernet * nft_net,unsigned int gc_seq) nft_gc_seq_end() argument
10861 struct nftables_pernet *nft_net = nft_pernet(net); nf_tables_commit() local
11176 struct nftables_pernet *nft_net = nft_pernet(net); nf_tables_module_autoload() local
11244 struct nftables_pernet *nft_net = nft_pernet(net); __nf_tables_abort() local
11455 struct nftables_pernet *nft_net = nft_pernet(net); nf_tables_abort() local
11487 struct nftables_pernet *nft_net = nft_pernet(net); nf_tables_valid_genid() local
11975 struct nftables_pernet *nft_net = nft_pernet(net); __nft_release_hooks() local
12039 struct nftables_pernet *nft_net = nft_pernet(net); __nft_release_tables() local
12056 struct nftables_pernet *nft_net; nft_rcv_nl_event() local
12110 struct nftables_pernet *nft_net = nft_pernet(net); nf_tables_init_net() local
12130 struct nftables_pernet *nft_net = nft_pernet(net); nf_tables_pre_exit_net() local
12139 struct nftables_pernet *nft_net = nft_pernet(net); nf_tables_exit_net() local
[all...]
H A Dnft_chain_filter.c377 struct nftables_pernet *nft_net; in __nf_tables_netdev_event() local
381 nft_net = nft_pernet(dev_net(dev)); in __nf_tables_netdev_event()
382 list_for_each_entry(table, &nft_net->tables, list) { in __nf_tables_netdev_event()
407 struct nftables_pernet *nft_net; in nf_tables_netdev_event() local
415 nft_net = nft_pernet(dev_net(dev)); in nf_tables_netdev_event()
416 mutex_lock(&nft_net->commit_mutex); in nf_tables_netdev_event()
428 mutex_unlock(&nft_net->commit_mutex); in nf_tables_netdev_event()
H A Dnft_tproxy.c49 sk = nf_tproxy_get_sock_v4(nft_net(pkt), skb, iph->protocol, in nft_tproxy_eval_v4()
66 sk = nf_tproxy_handle_time_wait4(nft_net(pkt), skb, taddr, tport, sk); in nft_tproxy_eval_v4()
71 sk = nf_tproxy_get_sock_v4(nft_net(pkt), skb, iph->protocol, in nft_tproxy_eval_v4()
117 sk = nf_tproxy_get_sock_v6(nft_net(pkt), skb, thoff, l4proto, in nft_tproxy_eval_v6()
135 nft_net(pkt), in nft_tproxy_eval_v6()
143 sk = nf_tproxy_get_sock_v6(nft_net(pkt), skb, thoff, in nft_tproxy_eval_v6()
H A Dnf_dup_netdev.c46 dev = dev_get_by_index_rcu(nft_net(pkt), oif); in nf_fwd_netdev_egress()
61 dev = dev_get_by_index_rcu(nft_net(pkt), oif); in nf_dup_netdev_egress()
H A Dnf_tables_trace.c250 if (!nfnetlink_has_listeners(nft_net(pkt), NFNLGRP_NFTRACE)) in nft_trace_notify()
355 nfnetlink_send(skb, nft_net(pkt), 0, NFNLGRP_NFTRACE, 0, GFP_ATOMIC); in nft_trace_notify()
377 skb_get_hash_net(nft_net(pkt), skb), in nft_trace_init()
H A Dnft_set_hash.c412 struct nftables_pernet *nft_net; in nft_rhash_gc() local
424 nft_net = nft_pernet(net); in nft_rhash_gc()
425 gc_seq = READ_ONCE(nft_net->gc_seq); in nft_rhash_gc()
449 if (READ_ONCE(nft_net->gc_seq) != gc_seq) { in nft_rhash_gc()
H A Dnf_flow_table_path.c234 nf_route(nft_net(pkt), &tun_dst, &fl, false, nft_pf(pkt)); in nft_flow_tunnel_update_route()
326 nf_route(nft_net(pkt), &other_dst, &fl, false, nft_pf(pkt)); in nft_flow_route()
H A Dnft_dynset.c175 struct nftables_pernet *nft_net = nft_pernet(ctx->net); in nft_dynset_init() local
182 lockdep_assert_held(&nft_net->commit_mutex); in nft_dynset_init()
H A Dnft_fwd_netdev.c156 dev = dev_get_by_index_rcu(nft_net(pkt), oif); in nft_fwd_neigh_eval()
H A Dnf_tables_core.c253 const struct net *net = nft_net(pkt); in nft_do_chain()
H A Dnft_exthdr.c152 err = ipv4_find_option(nft_net(pkt), skb, &offset, priv->type); in nft_exthdr_ipv4_eval()
H A Dnft_ct.c262 ct = nf_ct_tmpl_alloc(nft_net(pkt), &zone, GFP_ATOMIC); in nft_ct_set_zone_eval()
/linux/net/ipv6/netfilter/
H A Dnft_fib_ipv6.c74 .flowi6_uid = sock_net_uid(nft_net(pkt), NULL), in __nft_fib6_eval_type()
86 if (dev && nf_ipv6_chk_addr(nft_net(pkt), &fl6.daddr, dev, true)) in __nft_fib6_eval_type()
89 route_err = nft_fib6_lookup(nft_net(pkt), &fl6, &res, lookup_flags); in __nft_fib6_eval_type()
215 .flowi6_uid = sock_net_uid(nft_net(pkt), NULL), in nft_fib6_eval()
243 ret = nft_fib6_lookup(nft_net(pkt), &fl6, &res, lookup_flags); in nft_fib6_eval()
/linux/include/net/netfilter/
H A Dnf_tables.h51 static inline struct net *nft_net(const struct nft_pktinfo *pkt) in nft_net() function