| /Linux-v5.4/net/openvswitch/ |
| D | flow_table.h | 34 struct flow_table { struct 51 int ovs_flow_tbl_init(struct flow_table *); argument 52 int ovs_flow_tbl_count(const struct flow_table *table); 53 void ovs_flow_tbl_destroy(struct flow_table *table); 54 int ovs_flow_tbl_flush(struct flow_table *flow_table); 56 int ovs_flow_tbl_insert(struct flow_table *table, struct sw_flow *flow, 58 void ovs_flow_tbl_remove(struct flow_table *table, struct sw_flow *flow); 59 int ovs_flow_tbl_num_masks(const struct flow_table *table); 62 struct sw_flow *ovs_flow_tbl_lookup_stats(struct flow_table *, 65 struct sw_flow *ovs_flow_tbl_lookup(struct flow_table *, [all …]
|
| D | flow_table.c | 96 int ovs_flow_tbl_count(const struct flow_table *table) in ovs_flow_tbl_count() 167 int ovs_flow_tbl_init(struct flow_table *table) in ovs_flow_tbl_init() 220 hlist_for_each_entry_safe(flow, n, head, flow_table.node[ver]) { in table_instance_destroy() 221 hlist_del_rcu(&flow->flow_table.node[ver]); in table_instance_destroy() 241 void ovs_flow_tbl_destroy(struct flow_table *table) in ovs_flow_tbl_destroy() 261 hlist_for_each_entry_rcu(flow, head, flow_table.node[ver]) { in ovs_flow_tbl_dump_next() 287 head = find_bucket(ti, flow->flow_table.hash); in table_instance_insert() 288 hlist_add_head_rcu(&flow->flow_table.node[ti->node_ver], head); in table_instance_insert() 320 flow_table.node[old_ver]) in flow_table_copy_flows() 341 int ovs_flow_tbl_flush(struct flow_table *flow_table) in ovs_flow_tbl_flush() argument [all …]
|
| D | Makefile | 14 flow_table.o \
|
| D | datapath.h | 69 struct flow_table table;
|
| D | flow.h | 210 } flow_table, ufid_table; member
|
| /Linux-v5.4/net/netfilter/ |
| D | nf_flow_table_core.c | 201 int flow_offload_add(struct nf_flowtable *flow_table, struct flow_offload *flow) in flow_offload_add() argument 207 err = rhashtable_insert_fast(&flow_table->rhashtable, in flow_offload_add() 213 err = rhashtable_insert_fast(&flow_table->rhashtable, in flow_offload_add() 217 rhashtable_remove_fast(&flow_table->rhashtable, in flow_offload_add() 232 static void flow_offload_del(struct nf_flowtable *flow_table, in flow_offload_del() argument 237 rhashtable_remove_fast(&flow_table->rhashtable, in flow_offload_del() 240 rhashtable_remove_fast(&flow_table->rhashtable, in flow_offload_del() 267 flow_offload_lookup(struct nf_flowtable *flow_table, in flow_offload_lookup() argument 275 tuplehash = rhashtable_lookup(&flow_table->rhashtable, tuple, in flow_offload_lookup() 294 nf_flow_table_iterate(struct nf_flowtable *flow_table, in nf_flow_table_iterate() argument [all …]
|
| D | nf_flow_table_ip.c | 240 struct nf_flowtable *flow_table = priv; in nf_flow_offload_ip_hook() local 256 tuplehash = flow_offload_lookup(flow_table, &tuple); in nf_flow_offload_ip_hook() 470 struct nf_flowtable *flow_table = priv; in nf_flow_offload_ipv6_hook() local 485 tuplehash = flow_offload_lookup(flow_table, &tuple); in nf_flow_offload_ipv6_hook()
|
| /Linux-v5.4/include/net/netfilter/ |
| D | nf_flow_table.h | 93 int flow_offload_add(struct nf_flowtable *flow_table, struct flow_offload *flow); 94 struct flow_offload_tuple_rhash *flow_offload_lookup(struct nf_flowtable *flow_table, 98 int nf_flow_table_init(struct nf_flowtable *flow_table); 99 void nf_flow_table_free(struct nf_flowtable *flow_table);
|
| /Linux-v5.4/drivers/net/ethernet/netronome/nfp/flower/ |
| D | metadata.c | 108 return rhashtable_lookup_fast(&priv->flow_table, &flower_cmp_arg, in nfp_flower_search_fl_table() 491 err = rhashtable_init(&priv->flow_table, &nfp_flower_table_params); in nfp_flower_metadata_init() 546 rhashtable_destroy(&priv->flow_table); in nfp_flower_metadata_init() 557 rhashtable_free_and_destroy(&priv->flow_table, in nfp_flower_metadata_cleanup()
|
| D | offload.c | 972 err = rhashtable_insert_fast(&priv->flow_table, &merge_flow->fl_node, in nfp_flower_merge_offloaded_flows() 988 WARN_ON_ONCE(rhashtable_remove_fast(&priv->flow_table, in nfp_flower_merge_offloaded_flows() 1166 err = rhashtable_insert_fast(&priv->flow_table, &flow_pay->fl_node, in nfp_flower_add_offload() 1192 WARN_ON_ONCE(rhashtable_remove_fast(&priv->flow_table, in nfp_flower_add_offload() 1257 WARN_ON_ONCE(rhashtable_remove_fast(&priv->flow_table, in nfp_flower_remove_merge_flow() 1333 WARN_ON_ONCE(rhashtable_remove_fast(&priv->flow_table, in nfp_flower_del_offload()
|
| D | main.h | 178 struct rhashtable flow_table; member
|
| /Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/ |
| D | bnxt_tc.c | 1211 rc = rhashtable_remove_fast(&tc_info->flow_table, &flow_node->node, in __bnxt_tc_del_flow() 1281 old_node = rhashtable_lookup_fast(&tc_info->flow_table, in bnxt_tc_add_flow() 1309 rc = rhashtable_insert_fast(&tc_info->flow_table, &new_node->node, in bnxt_tc_add_flow() 1339 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in bnxt_tc_del_flow() 1357 flow_node = rhashtable_lookup_fast(&tc_info->flow_table, in bnxt_tc_get_flow_stats() 1543 num_flows = atomic_read(&tc_info->flow_table.nelems); in bnxt_tc_flow_stats_work() 1547 rhashtable_walk_enter(&tc_info->flow_table, &tc_info->iter); in bnxt_tc_flow_stats_work() 1635 rc = rhashtable_init(&tc_info->flow_table, &tc_info->flow_ht_params); in bnxt_init_tc() 1675 rhashtable_destroy(&tc_info->flow_table); in bnxt_init_tc() 1688 rhashtable_destroy(&tc_info->flow_table); in bnxt_shutdown_tc()
|
| D | bnxt.h | 1248 struct rhashtable flow_table; member
|
| /Linux-v5.4/net/core/ |
| D | net-sysfs.c | 769 struct rps_dev_flow_table *flow_table; in show_rps_dev_flow_table_cnt() local 773 flow_table = rcu_dereference(queue->rps_flow_table); in show_rps_dev_flow_table_cnt() 774 if (flow_table) in show_rps_dev_flow_table_cnt() 775 val = (unsigned long)flow_table->mask + 1; in show_rps_dev_flow_table_cnt() 869 struct rps_dev_flow_table *flow_table; in rx_queue_release() local 877 flow_table = rcu_dereference_protected(queue->rps_flow_table, 1); in rx_queue_release() 878 if (flow_table) { in rx_queue_release() 880 call_rcu(&flow_table->rcu, rps_dev_flow_table_release); in rx_queue_release()
|
| D | dev.c | 3920 struct rps_dev_flow_table *flow_table; in set_rps_cpu() local 3935 flow_table = rcu_dereference(rxqueue->rps_flow_table); in set_rps_cpu() 3936 if (!flow_table) in set_rps_cpu() 3938 flow_id = skb_get_hash(skb) & flow_table->mask; in set_rps_cpu() 3944 rflow = &flow_table->flows[flow_id]; in set_rps_cpu() 3968 struct rps_dev_flow_table *flow_table; in get_rps_cpu() local 3989 flow_table = rcu_dereference(rxqueue->rps_flow_table); in get_rps_cpu() 3991 if (!flow_table && !map) in get_rps_cpu() 4000 if (flow_table && sock_flow_table) { in get_rps_cpu() 4015 rflow = &flow_table->flows[hash & flow_table->mask]; in get_rps_cpu() [all …]
|
| /Linux-v5.4/drivers/infiniband/hw/mlx5/ |
| D | main.c | 3177 mlx5_destroy_flow_table(prio->flow_table); in put_flow_table() 3178 prio->flow_table = NULL; in put_flow_table() 3255 prio->flow_table = ft; in _get_prio() 3339 ft = prio->flow_table; in get_flow_table() 3524 struct mlx5_flow_table *ft = ft_prio->flow_table; in _create_flow_rule() 3641 ft_prio->flow_table = ft; in _create_flow_rule() 3999 if (prio->flow_table) in _get_flow_table() 4018 struct mlx5_flow_table *ft = ft_prio->flow_table; in _create_raw_flow_rule() 4047 ft_prio->flow_table = ft; in _create_raw_flow_rule()
|
| D | mlx5_ib.h | 172 struct mlx5_flow_table *flow_table; member
|