Searched refs:basechain (Results 1 – 8 of 8) sorted by relevance
/linux/net/netfilter/ |
H A D | nf_tables_offload.c | 212 static int nft_chain_offload_priority(const struct nft_base_chain *basechain) in nft_chain_offload_priority() argument 214 if (basechain->ops.priority <= 0 || in nft_chain_offload_priority() 215 basechain->ops.priority > USHRT_MAX) in nft_chain_offload_priority() 221 bool nft_chain_offload_support(const struct nft_base_chain *basechain) in nft_chain_offload_support() argument 226 if (nft_chain_offload_priority(basechain) < 0) in nft_chain_offload_support() 229 list_for_each_entry(hook, &basechain->hook_list, list) { in nft_chain_offload_support() 243 const struct nft_base_chain *basechain, in nft_flow_cls_offload_setup() argument 257 basechain->ops.priority, extack); in nft_flow_cls_offload_setup() 271 struct nft_base_chain *basechain; in nft_flow_offload_cmd() local 276 basechain = nft_base_chain(chain); in nft_flow_offload_cmd() [all …]
|
H A D | nf_tables_trace.c | 176 return &info->basechain->chain; in nft_trace_get_chain() 184 return &info->basechain->chain; in nft_trace_get_chain() 233 nlh = nfnl_msg_put(skb, 0, 0, event, 0, info->basechain->type->family, in nft_trace_notify() 280 htonl(info->basechain->policy))) in nft_trace_notify() 312 info->basechain = nft_base_chain(chain); in nft_trace_init()
|
H A D | nft_chain_filter.c | 324 struct nft_base_chain *basechain = nft_base_chain(ctx->chain); in nft_netdev_event() local 328 list_for_each_entry(hook, &basechain->hook_list, list) { in nft_netdev_event() 359 struct nft_base_chain *basechain; in nf_tables_netdev_event() local 383 basechain = nft_base_chain(chain); in nf_tables_netdev_event() 385 basechain->ops.hooknum != NF_INET_INGRESS) in nf_tables_netdev_event()
|
H A D | nft_compat.c | 36 const struct nft_base_chain *basechain; in nft_compat_chain_validate_dependency() local 42 basechain = nft_base_chain(chain); in nft_compat_chain_validate_dependency() 46 if (basechain->type->type != type) in nft_compat_chain_validate_dependency() 173 const struct nft_base_chain *basechain = in nft_target_set_tgchk_param() local 175 const struct nf_hook_ops *ops = &basechain->ops; in nft_target_set_tgchk_param() 376 const struct nft_base_chain *basechain = in nft_target_validate() local 378 const struct nf_hook_ops *ops = &basechain->ops; in nft_target_validate() 473 const struct nft_base_chain *basechain = in nft_match_set_mtchk_param() local 475 const struct nf_hook_ops *ops = &basechain->ops; in nft_match_set_mtchk_param() 636 const struct nft_base_chain *basechain = in nft_match_validate() local [all …]
|
H A D | nf_tables_core.c | 255 const struct nft_chain *chain = priv, *basechain = chain; in nft_do_chain() local 268 nft_trace_init(&info, pkt, basechain); in nft_do_chain() 344 nft_update_chain_stats(basechain, pkt); in nft_do_chain() 346 if (nft_base_chain(basechain)->policy == NF_DROP) in nft_do_chain() 349 return nft_base_chain(basechain)->policy; in nft_do_chain()
|
H A D | nf_tables_api.c | 347 struct nft_base_chain *basechain; in nf_tables_register_hook() local 354 basechain = nft_base_chain(chain); in nf_tables_register_hook() 355 ops = &basechain->ops; in nf_tables_register_hook() 357 if (basechain->type->ops_register) in nf_tables_register_hook() 358 return basechain->type->ops_register(net, ops); in nf_tables_register_hook() 360 if (nft_base_chain_netdev(table->family, basechain->ops.hooknum)) in nf_tables_register_hook() 361 return nft_netdev_register_hooks(net, &basechain->hook_list); in nf_tables_register_hook() 363 return nf_register_net_hook(net, &basechain->ops); in nf_tables_register_hook() 371 struct nft_base_chain *basechain; in __nf_tables_unregister_hook() local 377 basechain = nft_base_chain(chain); in __nf_tables_unregister_hook() [all …]
|
/linux/include/net/netfilter/ |
H A D | nf_tables_offload.h | 95 bool nft_chain_offload_support(const struct nft_base_chain *basechain);
|
H A D | nf_tables.h | 1494 const struct nft_base_chain *basechain; member 1498 const struct nft_chain *basechain); 1718 struct nft_base_chain *basechain; member 1739 nft_trans_container_chain(trans)->basechain
|