Home
last modified time | relevance | path

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

/net/netfilter/
A Dnf_flow_table_offload.c23 struct nf_flowtable *flowtable; member
736 const struct nf_flowtable *flowtable = offload->flowtable; in nf_flow_offload_rule_alloc() local
863 up_read(&flowtable->flow_block_lock); in nf_flow_offload_tuple()
877 offload->flowtable->priority, in flow_offload_tuple_add()
886 offload->flowtable->priority, in flow_offload_tuple_del()
940 offload->flowtable->priority, in flow_offload_tuple_stats()
1032 offload->flowtable = flowtable; in nf_flow_offload_work_alloc()
1085 nf_flow_table_gc_run(flowtable); in nf_flow_table_offload_flush_cleanup()
1120 up_write(&flowtable->flow_block_lock); in nf_flow_table_block_setup()
1133 bo->block = &flowtable->flow_block; in nf_flow_table_block_offload_init()
[all …]
A Dnft_flow_offload.c20 struct nft_flowtable *flowtable; member
166 if (nf_flowtable_hw_offload(flowtable) && in nft_dev_path_info()
306 struct nf_flowtable *flowtable = &priv->flowtable->data; in nft_flow_offload_eval() local
372 ret = flow_offload_add(flowtable, flow); in nft_flow_offload_eval()
413 struct nft_flowtable *flowtable; in nft_flow_offload_init() local
418 flowtable = nft_flowtable_lookup(ctx->net, ctx->table, in nft_flow_offload_init()
420 if (IS_ERR(flowtable)) in nft_flow_offload_init()
421 return PTR_ERR(flowtable); in nft_flow_offload_init()
423 if (!nft_use_inc(&flowtable->use)) in nft_flow_offload_init()
426 priv->flowtable = flowtable; in nft_flow_offload_init()
[all …]
A Dnf_flow_table_core.c418 void (*iter)(struct nf_flowtable *flowtable, in nf_flow_table_iterate() argument
693 flow_block_init(&flowtable->flow_block); in nf_flow_table_init()
694 init_rwsem(&flowtable->flow_block_lock); in nf_flow_table_init()
696 err = rhashtable_init(&flowtable->rhashtable, in nf_flow_table_init()
702 &flowtable->gc_work, HZ); in nf_flow_table_init()
705 list_add(&flowtable->list, &flowtables); in nf_flow_table_init()
732 flush_delayed_work(&flowtable->gc_work); in nf_flow_table_gc_cleanup()
733 nf_flow_table_offload_flush(flowtable); in nf_flow_table_gc_cleanup()
738 struct nf_flowtable *flowtable; in nf_flow_table_cleanup() local
741 list_for_each_entry(flowtable, &flowtables, list) in nf_flow_table_cleanup()
[all …]
A Dnf_tables_api.c8801 return flowtable; in nft_flowtable_lookup()
8966 flowtable->data.type->setup(&flowtable->data, ops->dev, in nft_unregister_flowtable_ops()
9001 err = flowtable->data.type->setup(&flowtable->data, in nft_register_flowtable_ops()
9010 flowtable->data.type->setup(&flowtable->data, in nft_register_flowtable_ops()
9217 flowtable = kzalloc(sizeof(*flowtable), GFP_KERNEL_ACCOUNT); in nf_tables_newflowtable()
9218 if (!flowtable) { in nf_tables_newflowtable()
9272 flowtable); in nf_tables_newflowtable()
9285 flowtable->data.type->free(&flowtable->data); in nf_tables_newflowtable()
9291 kfree(flowtable); in nf_tables_newflowtable()
9666 flowtable->data.type->free(&flowtable->data); in nf_tables_flowtable_destroy()
[all …]
A Dnf_flow_table_xdp.c133 int nf_flow_offload_xdp_setup(struct nf_flowtable *flowtable, in nf_flow_offload_xdp_setup() argument
139 return nf_flowtable_by_dev_insert(flowtable, dev); in nf_flow_offload_xdp_setup()
141 nf_flowtable_by_dev_remove(flowtable, dev); in nf_flow_offload_xdp_setup()

Completed in 45 milliseconds