Home
last modified time | relevance | path

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

/linux/Documentation/networking/
H A Dnf_flowtable.rst4 Netfilter's flowtable infrastructure
7 This documentation describes the Netfilter flowtable infrastructure which allows
8 you to define a fastpath through the flowtable datapath. This infrastructure
9 also provides hardware offload support. The flowtable supports for the layer 3
17 flowtable through your ruleset. The flowtable infrastructure provides a rule
18 action that allows you to specify when to add a flow to the flowtable.
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
27 The flowtable uses a resizable hashtable. Lookups are based on the following
32 The 'flow add' action allows you to populate the flowtable, the user selectively
[all …]
H A Dnetdevices.rst313 runs under ``flowtable->flow_block_lock``.
/linux/net/netfilter/
H A Dnf_flow_table_offload.c27 struct nf_flowtable *flowtable; member
802 const struct nf_flowtable *flowtable = offload->flowtable; in nf_flow_offload_rule_alloc() local
831 if (flowtable->type->action(net, flow, dir, flow_rule) < 0) in nf_flow_offload_rule_alloc()
871 struct net *net = read_pnet(&offload->flowtable->net); in nf_flow_offload_alloc()
901 static int nf_flow_offload_tuple(struct nf_flowtable *flowtable, in nf_flow_offload_tuple() argument
920 down_read(&flowtable->flow_block_lock); in nf_flow_offload_tuple()
929 up_read(&flowtable->flow_block_lock); in nf_flow_offload_tuple()
941 return nf_flow_offload_tuple(offload->flowtable, offload->flow, in flow_offload_tuple_add()
943 offload->flowtable in flow_offload_tuple_add()
1087 nf_flow_offload_work_alloc(struct nf_flowtable * flowtable,struct flow_offload * flow,unsigned int cmd) nf_flow_offload_work_alloc() argument
1118 nf_flow_offload_refresh(struct nf_flowtable * flowtable,struct flow_offload * flow) nf_flow_offload_refresh() argument
1130 nf_flow_offload_add(struct nf_flowtable * flowtable,struct flow_offload * flow) nf_flow_offload_add() argument
1140 nf_flow_offload_del(struct nf_flowtable * flowtable,struct flow_offload * flow) nf_flow_offload_del() argument
1153 nf_flow_offload_stats(struct nf_flowtable * flowtable,struct flow_offload * flow) nf_flow_offload_stats() argument
1170 nf_flow_table_offload_flush_cleanup(struct nf_flowtable * flowtable) nf_flow_table_offload_flush_cleanup() argument
1178 nf_flow_table_offload_flush(struct nf_flowtable * flowtable) nf_flow_table_offload_flush() argument
1187 nf_flow_table_block_setup(struct nf_flowtable * flowtable,struct flow_block_offload * bo,enum flow_block_command cmd) nf_flow_table_block_setup() argument
1217 nf_flow_table_block_offload_init(struct flow_block_offload * bo,struct net * net,enum flow_block_command cmd,struct nf_flowtable * flowtable,struct netlink_ext_ack * extack) nf_flow_table_block_offload_init() argument
1232 struct nf_flowtable *flowtable = block_cb->indr.data; nf_flow_table_indr_cleanup() local
1244 nf_flow_table_indr_offload_cmd(struct flow_block_offload * bo,struct nf_flowtable * flowtable,struct net_device * dev,enum flow_block_command cmd,struct netlink_ext_ack * extack) nf_flow_table_indr_offload_cmd() argument
1257 nf_flow_table_offload_cmd(struct flow_block_offload * bo,struct nf_flowtable * flowtable,struct net_device * dev,enum flow_block_command cmd,struct netlink_ext_ack * extack) nf_flow_table_offload_cmd() argument
1275 nf_flow_table_offload_setup(struct nf_flowtable * flowtable,struct net_device * dev,enum flow_block_command cmd) nf_flow_table_offload_setup() argument
[all...]
H A Dnf_flow_table_core.c434 void (*iter)(struct nf_flowtable *flowtable, in nf_flow_table_iterate() argument
532 * flowtable and ct entries could have been removed on another CPU. in nf_flow_table_extend_ct_timeout()
716 int nf_flow_table_init(struct nf_flowtable *flowtable) in nf_flow_table_init()
720 INIT_DELAYED_WORK(&flowtable->gc_work, nf_flow_offload_work_gc); in nf_flow_table_init()
721 flow_block_init(&flowtable->flow_block); in nf_flow_table_init()
722 init_rwsem(&flowtable->flow_block_lock); in nf_flow_table_init()
724 err = rhashtable_init(&flowtable->rhashtable, in nf_flow_table_init()
730 &flowtable->gc_work, HZ); in nf_flow_table_init()
733 list_add(&flowtable->list, &flowtables);
756 void nf_flow_table_gc_cleanup(struct nf_flowtable *flowtable, in nf_flow_table_gc_cleanup()
711 nf_flow_table_init(struct nf_flowtable * flowtable) nf_flow_table_init() argument
751 nf_flow_table_gc_cleanup(struct nf_flowtable * flowtable,struct net_device * dev) nf_flow_table_gc_cleanup() argument
761 struct nf_flowtable *flowtable; nf_flow_table_cleanup() local
[all...]
H A Dnf_tables_api.c946 struct nft_flowtable *flowtable) in nft_trans_flowtable_add() argument
956 nft_activate_next(ctx->net, flowtable); in nft_trans_flowtable_add()
959 nft_trans_flowtable(trans) = flowtable; in nft_trans_flowtable_add()
966 struct nft_flowtable *flowtable) in nft_delflowtable() argument
970 trans = nft_trans_flowtable_add(ctx, NFT_MSG_DELFLOWTABLE, flowtable); in nft_delflowtable()
974 nft_deactivate_next(ctx->net, flowtable); in nft_delflowtable()
1678 struct nft_flowtable *flowtable, *nft; in nft_flush_table() local
1710 list_for_each_entry_safe(flowtable, nft, &ctx->table->flowtables, list) { in nft_flush_table()
1711 if (!nft_is_active_next(ctx->net, flowtable)) in nft_flush_table()
1714 err = nft_delflowtable(ctx, flowtable); in nft_flush_table()
[all …]
H 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()
/linux/include/net/netfilter/
H A Dnf_flow_table.h89 static inline bool nf_flowtable_hw_offload(struct nf_flowtable *flowtable) in nf_flowtable_hw_offload() argument
91 return flowtable->flags & NF_FLOWTABLE_HW_OFFLOAD; in nf_flowtable_hw_offload()
324 void nf_flow_table_gc_cleanup(struct nf_flowtable *flowtable,
345 int nf_flow_offload_xdp_setup(struct nf_flowtable *flowtable,
365 MODULE_ALIAS("nf-flowtable-" __stringify(family))
367 void nf_flow_offload_add(struct nf_flowtable *flowtable,
369 void nf_flow_offload_refresh(struct nf_flowtable *flowtable,
371 void nf_flow_offload_del(struct nf_flowtable *flowtable,
373 void nf_flow_offload_stats(struct nf_flowtable *flowtable,
376 void nf_flow_table_offload_flush(struct nf_flowtable *flowtable);
[all...]
H A Dnf_tables.h1503 struct nft_flowtable *flowtable,
1843 struct nft_flowtable *flowtable; member
1852 nft_trans_container_flowtable(trans)->flowtable
/linux/tools/testing/selftests/net/netfilter/
H A Dnft_interface_stress.sh59 flowtable ft_${i} {
105 flowtable ft_wild {
H A Dnft_flowtable.sh164 flowtable f1 {