/net/netfilter/ |
D | nft_immediate.c | 74 struct nft_chain *chain = priv->data.verdict.chain; in nft_immediate_init() local 79 err = nf_tables_bind_chain(ctx, chain); in nft_immediate_init() 101 struct nft_chain *chain; in nft_immediate_activate() local 108 chain = data->verdict.chain; in nft_immediate_activate() 109 if (!nft_chain_binding(chain)) in nft_immediate_activate() 113 chain_ctx.chain = chain; in nft_immediate_activate() 115 list_for_each_entry(rule, &chain->rules, list) in nft_immediate_activate() 118 nft_clear(ctx->net, chain); in nft_immediate_activate() 129 struct nft_chain *chain, in nft_immediate_chain_deactivate() argument 136 chain_ctx.chain = chain; in nft_immediate_chain_deactivate() [all …]
|
D | nf_tables_offload.c | 263 static int nft_flow_offload_cmd(const struct nft_chain *chain, in nft_flow_offload_cmd() argument 272 if (!nft_is_base_chain(chain)) in nft_flow_offload_cmd() 275 basechain = nft_base_chain(chain); in nft_flow_offload_cmd() 283 static int nft_flow_offload_rule(const struct nft_chain *chain, in nft_flow_offload_rule() argument 290 return nft_flow_offload_cmd(chain, rule, flow, command, &cls_flow); in nft_flow_offload_rule() 293 int nft_flow_rule_stats(const struct nft_chain *chain, in nft_flow_rule_stats() argument 300 err = nft_flow_offload_cmd(chain, rule, NULL, FLOW_CLS_STATS, in nft_flow_rule_stats() 326 struct nft_chain *chain; in nft_flow_offload_unbind() local 329 chain = &basechain->chain; in nft_flow_offload_unbind() 330 list_for_each_entry(rule, &chain->rules, list) { in nft_flow_offload_unbind() [all …]
|
D | nf_tables_core.c | 25 const struct nft_chain *chain, in __nft_trace_packet() argument 33 info->chain = chain; in __nft_trace_packet() 40 const struct nft_chain *chain, in nft_trace_packet() argument 46 __nft_trace_packet(info, chain, type); in nft_trace_packet() 85 const struct nft_chain *chain, in __nft_trace_verdict() argument 100 __nft_trace_packet(info, chain, type); in __nft_trace_verdict() 104 const struct nft_chain *chain, in nft_trace_verdict() argument 110 __nft_trace_verdict(info, chain, regs); in nft_trace_verdict() 148 static noinline void nft_update_chain_stats(const struct nft_chain *chain, in nft_update_chain_stats() argument 155 base_chain = nft_base_chain(chain); in nft_update_chain_stats() [all …]
|
D | nf_tables_api.c | 137 struct nft_chain *chain, in nft_ctx_init() argument 144 ctx->chain = chain; in nft_ctx_init() 223 struct nft_chain *chain, bool bind) in __nft_chain_trans_bind() argument 229 if (!nft_chain_binding(chain)) in __nft_chain_trans_bind() 236 if (nft_trans_chain(trans) == chain) in __nft_chain_trans_bind() 240 if (trans->ctx.chain == chain) in __nft_chain_trans_bind() 248 struct nft_chain *chain) in nft_chain_trans_bind() argument 250 __nft_chain_trans_bind(ctx, chain, true); in nft_chain_trans_bind() 253 int nf_tables_bind_chain(const struct nft_ctx *ctx, struct nft_chain *chain) in nf_tables_bind_chain() argument 255 if (!nft_chain_binding(chain)) in nf_tables_bind_chain() [all …]
|
D | nf_tables_trace.c | 195 nla_total_size(strlen(info->chain->table->name)) + in nft_trace_notify() 196 nla_total_size(strlen(info->chain->name)) + in nft_trace_notify() 214 size += nla_total_size(strlen(info->verdict->chain->name)); /* jump target */ in nft_trace_notify() 235 if (nla_put_string(skb, NFTA_TRACE_CHAIN, info->chain->name)) in nft_trace_notify() 238 if (nla_put_string(skb, NFTA_TRACE_TABLE, info->chain->table->name)) in nft_trace_notify() 284 const struct nft_chain *chain) in nft_trace_init() argument 286 info->basechain = nft_base_chain(chain); in nft_trace_init()
|
D | nft_chain_filter.c | 322 struct nft_base_chain *basechain = nft_base_chain(ctx->chain); in nft_netdev_event() 360 struct nft_chain *chain, *nr; in nf_tables_netdev_event() local 379 list_for_each_entry_safe(chain, nr, &table->chains, list) { in nf_tables_netdev_event() 380 if (!nft_is_base_chain(chain)) in nf_tables_netdev_event() 383 basechain = nft_base_chain(chain); in nf_tables_netdev_event() 388 ctx.chain = chain; in nf_tables_netdev_event()
|
D | nfnetlink_hook.c | 66 struct nft_chain *chain; in nfnl_hook_put_nft_chain_info() local 72 chain = ops->priv; in nfnl_hook_put_nft_chain_info() 73 if (WARN_ON_ONCE(!chain)) in nfnl_hook_put_nft_chain_info() 76 if (!nft_is_active(net, chain)) in nfnl_hook_put_nft_chain_info() 92 ret = nla_put_string(nlskb, NFNLA_CHAIN_TABLE, chain->table->name); in nfnl_hook_put_nft_chain_info() 96 ret = nla_put_string(nlskb, NFNLA_CHAIN_NAME, chain->name); in nfnl_hook_put_nft_chain_info() 100 ret = nla_put_u8(nlskb, NFNLA_CHAIN_FAMILY, chain->table->family); in nfnl_hook_put_nft_chain_info()
|
D | nft_compat.c | 35 const struct nft_chain *chain = ctx->chain; in nft_compat_chain_validate_dependency() local 39 !nft_is_base_chain(chain)) in nft_compat_chain_validate_dependency() 42 basechain = nft_base_chain(chain); in nft_compat_chain_validate_dependency() 172 if (nft_is_base_chain(ctx->chain)) { in nft_target_set_tgchk_param() 174 nft_base_chain(ctx->chain); in nft_target_set_tgchk_param() 366 ret = nft_chain_validate_hooks(ctx->chain, in nft_target_validate() 375 if (nft_is_base_chain(ctx->chain)) { in nft_target_validate() 377 nft_base_chain(ctx->chain); in nft_target_validate() 472 if (nft_is_base_chain(ctx->chain)) { in nft_match_set_mtchk_param() 474 nft_base_chain(ctx->chain); in nft_match_set_mtchk_param() [all …]
|
D | nft_nat.c | 150 err = nft_chain_validate_dependency(ctx->chain, NFT_CHAIN_T_NAT); in nft_nat_validate() 156 err = nft_chain_validate_hooks(ctx->chain, in nft_nat_validate() 161 err = nft_chain_validate_hooks(ctx->chain, in nft_nat_validate()
|
D | nft_redir.c | 34 err = nft_chain_validate_dependency(ctx->chain, NFT_CHAIN_T_NAT); in nft_redir_validate() 38 return nft_chain_validate_hooks(ctx->chain, in nft_redir_validate()
|
D | nft_masq.c | 34 err = nft_chain_validate_dependency(ctx->chain, NFT_CHAIN_T_NAT); in nft_masq_validate() 38 return nft_chain_validate_hooks(ctx->chain, in nft_masq_validate()
|
D | nft_reject_inet.c | 67 return nft_chain_validate_hooks(ctx->chain, in nft_reject_inet_validate()
|
D | nft_reject.c | 30 return nft_chain_validate_hooks(ctx->chain, in nft_reject_validate()
|
/net/batman-adv/ |
D | fragmentation.c | 63 struct batadv_frag_table_entry *chain; in batadv_frag_purge_orig() local 67 chain = &orig_node->fragments[i]; in batadv_frag_purge_orig() 68 spin_lock_bh(&chain->lock); in batadv_frag_purge_orig() 70 if (!check_cb || check_cb(chain)) { in batadv_frag_purge_orig() 71 batadv_frag_clear_chain(&chain->fragment_list, true); in batadv_frag_purge_orig() 72 chain->size = 0; in batadv_frag_purge_orig() 75 spin_unlock_bh(&chain->lock); in batadv_frag_purge_orig() 107 static bool batadv_frag_init_chain(struct batadv_frag_table_entry *chain, in batadv_frag_init_chain() argument 110 lockdep_assert_held(&chain->lock); in batadv_frag_init_chain() 112 if (chain->seqno == seqno) in batadv_frag_init_chain() [all …]
|
/net/sched/ |
D | cls_api.c | 52 return jhash_3words(tp->chain->index, tp->prio, in destroy_obj_hashfn() 56 static void tcf_proto_signal_destroying(struct tcf_chain *chain, in tcf_proto_signal_destroying() argument 59 struct tcf_block *block = chain->block; in tcf_proto_signal_destroying() 70 return tp1->chain->index == tp2->chain->index && in tcf_proto_cmp() 75 static bool tcf_proto_exists_destroying(struct tcf_chain *chain, in tcf_proto_exists_destroying() argument 83 hash_for_each_possible_rcu(chain->block->proto_destroy_ht, iter, in tcf_proto_exists_destroying() 96 tcf_proto_signal_destroyed(struct tcf_chain *chain, struct tcf_proto *tp) in tcf_proto_signal_destroyed() argument 98 struct tcf_block *block = chain->block; in tcf_proto_signal_destroyed() 250 u32 prio, struct tcf_chain *chain, in tcf_proto_create() argument 269 tp->chain = chain; in tcf_proto_create() [all …]
|
D | cls_matchall.c | 72 struct tcf_block *block = tp->chain->block; in mall_destroy_hw_filter() 88 struct tcf_block *block = tp->chain->block; in mall_replace_hw_filter() 289 struct tcf_block *block = tp->chain->block; in mall_reoffload() 331 struct tcf_block *block = tp->chain->block; in mall_stats_hw_filter()
|
D | cls_bpf.c | 145 struct tcf_block *block = tp->chain->block; in cls_bpf_offload_cmd() 226 struct tcf_block *block = tp->chain->block; in cls_bpf_offload_update_stats() 400 tcf_block_netif_keep_dst(tp->chain->block); in cls_bpf_prog_from_efd() 661 struct tcf_block *block = tp->chain->block; in cls_bpf_reoffload()
|
D | cls_flower.c | 99 struct tcf_chain *chain; member 432 struct tcf_block *block = tp->chain->block; in fl_hw_destroy_filter() 448 struct tcf_block *block = tp->chain->block; in fl_hw_replace_filter() 494 struct tcf_block *block = tp->chain->block; in fl_hw_update_stats() 2061 tp->chain->tmplt_priv, flags, extack); in fl_change() 2263 struct tcf_block *block = tp->chain->block; in fl_reoffload() 2346 static int fl_hw_create_tmplt(struct tcf_chain *chain, in fl_hw_create_tmplt() argument 2350 struct tcf_block *block = chain->block; in fl_hw_create_tmplt() 2356 cls_flower.common.chain_index = chain->index; in fl_hw_create_tmplt() 2372 static void fl_hw_destroy_tmplt(struct tcf_chain *chain, in fl_hw_destroy_tmplt() argument [all …]
|
D | cls_u32.c | 321 struct tcf_block *block = tp->chain->block; in tc_u_common_ptr() 478 struct tcf_block *block = tp->chain->block; in u32_clear_hw_hnode() 493 struct tcf_block *block = tp->chain->block; in u32_replace_hw_hnode() 522 struct tcf_block *block = tp->chain->block; in u32_remove_hw_knode() 537 struct tcf_block *block = tp->chain->block; in u32_replace_hw_knode() 1221 struct tcf_block *block = tp->chain->block; in u32_reoffload_knode()
|
/net/xfrm/ |
D | xfrm_policy.c | 181 xfrm_policy_insert_list(struct hlist_head *chain, struct xfrm_policy *policy, 183 static void xfrm_policy_insert_inexact_list(struct hlist_head *chain, 1190 struct hlist_head *chain; in xfrm_policy_inexact_insert() local 1200 chain = xfrm_policy_inexact_alloc_chain(bin, policy, dir); in xfrm_policy_inexact_insert() 1201 if (!chain) { in xfrm_policy_inexact_insert() 1206 delpol = xfrm_policy_insert_list(chain, policy, excl); in xfrm_policy_inexact_insert() 1212 chain = &net->xfrm.policy_inexact[dir]; in xfrm_policy_inexact_insert() 1213 xfrm_policy_insert_inexact_list(chain, policy); in xfrm_policy_inexact_insert() 1228 struct hlist_head *chain; in xfrm_hash_rebuild() local 1334 chain = policy_hash_bysel(net, &policy->selector, in xfrm_hash_rebuild() [all …]
|
/net/ipv4/ |
D | tcp_metrics.c | 89 struct tcp_metrics_block __rcu *chain; member 191 oldest = deref_locked(tcp_metrics_hash[hash].chain); in tcpm_new() 213 tm->tcpm_next = tcp_metrics_hash[hash].chain; in tcpm_new() 214 rcu_assign_pointer(tcp_metrics_hash[hash].chain, tm); in tcpm_new() 238 for (tm = rcu_dereference(tcp_metrics_hash[hash].chain); tm; in __tcp_get_metrics() 280 for (tm = rcu_dereference(tcp_metrics_hash[hash].chain); tm; in __tcp_get_metrics_req() 775 for (col = 0, tm = rcu_dereference(hb->chain); tm; in tcp_metrics_nl_dump() 869 for (tm = rcu_dereference(tcp_metrics_hash[hash].chain); tm; in tcp_metrics_nl_cmd_get() 905 pp = &hb->chain; in tcp_metrics_flush_all() 945 pp = &hb->chain; in tcp_metrics_nl_cmd_del()
|
D | inet_hashtables.c | 79 hlist_add_head(&tb->node, &head->chain); in inet_bind_bucket_create() 155 inet_bind_bucket_for_each(tb, &head->chain) { in __inet_inherit_port() 410 sk_nulls_for_each_rcu(sk, node, &head->chain) { in __inet_lookup_established() 462 sk_nulls_for_each(sk2, node, &head->chain) { in __inet_check_established() 483 __sk_nulls_add_node_rcu(sk, &head->chain); in __inet_check_established() 568 list = &head->chain; in inet_ehash_insert() 789 inet_bind_bucket_for_each(tb, &head->chain) { in __inet_hash_connect()
|
D | inet_timewait_sock.c | 123 inet_twsk_add_node_rcu(tw, &ehead->chain); in inet_twsk_hashdance() 270 sk_nulls_for_each_rcu(sk, node, &head->chain) { in inet_twsk_purge()
|
/net/ipv6/ |
D | inet6_hashtables.c | 71 sk_nulls_for_each_rcu(sk, node, &head->chain) { in __inet6_lookup_established() 268 sk_nulls_for_each(sk2, node, &head->chain) { in __inet6_check_established() 290 __sk_nulls_add_node_rcu(sk, &head->chain); in __inet6_check_established()
|
/net/switchdev/ |
D | switchdev.c | 356 struct blocking_notifier_head *chain = &switchdev_blocking_notif_chain; in register_switchdev_blocking_notifier() local 358 return blocking_notifier_chain_register(chain, nb); in register_switchdev_blocking_notifier() 364 struct blocking_notifier_head *chain = &switchdev_blocking_notif_chain; in unregister_switchdev_blocking_notifier() local 366 return blocking_notifier_chain_unregister(chain, nb); in unregister_switchdev_blocking_notifier()
|