Searched refs:basechain (Results 1 – 8 of 8) sorted by relevance
/linux-6.1.9/net/netfilter/ |
D | nf_tables_offload.c | 211 static int nft_chain_offload_priority(const struct nft_base_chain *basechain) in nft_chain_offload_priority() argument 213 if (basechain->ops.priority <= 0 || in nft_chain_offload_priority() 214 basechain->ops.priority > USHRT_MAX) in nft_chain_offload_priority() 220 bool nft_chain_offload_support(const struct nft_base_chain *basechain) in nft_chain_offload_support() argument 225 if (nft_chain_offload_priority(basechain) < 0) in nft_chain_offload_support() 228 list_for_each_entry(hook, &basechain->hook_list, list) { in nft_chain_offload_support() 242 const struct nft_base_chain *basechain, in nft_flow_cls_offload_setup() argument 256 basechain->ops.priority, extack); in nft_flow_cls_offload_setup() 270 struct nft_base_chain *basechain; in nft_flow_offload_cmd() local 275 basechain = nft_base_chain(chain); in nft_flow_offload_cmd() [all …]
|
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() 353 const struct nft_base_chain *basechain = in nft_target_validate() local 355 const struct nf_hook_ops *ops = &basechain->ops; in nft_target_validate() 450 const struct nft_base_chain *basechain = in nft_match_set_mtchk_param() local 452 const struct nf_hook_ops *ops = &basechain->ops; in nft_match_set_mtchk_param() 596 const struct nft_base_chain *basechain = in nft_match_validate() local [all …]
|
D | nf_tables_core.c | 230 const struct nft_chain *chain = priv, *basechain = chain; in nft_do_chain() local 243 nft_trace_init(&info, pkt, ®s.verdict, basechain); in nft_do_chain() 320 nft_trace_packet(pkt, &info, basechain, NULL, NFT_TRACETYPE_POLICY); in nft_do_chain() 323 nft_update_chain_stats(basechain, pkt); in nft_do_chain() 325 return nft_base_chain(basechain)->policy; in nft_do_chain()
|
D | nf_tables_trace.c | 206 nlh = nfnl_msg_put(skb, 0, 0, event, 0, info->basechain->type->family, in nft_trace_notify() 249 htonl(info->basechain->policy))) in nft_trace_notify() 282 info->basechain = nft_base_chain(chain); in nft_trace_init()
|
D | nf_tables_api.c | 243 struct nft_base_chain *basechain; in nf_tables_register_hook() local 250 basechain = nft_base_chain(chain); in nf_tables_register_hook() 251 ops = &basechain->ops; in nf_tables_register_hook() 253 if (basechain->type->ops_register) in nf_tables_register_hook() 254 return basechain->type->ops_register(net, ops); in nf_tables_register_hook() 256 if (nft_base_chain_netdev(table->family, basechain->ops.hooknum)) in nf_tables_register_hook() 257 return nft_netdev_register_hooks(net, &basechain->hook_list); in nf_tables_register_hook() 259 return nf_register_net_hook(net, &basechain->ops); in nf_tables_register_hook() 267 struct nft_base_chain *basechain; in __nf_tables_unregister_hook() local 273 basechain = nft_base_chain(chain); in __nf_tables_unregister_hook() [all …]
|
D | nft_chain_filter.c | 324 struct nft_base_chain *basechain = nft_base_chain(ctx->chain); in nft_netdev_event() local 331 list_for_each_entry(hook, &basechain->hook_list, list) { in nft_netdev_event()
|
/linux-6.1.9/include/net/netfilter/ |
D | nf_tables_offload.h | 95 bool nft_chain_offload_support(const struct nft_base_chain *basechain);
|
D | nf_tables.h | 1399 const struct nft_base_chain *basechain; member 1407 const struct nft_chain *basechain);
|