Home
last modified time | relevance | path

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

/linux/Documentation/networking/
A Dnf_flowtable.rst4 Netfilter's flowtable infrastructure
17 flowtable through your ruleset. The flowtable infrastructure provides a rule
20 A packet that finds a matching entry in the flowtable (ie. flowtable hit) is
24 there is no matching entry in the flowtable (ie. flowtable miss), the packet
70 Fig.1 Netfilter hooks and flowtable interactions
85 flowtable and add one rule to your forward chain::
88 flowtable f {
127 flowtable datapath also deals with layer 2 decapsulation.
175 flowtable f {
192 flowtable f {
[all …]
/linux/net/netfilter/
A Dnf_flow_table_offload.c24 struct nf_flowtable *flowtable; member
725 const struct nf_flowtable *flowtable = offload->flowtable; in nf_flow_offload_rule_alloc() local
843 down_read(&flowtable->flow_block_lock); in nf_flow_offload_tuple()
852 up_read(&flowtable->flow_block_lock); in nf_flow_offload_tuple()
1003 offload->priority = flowtable->priority; in nf_flow_offload_work_alloc()
1004 offload->flowtable = flowtable; in nf_flow_offload_work_alloc()
1090 struct nf_flowtable *flowtable, in nf_flow_table_block_offload_init() argument
1095 bo->block = &flowtable->flow_block; in nf_flow_table_block_offload_init()
1113 up_write(&flowtable->flow_block_lock); in nf_flow_table_indr_cleanup()
1117 struct nf_flowtable *flowtable, in nf_flow_table_indr_offload_cmd() argument
[all …]
A Dnft_flow_offload.c19 struct nft_flowtable *flowtable; member
92 unsigned char *ha, struct nf_flowtable *flowtable) in nft_dev_path_info() argument
160 if (nf_flowtable_hw_offload(flowtable) && in nft_dev_path_info()
276 struct nf_flowtable *flowtable = &priv->flowtable->data; in nft_flow_offload_eval() local
331 ret = flow_offload_add(flowtable, flow); in nft_flow_offload_eval()
368 struct nft_flowtable *flowtable; in nft_flow_offload_init() local
375 if (IS_ERR(flowtable)) in nft_flow_offload_init()
376 return PTR_ERR(flowtable); in nft_flow_offload_init()
378 priv->flowtable = flowtable; in nft_flow_offload_init()
379 flowtable->use++; in nft_flow_offload_init()
[all …]
A Dnf_flow_table_core.c574 int nf_flow_table_init(struct nf_flowtable *flowtable) in nf_flow_table_init() argument
579 flow_block_init(&flowtable->flow_block); in nf_flow_table_init()
580 init_rwsem(&flowtable->flow_block_lock); in nf_flow_table_init()
582 err = rhashtable_init(&flowtable->rhashtable, in nf_flow_table_init()
588 &flowtable->gc_work, HZ); in nf_flow_table_init()
591 list_add(&flowtable->list, &flowtables); in nf_flow_table_init()
617 flush_delayed_work(&flowtable->gc_work); in nf_flow_table_gc_cleanup()
618 nf_flow_table_offload_flush(flowtable); in nf_flow_table_gc_cleanup()
623 struct nf_flowtable *flowtable; in nf_flow_table_cleanup() local
626 list_for_each_entry(flowtable, &flowtables, list) in nf_flow_table_cleanup()
[all …]
A Dnf_tables_api.c7190 flowtable->data.type->setup(&flowtable->data, hook->ops.dev, in nft_unregister_flowtable_hook()
7226 err = flowtable->data.type->setup(&flowtable->data, in nft_register_flowtable_net_hooks()
7234 flowtable->data.type->setup(&flowtable->data, in nft_register_flowtable_net_hooks()
7386 flowtable = kzalloc(sizeof(*flowtable), GFP_KERNEL); in nf_tables_newflowtable()
7387 if (!flowtable) in nf_tables_newflowtable()
7453 flowtable->data.type->free(&flowtable->data); in nf_tables_newflowtable()
7459 kfree(flowtable); in nf_tables_newflowtable()
7763 flowtable, &flowtable->hook_list); in nf_tables_getflowtable()
7813 flowtable->data.type->free(&flowtable->data); in nf_tables_flowtable_destroy()
7815 flowtable->data.type->setup(&flowtable->data, hook->ops.dev, in nf_tables_flowtable_destroy()
[all …]
/linux/include/net/netfilter/
A Dnf_flow_table.h83 static inline bool nf_flowtable_hw_offload(struct nf_flowtable *flowtable) in nf_flowtable_hw_offload() argument
85 return flowtable->flags & NF_FLOWTABLE_HW_OFFLOAD; in nf_flowtable_hw_offload()
267 void nf_flow_table_gc_cleanup(struct nf_flowtable *flowtable,
295 void nf_flow_offload_add(struct nf_flowtable *flowtable,
297 void nf_flow_offload_del(struct nf_flowtable *flowtable,
299 void nf_flow_offload_stats(struct nf_flowtable *flowtable,
302 void nf_flow_table_offload_flush(struct nf_flowtable *flowtable);
303 int nf_flow_table_offload_setup(struct nf_flowtable *flowtable,
A Dnf_tables.h1302 struct nft_flowtable *flowtable,
1557 struct nft_flowtable *flowtable; member
1564 (((struct nft_trans_flowtable *)trans->data)->flowtable)
/linux/tools/testing/selftests/netfilter/
A Dnft_flowtable.sh153 flowtable f1 {

Completed in 38 milliseconds