Searched refs:basechain (Results 1 – 5 of 5) 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 227 if (nft_chain_offload_priority(basechain) < 0) in nft_chain_offload_support() 230 list_for_each_entry(hook, &basechain->hook_list, list) { in nft_chain_offload_support() 247 const struct nft_base_chain *basechain, in nft_flow_cls_offload_setup() argument 261 basechain->ops.priority, extack); in nft_flow_cls_offload_setup() 275 struct nft_base_chain *basechain; in nft_flow_offload_cmd() local 280 basechain = nft_base_chain(chain); in nft_flow_offload_cmd() [all …]
|
| H A D | nft_chain_filter.c | 323 struct nft_base_chain *basechain, bool changename) in nft_netdev_event() argument 325 struct nft_table *table = basechain->chain.table; in nft_netdev_event() 330 list_for_each_entry(hook, &basechain->hook_list, list) { in nft_netdev_event() 351 ops = kmemdup(&basechain->ops, in nft_netdev_event() 376 struct nft_base_chain *basechain; in __nf_tables_netdev_event() local 391 basechain = nft_base_chain(chain); in __nf_tables_netdev_event() 393 basechain->ops.hooknum != NF_INET_INGRESS) in __nf_tables_netdev_event() 396 if (nft_netdev_event(event, dev, basechain, changename)) 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() 174 const struct nft_base_chain *basechain = in nft_target_set_tgchk_param() local 176 const struct nf_hook_ops *ops = &basechain->ops; in nft_target_set_tgchk_param() 375 const struct nft_base_chain *basechain = in nft_target_validate() local 377 const struct nf_hook_ops *ops = &basechain->ops; in nft_target_validate() 499 const struct nft_base_chain *basechain = in nft_match_set_mtchk_param() local 501 const struct nf_hook_ops *ops = &basechain->ops; in nft_match_set_mtchk_param() 660 const struct nft_base_chain *basechain = in nft_match_validate() local [all …]
|
| H A D | nf_tables_api.c | 429 struct nft_base_chain *basechain; in nf_tables_register_hook() local 436 basechain = nft_base_chain(chain); in nf_tables_register_hook() 437 ops = &basechain->ops; in nf_tables_register_hook() 439 if (basechain->type->ops_register) in nf_tables_register_hook() 440 return basechain->type->ops_register(net, ops); in nf_tables_register_hook() 442 if (nft_base_chain_netdev(table->family, basechain->ops.hooknum)) in nf_tables_register_hook() 443 return nft_netdev_register_hooks(net, &basechain->hook_list); in nf_tables_register_hook() 445 return nf_register_net_hook(net, &basechain->ops); in nf_tables_register_hook() 453 struct nft_base_chain *basechain; in __nf_tables_unregister_hook() local 458 basechain = nft_base_chain(chain); in __nf_tables_unregister_hook() [all …]
|
| /linux/include/net/netfilter/ |
| H A D | nf_tables.h | 1525 const struct nft_base_chain *basechain; member 1529 const struct nft_chain *basechain); 1759 struct nft_base_chain *basechain; member 1780 nft_trans_container_chain(trans)->basechain
|