Home
last modified time | relevance | path

Searched refs:basechain (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/net/netfilter/
H A Dnf_tables_offload.c212 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 Dnf_tables_trace.c176 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()
276 htonl(info->basechain->policy))) in nft_trace_notify()
308 info->basechain = nft_base_chain(chain); in nft_trace_init()
H A Dnft_chain_filter.c324 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()
362 struct nft_base_chain *basechain; in nf_tables_netdev_event() local
387 basechain = nft_base_chain(chain); in nf_tables_netdev_event()
389 basechain->ops.hooknum != NF_INET_INGRESS) in nf_tables_netdev_event()
H A Dnft_compat.c36 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()
377 const struct nft_base_chain *basechain = in nft_target_validate() local
379 const struct nf_hook_ops *ops = &basechain->ops; in nft_target_validate()
474 const struct nft_base_chain *basechain = in nft_match_set_mtchk_param() local
476 const struct nf_hook_ops *ops = &basechain->ops; in nft_match_set_mtchk_param()
638 const struct nft_base_chain *basechain = in nft_match_validate() local
[all …]
H A Dnf_tables_api.c322 struct nft_base_chain *basechain; in nf_tables_register_hook() local
329 basechain = nft_base_chain(chain); in nf_tables_register_hook()
330 ops = &basechain->ops; in nf_tables_register_hook()
332 if (basechain->type->ops_register) in nf_tables_register_hook()
333 return basechain->type->ops_register(net, ops); in nf_tables_register_hook()
335 if (nft_base_chain_netdev(table->family, basechain->ops.hooknum)) in nf_tables_register_hook()
336 return nft_netdev_register_hooks(net, &basechain->hook_list); in nf_tables_register_hook()
338 return nf_register_net_hook(net, &basechain->ops); in nf_tables_register_hook()
346 struct nft_base_chain *basechain; in __nf_tables_unregister_hook() local
352 basechain = nft_base_chain(chain); in __nf_tables_unregister_hook()
[all …]
H A Dnf_tables_core.c255 const struct nft_chain *chain = priv, *basechain = chain; in nft_do_chain() local
268 nft_trace_init(&info, pkt, basechain); in nft_do_chain()
343 nft_update_chain_stats(basechain, pkt); in nft_do_chain()
345 return nft_base_chain(basechain)->policy; in nft_do_chain()
/openbmc/linux/include/net/netfilter/
H A Dnf_tables_offload.h95 bool nft_chain_offload_support(const struct nft_base_chain *basechain);
H A Dnf_tables.h1456 * @basechain: base chain currently processed
1464 const struct nft_base_chain *basechain;
1468 const struct nft_chain *basechain);
1658 struct nft_base_chain *basechain;
1677 (((struct nft_trans_chain *)trans->data)->basechain)
1461 const struct nft_base_chain *basechain; global() member
1655 struct nft_base_chain *basechain; global() member