Home
last modified time | relevance | path

Searched refs:flow (Results 1 – 25 of 367) sorted by relevance

12345678910>>...15

/linux/drivers/gpu/ipu-v3/
H A Dipu-dp.c46 u32 flow; member
64 struct ipu_flow flow[IPUV3_NUM_FLOWS]; member
82 struct ipu_flow *flow = to_flow(dp); in ipu_dp_set_global_alpha() local
83 struct ipu_dp_priv *priv = flow->priv; in ipu_dp_set_global_alpha()
88 reg = readl(flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha()
93 writel(reg, flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha()
96 reg = readl(flow->base + DP_GRAPH_WIND_CTRL) & 0x00FFFFFFL; in ipu_dp_set_global_alpha()
98 flow->base + DP_GRAPH_WIND_CTRL); in ipu_dp_set_global_alpha()
100 reg = readl(flow->base + DP_COM_CONF); in ipu_dp_set_global_alpha()
101 writel(reg | DP_COM_CONF_GWAM, flow in ipu_dp_set_global_alpha()
117 struct ipu_flow *flow = to_flow(dp); ipu_dp_set_window_pos() local
128 ipu_dp_csc_init(struct ipu_flow * flow,enum drm_color_encoding ycbcr_enc,enum drm_color_range range,enum ipu_color_space in,enum ipu_color_space out,u32 place) ipu_dp_csc_init() argument
187 struct ipu_flow *flow = to_flow(dp); ipu_dp_setup_channel() local
248 struct ipu_flow *flow = to_flow(dp); ipu_dp_enable_channel() local
271 struct ipu_flow *flow = to_flow(dp); ipu_dp_disable_channel() local
316 ipu_dp_get(struct ipu_soc * ipu,unsigned int flow) ipu_dp_get() argument
[all...]
/linux/include/net/
H A Dfq_impl.h16 __fq_adjust_removal(struct fq *fq, struct fq_flow *flow, unsigned int packets, in __fq_adjust_removal() argument
19 struct fq_tin *tin = flow->tin; in __fq_adjust_removal()
24 flow->backlog -= bytes; in __fq_adjust_removal()
28 if (flow->backlog) in __fq_adjust_removal()
31 if (flow == &tin->default_flow) { in __fq_adjust_removal()
36 idx = flow - fq->flows; in __fq_adjust_removal()
41 struct fq_flow *flow, in fq_adjust_removal() argument
44 __fq_adjust_removal(fq, flow, 1, skb->len, skb->truesize); in fq_adjust_removal()
48 struct fq_flow *flow) in fq_flow_dequeue() argument
54 skb = __skb_dequeue(&flow->queue); in fq_flow_dequeue()
[all …]
/linux/drivers/net/phy/mscc/
H A Dmscc_macsec.c371 struct macsec_flow *flow) in vsc8584_macsec_flow() argument
374 enum macsec_bank bank = flow->bank; in vsc8584_macsec_flow()
375 u32 val, match = 0, mask = 0, action = 0, idx = flow->index; in vsc8584_macsec_flow()
377 if (flow->match.tagged) in vsc8584_macsec_flow()
379 if (flow->match.untagged) in vsc8584_macsec_flow()
382 if (bank == MACSEC_INGR && flow->assoc_num >= 0) { in vsc8584_macsec_flow()
383 match |= MSCC_MS_SAM_MISC_MATCH_AN(flow->assoc_num); in vsc8584_macsec_flow()
387 if (bank == MACSEC_INGR && flow->match.sci && flow->rx_sa->sc->sci) { in vsc8584_macsec_flow()
388 u64 sci = (__force u64)flow->rx_sa->sc->sci; in vsc8584_macsec_flow()
400 if (flow->match.etype) { in vsc8584_macsec_flow()
[all …]
/linux/net/netfilter/
H A Dnf_flow_table_core.c22 flow_offload_fill_dir(struct flow_offload *flow, in flow_offload_fill_dir() argument
25 struct flow_offload_tuple *ft = &flow->tuplehash[dir].tuple; in flow_offload_fill_dir()
26 struct nf_conntrack_tuple *ctt = &flow->ct->tuplehash[dir].tuple; in flow_offload_fill_dir()
55 struct flow_offload *flow; in flow_offload_alloc() local
60 flow = kmem_cache_zalloc(flow_offload_cachep, GFP_ATOMIC); in flow_offload_alloc()
61 if (!flow) in flow_offload_alloc()
65 flow->ct = ct; in flow_offload_alloc()
67 flow_offload_fill_dir(flow, FLOW_OFFLOAD_DIR_ORIGINAL); in flow_offload_alloc()
68 flow_offload_fill_dir(flow, FLOW_OFFLOAD_DIR_REPLY); in flow_offload_alloc()
71 __set_bit(NF_FLOW_SNAT, &flow in flow_offload_alloc()
97 flow_offload_fill_route(struct flow_offload * flow,struct nf_flow_route * route,enum flow_offload_tuple_dir dir) flow_offload_fill_route() argument
158 nft_flow_dst_release(struct flow_offload * flow,enum flow_offload_tuple_dir dir) nft_flow_dst_release() argument
164 flow_offload_route_init(struct flow_offload * flow,struct nf_flow_route * route) flow_offload_route_init() argument
173 nf_flow_has_expired(const struct flow_offload * flow) nf_flow_has_expired() argument
201 flow_offload_fixup_ct(struct flow_offload * flow) flow_offload_fixup_ct() argument
255 flow_offload_route_release(struct flow_offload * flow) flow_offload_route_release() argument
263 struct flow_offload *flow = container_of(rcu_head, struct flow_offload, rcu_head); flow_offload_free_rcu() local
269 flow_offload_free(struct flow_offload * flow) flow_offload_free() argument
316 flow_offload_get_timeout(struct flow_offload * flow) flow_offload_get_timeout() argument
335 flow_offload_add(struct nf_flowtable * flow_table,struct flow_offload * flow) flow_offload_add() argument
368 flow_offload_refresh(struct nf_flowtable * flow_table,struct flow_offload * flow,bool force) flow_offload_refresh() argument
388 flow_offload_del(struct nf_flowtable * flow_table,struct flow_offload * flow) flow_offload_del() argument
399 flow_offload_teardown(struct flow_offload * flow) flow_offload_teardown() argument
412 struct flow_offload *flow; flow_offload_lookup() local
435 nf_flow_table_iterate(struct nf_flowtable * flow_table,void (* iter)(struct nf_flowtable * flowtable,struct flow_offload * flow,void * data),void * data) nf_flow_table_iterate() argument
440 struct flow_offload *flow; nf_flow_table_iterate() local
468 nf_flow_custom_gc(struct nf_flowtable * flow_table,const struct flow_offload * flow) nf_flow_custom_gc() argument
576 nf_flow_offload_gc_step(struct nf_flowtable * flow_table,struct flow_offload * flow,void * data) nf_flow_offload_gc_step() argument
664 nf_flow_snat_port(const struct flow_offload * flow,struct sk_buff * skb,unsigned int thoff,u8 protocol,enum flow_offload_tuple_dir dir) nf_flow_snat_port() argument
690 nf_flow_dnat_port(const struct flow_offload * flow,struct sk_buff * skb,unsigned int thoff,u8 protocol,enum flow_offload_tuple_dir dir) nf_flow_dnat_port() argument
741 nf_flow_table_do_cleanup(struct nf_flowtable * flow_table,struct flow_offload * flow,void * data) nf_flow_table_do_cleanup() argument
[all...]
H A Dnf_flow_table_offload.c28 struct flow_offload *flow; member
233 const struct flow_offload *flow, in flow_offload_eth_src() argument
248 this_tuple = &flow->tuplehash[dir].tuple; in flow_offload_eth_src()
255 other_tuple = &flow->tuplehash[!dir].tuple; in flow_offload_eth_src()
283 const struct flow_offload *flow, in flow_offload_eth_dst() argument
301 this_tuple = &flow->tuplehash[dir].tuple; in flow_offload_eth_dst()
308 other_tuple = &flow->tuplehash[!dir].tuple; in flow_offload_eth_dst()
343 const struct flow_offload *flow, in flow_offload_ipv4_snat() argument
357 addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_v4.s_addr; in flow_offload_ipv4_snat()
361 addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.src_v4.s_addr; in flow_offload_ipv4_snat()
[all …]
H A Dnf_tables_offload.c12 struct nft_flow_rule *flow; in nft_flow_rule_alloc() local
14 flow = kzalloc_obj(struct nft_flow_rule); in nft_flow_rule_alloc()
15 if (!flow) in nft_flow_rule_alloc()
18 flow->rule = flow_rule_alloc(num_actions); in nft_flow_rule_alloc()
19 if (!flow->rule) { in nft_flow_rule_alloc()
20 kfree(flow); in nft_flow_rule_alloc()
24 flow->rule->match.dissector = &flow->match.dissector; in nft_flow_rule_alloc()
25 flow->rule->match.mask = &flow in nft_flow_rule_alloc()
31 nft_flow_rule_set_addr_type(struct nft_flow_rule * flow,enum flow_dissector_key_id addr_type) nft_flow_rule_set_addr_type() argument
54 nft_flow_rule_transfer_vlan(struct nft_offload_ctx * ctx,struct nft_flow_rule * flow) nft_flow_rule_transfer_vlan() argument
92 struct nft_flow_rule *flow; nft_flow_rule_create() local
146 nft_flow_rule_destroy(struct nft_flow_rule * flow) nft_flow_rule_destroy() argument
249 nft_flow_cls_offload_setup(struct flow_cls_offload * cls_flow,const struct nft_base_chain * basechain,const struct nft_rule * rule,const struct nft_flow_rule * flow,struct netlink_ext_ack * extack,enum flow_cls_command command) nft_flow_cls_offload_setup() argument
270 nft_flow_offload_cmd(const struct nft_chain * chain,const struct nft_rule * rule,struct nft_flow_rule * flow,enum flow_cls_command command,struct flow_cls_offload * cls_flow) nft_flow_offload_cmd() argument
290 nft_flow_offload_rule(const struct nft_chain * chain,struct nft_rule * rule,struct nft_flow_rule * flow,enum flow_cls_command command) nft_flow_offload_rule() argument
[all...]
H A Dnf_flow_table_ip.c25 static int nf_flow_state_check(struct flow_offload *flow, int proto, in nf_flow_state_check() argument
34 if (tcph->syn && test_bit(NF_FLOW_CLOSING, &flow->flags)) { in nf_flow_state_check()
35 flow_offload_teardown(flow); in nf_flow_state_check()
40 !test_bit(NF_FLOW_CLOSING, &flow->flags)) in nf_flow_state_check()
41 set_bit(NF_FLOW_CLOSING, &flow->flags); in nf_flow_state_check()
83 static void nf_flow_snat_ip(const struct flow_offload *flow, in nf_flow_snat_ip() argument
92 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_v4.s_addr; in nf_flow_snat_ip()
97 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.src_v4.s_addr; in nf_flow_snat_ip()
106 static void nf_flow_dnat_ip(const struct flow_offload *flow, in nf_flow_dnat_ip() argument
115 new_addr = flow in nf_flow_dnat_ip()
129 nf_flow_nat_ip(const struct flow_offload * flow,struct sk_buff * skb,unsigned int thoff,enum flow_offload_tuple_dir dir,struct iphdr * iph) nf_flow_nat_ip() argument
474 struct flow_offload *flow; nf_flow_offload_forward() local
805 struct flow_offload *flow; nf_flow_queue_xmit4() local
935 nf_flow_snat_ipv6(const struct flow_offload * flow,struct sk_buff * skb,struct ipv6hdr * ip6h,unsigned int thoff,enum flow_offload_tuple_dir dir) nf_flow_snat_ipv6() argument
958 nf_flow_dnat_ipv6(const struct flow_offload * flow,struct sk_buff * skb,struct ipv6hdr * ip6h,unsigned int thoff,enum flow_offload_tuple_dir dir) nf_flow_dnat_ipv6() argument
981 nf_flow_nat_ipv6(const struct flow_offload * flow,struct sk_buff * skb,enum flow_offload_tuple_dir dir,struct ipv6hdr * ip6h) nf_flow_nat_ipv6() argument
1070 struct flow_offload *flow; nf_flow_offload_ipv6_forward() local
1134 struct flow_offload *flow; nf_flow_queue_xmit6() local
[all...]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_priv.h107 struct mlx5e_tc_flow *peer_orig; /* dup: back-ref to origin flow */
108 struct net_device *orig_dev; /* netdev adding flow first */
110 struct list_head tmp_list; /* temporary flow list used by neigh update */
135 struct mlx5e_tc_flow *flow,
140 mlx5e_tc_get_encap_attr(struct mlx5e_tc_flow *flow);
142 void mlx5e_tc_unoffload_flow_post_acts(struct mlx5e_tc_flow *flow);
143 int mlx5e_tc_offload_flow_post_acts(struct mlx5e_tc_flow *flow);
145 bool mlx5e_is_eswitch_flow(struct mlx5e_tc_flow *flow);
146 bool mlx5e_is_ft_flow(struct mlx5e_tc_flow *flow);
147 bool mlx5e_is_offloaded_flow(struct mlx5e_tc_flow *flow);
155 __flow_flag_set(struct mlx5e_tc_flow * flow,unsigned long flag) __flow_flag_set() argument
162 flow_flag_set(flow,flag) global() argument
164 __flow_flag_test_and_set(struct mlx5e_tc_flow * flow,unsigned long flag) __flow_flag_test_and_set() argument
171 flow_flag_test_and_set(flow,flag) global() argument
175 __flow_flag_clear(struct mlx5e_tc_flow * flow,unsigned long flag) __flow_flag_clear() argument
182 flow_flag_clear(flow,flag) global() argument
185 __flow_flag_test(struct mlx5e_tc_flow * flow,unsigned long flag) __flow_flag_test() argument
194 flow_flag_test(flow,flag) global() argument
[all...]
H A Dtc_tun_encap.h10 struct mlx5e_tc_flow *flow,
15 struct mlx5e_tc_flow *flow,
23 struct mlx5e_tc_flow *flow,
26 struct mlx5e_tc_flow *flow);
29 struct mlx5e_tc_flow *flow);
31 struct mlx5e_tc_flow *flow);
34 struct mlx5e_tc_flow *flow,
39 struct mlx5e_tc_flow *flow,
44 int mlx5e_tc_set_attr_rx_tun(struct mlx5e_tc_flow *flow,
/linux/net/openvswitch/
H A Dflow_table.c6 #include "flow.h"
72 struct sw_flow *flow; in ovs_flow_alloc()
75 flow = kmem_cache_zalloc(flow_cache, GFP_KERNEL); in ovs_flow_alloc()
76 if (!flow) in ovs_flow_alloc()
79 flow->stats_last_writer = -1; in ovs_flow_alloc()
80 flow->cpu_used_mask = (struct cpumask *)&flow->stats[nr_cpu_ids]; in ovs_flow_alloc()
91 RCU_INIT_POINTER(flow->stats[0], stats); in ovs_flow_alloc()
93 cpumask_set_cpu(0, flow->cpu_used_mask); in ovs_flow_alloc()
95 return flow; in ovs_flow_alloc()
74 struct sw_flow *flow; ovs_flow_alloc() local
108 flow_free(struct sw_flow * flow) flow_free() argument
129 struct sw_flow *flow = container_of(rcu, struct sw_flow, rcu); rcu_free_flow_callback() local
134 ovs_flow_free(struct sw_flow * flow,bool deferred) ovs_flow_free() argument
462 table_instance_flow_free(struct flow_table * table,struct table_instance * ti,struct table_instance * ufid_ti,struct sw_flow * flow) table_instance_flow_free() argument
485 struct sw_flow *flow; table_instance_flow_flush() local
528 struct sw_flow *flow; ovs_flow_tbl_dump_next() local
559 table_instance_insert(struct table_instance * ti,struct sw_flow * flow) table_instance_insert() argument
568 ufid_table_instance_insert(struct table_instance * ti,struct sw_flow * flow) ufid_table_instance_insert() argument
587 struct sw_flow *flow; flow_table_copy_flows() local
680 flow_cmp_masked_key(const struct sw_flow * flow,const struct sw_flow_key * key,const struct sw_flow_key_range * range) flow_cmp_masked_key() argument
687 ovs_flow_cmp_unmasked_key(const struct sw_flow * flow,const struct sw_flow_match * match) ovs_flow_cmp_unmasked_key() argument
703 struct sw_flow *flow; masked_flow_lookup() local
736 struct sw_flow *flow; flow_lookup() local
793 struct sw_flow *flow; ovs_flow_tbl_lookup_stats() local
854 struct sw_flow *flow; ovs_flow_tbl_lookup() local
878 struct sw_flow *flow; ovs_flow_tbl_lookup_exact() local
899 ovs_flow_cmp_ufid(const struct sw_flow * flow,const struct sw_flow_id * sfid) ovs_flow_cmp_ufid() argument
908 ovs_flow_cmp(const struct sw_flow * flow,const struct sw_flow_match * match) ovs_flow_cmp() argument
921 struct sw_flow *flow; ovs_flow_tbl_lookup_ufid() local
956 ovs_flow_tbl_remove(struct flow_table * table,struct sw_flow * flow) ovs_flow_tbl_remove() argument
1006 flow_mask_insert(struct flow_table * tbl,struct sw_flow * flow,const struct sw_flow_mask * new) flow_mask_insert() argument
1035 flow_key_insert(struct flow_table * table,struct sw_flow * flow) flow_key_insert() argument
1059 flow_ufid_insert(struct flow_table * table,struct sw_flow * flow) flow_ufid_insert() argument
1081 ovs_flow_tbl_insert(struct flow_table * table,struct sw_flow * flow,const struct sw_flow_mask * mask) ovs_flow_tbl_insert() argument
[all...]
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_tc.c370 struct bnxt_tc_flow *flow) in bnxt_tc_parse_flow() argument
391 flow->l2_key.ether_type = match.key->n_proto; in bnxt_tc_parse_flow()
392 flow->l2_mask.ether_type = match.mask->n_proto; in bnxt_tc_parse_flow()
396 flow->l4_key.ip_proto = match.key->ip_proto; in bnxt_tc_parse_flow()
397 flow->l4_mask.ip_proto = match.mask->ip_proto; in bnxt_tc_parse_flow()
405 flow->flags |= BNXT_TC_FLOW_FLAGS_ETH_ADDRS; in bnxt_tc_parse_flow()
406 ether_addr_copy(flow->l2_key.dmac, match.key->dst); in bnxt_tc_parse_flow()
407 ether_addr_copy(flow->l2_mask.dmac, match.mask->dst); in bnxt_tc_parse_flow()
408 ether_addr_copy(flow->l2_key.smac, match.key->src); in bnxt_tc_parse_flow()
409 ether_addr_copy(flow->l2_mask.smac, match.mask->src); in bnxt_tc_parse_flow()
[all …]
/linux/drivers/infiniband/hw/hfi1/
H A Dtid_rdma.c134 struct tid_rdma_flow *flow,
881 static u32 tid_rdma_find_phys_blocks_4k(struct tid_rdma_flow *flow, in tid_rdma_find_phys_blocks_4k() argument
898 trace_hfi1_tid_flow_page(flow->req->qp, flow, 0, 0, 0, vaddr); in tid_rdma_find_phys_blocks_4k()
901 trace_hfi1_tid_flow_page(flow->req->qp, flow, i, 0, 0, in tid_rdma_find_phys_blocks_4k()
935 trace_hfi1_tid_pageset(flow->req->qp, setcount, in tid_rdma_find_phys_blocks_4k()
1020 static u32 tid_rdma_find_phys_blocks_8k(struct tid_rdma_flow *flow, in tid_rdma_find_phys_blocks_8k() argument
1034 trace_hfi1_tid_flow_page(flow->req->qp, flow, i, 1, 0, v0); in tid_rdma_find_phys_blocks_8k()
1037 trace_hfi1_tid_flow_page(flow->req->qp, flow, i, 1, 1, v1); in tid_rdma_find_phys_blocks_8k()
1087 static u32 kern_find_pages(struct tid_rdma_flow *flow, in kern_find_pages() argument
1091 struct tid_rdma_request *req = flow->req; in kern_find_pages()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.c173 * last flow from a group and then deleting a group, we get into del_sw_flow_group()
180 static void mlx5e_put_flow_tunnel_id(struct mlx5e_tc_flow *flow);
181 static void free_flow_post_acts(struct mlx5e_tc_flow *flow);
182 static void mlx5_free_flow_attr_actions(struct mlx5e_tc_flow *flow,
454 mlx5_core_err(priv->mdev, "Failed to get flow meter\n"); in mlx5e_tc_add_flow_meter()
605 struct mlx5e_tc_flow *flow);
607 struct mlx5e_tc_flow *mlx5e_flow_get(struct mlx5e_tc_flow *flow) in mlx5e_flow_get() argument
609 if (!flow || !refcount_inc_not_zero(&flow->refcnt)) in mlx5e_flow_get()
611 return flow; in mlx5e_flow_get()
614 mlx5e_flow_put(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow) mlx5e_flow_put() argument
622 mlx5e_is_eswitch_flow(struct mlx5e_tc_flow * flow) mlx5e_is_eswitch_flow() argument
627 mlx5e_is_ft_flow(struct mlx5e_tc_flow * flow) mlx5e_is_ft_flow() argument
632 mlx5e_is_offloaded_flow(struct mlx5e_tc_flow * flow) mlx5e_is_offloaded_flow() argument
637 mlx5e_get_flow_namespace(struct mlx5e_tc_flow * flow) mlx5e_get_flow_namespace() argument
644 get_flow_counter_dev(struct mlx5e_tc_flow * flow) get_flow_counter_dev() argument
650 get_mod_hdr_table(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow) get_mod_hdr_table() argument
661 mlx5e_tc_attach_mod_hdr(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow,struct mlx5_flow_attr * attr) mlx5e_tc_attach_mod_hdr() argument
680 mlx5e_tc_detach_mod_hdr(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow,struct mlx5_flow_attr * attr) mlx5e_tc_detach_mod_hdr() argument
1097 mlx5e_hairpin_flow_add(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow,struct mlx5e_tc_flow_parse_attr * parse_attr,struct netlink_ext_ack * extack) mlx5e_hairpin_flow_add() argument
1221 mlx5e_hairpin_flow_del(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow) mlx5e_hairpin_flow_del() argument
1366 mlx5e_tc_add_nic_flow(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow,struct netlink_ext_ack * extack) mlx5e_tc_add_nic_flow() argument
1418 mlx5e_tc_del_nic_flow(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow) mlx5e_tc_del_nic_flow() argument
1459 mlx5e_tc_offload_fdb_rules(struct mlx5_eswitch * esw,struct mlx5e_tc_flow * flow,struct mlx5_flow_spec * spec,struct mlx5_flow_attr * attr) mlx5e_tc_offload_fdb_rules() argument
1487 mlx5e_tc_unoffload_fdb_rules(struct mlx5_eswitch * esw,struct mlx5e_tc_flow * flow,struct mlx5_flow_attr * attr) mlx5e_tc_unoffload_fdb_rules() argument
1503 mlx5e_tc_offload_to_slow_path(struct mlx5_eswitch * esw,struct mlx5e_tc_flow * flow,struct mlx5_flow_spec * spec) mlx5e_tc_offload_to_slow_path() argument
1576 mlx5e_tc_unoffload_from_slow_path(struct mlx5_eswitch * esw,struct mlx5e_tc_flow * flow) mlx5e_tc_unoffload_from_slow_path() argument
1609 unready_flow_add(struct mlx5e_tc_flow * flow,struct list_head * unready_flows) unready_flow_add() argument
1619 unready_flow_del(struct mlx5e_tc_flow * flow) unready_flow_del() argument
1625 add_unready_flow(struct mlx5e_tc_flow * flow) add_unready_flow() argument
1640 remove_unready_flow(struct mlx5e_tc_flow * flow) remove_unready_flow() argument
1748 extra_split_attr_dests_needed(struct mlx5e_tc_flow * flow,struct mlx5_flow_attr * attr) extra_split_attr_dests_needed() argument
1784 extra_split_attr_dests(struct mlx5e_tc_flow * flow,struct mlx5_flow_attr * attr,int split_count) extra_split_attr_dests() argument
1852 post_process_attr(struct mlx5e_tc_flow * flow,struct mlx5_flow_attr * attr,struct netlink_ext_ack * extack) post_process_attr() argument
1909 mlx5e_tc_add_fdb_flow(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow,struct netlink_ext_ack * extack) mlx5e_tc_add_fdb_flow() argument
2048 free_branch_attr(struct mlx5e_tc_flow * flow,struct mlx5_flow_attr * attr) free_branch_attr() argument
2059 mlx5e_tc_del_fdb_flow(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow) mlx5e_tc_del_fdb_flow() argument
2102 mlx5e_tc_get_counter(struct mlx5e_tc_flow * flow) mlx5e_tc_get_counter() argument
2113 struct mlx5e_tc_flow *flow, *tmp; mlx5e_put_flow_list() local
2119 mlx5e_tc_del_fdb_peer_flow(struct mlx5e_tc_flow * flow,int peer_index) mlx5e_tc_del_fdb_peer_flow() argument
2150 mlx5e_tc_del_fdb_peers_flow(struct mlx5e_tc_flow * flow) mlx5e_tc_del_fdb_peers_flow() argument
2159 mlx5e_tc_del_flow(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow) mlx5e_tc_del_flow() argument
2249 mlx5e_get_flow_tunnel_id(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow,struct flow_cls_offload * f,struct net_device * filter_dev) mlx5e_get_flow_tunnel_id() argument
2343 mlx5e_put_flow_tunnel_id(struct mlx5e_tc_flow * flow) mlx5e_put_flow_tunnel_id() argument
2517 parse_tunnel_attr(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow,struct mlx5_flow_spec * spec,struct flow_cls_offload * f,struct net_device * filter_dev,u8 * match_level,bool * match_inner) parse_tunnel_attr() argument
2694 __parse_cls_flower(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow,struct mlx5_flow_spec * spec,struct flow_cls_offload * f,struct net_device * filter_dev,u8 * inner_match_level,u8 * outer_match_level) __parse_cls_flower() argument
3152 parse_cls_flower(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow,struct mlx5_flow_spec * spec,struct flow_cls_offload * f,struct net_device * filter_dev) parse_cls_flower() argument
3573 actions_match_supported_fdb(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow,struct netlink_ext_ack * extack) actions_match_supported_fdb() argument
3594 actions_match_supported(struct mlx5e_priv * priv,struct flow_action * flow_action,u32 actions,struct mlx5e_tc_flow_parse_attr * parse_attr,struct mlx5e_tc_flow * flow,struct netlink_ext_ack * extack) actions_match_supported() argument
3626 actions_prepare_mod_hdr_actions(struct mlx5e_priv * priv,struct mlx5e_tc_flow * flow,struct mlx5_flow_attr * attr,struct netlink_ext_ack * extack) actions_prepare_mod_hdr_actions() argument
3703 mlx5e_tc_get_encap_attr(struct mlx5e_tc_flow * flow) mlx5e_tc_get_encap_attr() argument
3721 mlx5e_tc_unoffload_flow_post_acts(struct mlx5e_tc_flow * flow) mlx5e_tc_unoffload_flow_post_acts() argument
3735 free_flow_post_acts(struct mlx5e_tc_flow * flow) free_flow_post_acts() argument
3752 mlx5e_tc_offload_flow_post_acts(struct mlx5e_tc_flow * flow) mlx5e_tc_offload_flow_post_acts() argument
3791 alloc_flow_post_acts(struct mlx5e_tc_flow * flow,struct netlink_ext_ack * extack) alloc_flow_post_acts() argument
3874 alloc_branch_attr(struct mlx5e_tc_flow * flow,struct mlx5e_tc_act_branch_ctrl * cond,struct mlx5_flow_attr ** cond_attr,u32 * jump_count,struct netlink_ext_ack * extack) alloc_branch_attr() argument
3969 parse_branch_ctrl(struct flow_action_entry * act,struct mlx5e_tc_act * tc_act,struct mlx5e_tc_flow * flow,struct mlx5_flow_attr * attr,struct mlx5e_tc_jump_state * jump_state,struct netlink_ext_ack * extack) parse_branch_ctrl() argument
4017 struct mlx5e_tc_flow *flow = parse_state->flow; parse_tc_actions() local
4131 parse_tc_nic_actions(struct mlx5e_priv * priv,struct flow_action * flow_action,struct mlx5e_tc_flow * flow,struct netlink_ext_ack * extack) parse_tc_nic_actions() argument
4285 parse_tc_fdb_actions(struct mlx5e_priv * priv,struct flow_action * flow_action,struct mlx5e_tc_flow * flow,struct netlink_ext_ack * extack) parse_tc_fdb_actions() argument
4376 is_peer_flow_needed(struct mlx5e_tc_flow * flow,bool * is_sd) is_peer_flow_needed() argument
4424 mlx5_free_flow_attr_actions(struct mlx5e_tc_flow * flow,struct mlx5_flow_attr * attr) mlx5_free_flow_attr_actions() argument
4471 struct mlx5e_tc_flow *flow; mlx5e_alloc_flow() local
4555 struct mlx5e_tc_flow *flow; __mlx5e_add_fdb_flow() local
4603 mlx5e_tc_add_fdb_peer_flow(struct flow_cls_offload * f,struct mlx5e_tc_flow * flow,unsigned long flow_flags,struct mlx5_eswitch * peer_esw) mlx5e_tc_add_fdb_peer_flow() argument
4667 struct mlx5e_tc_flow *flow; mlx5e_add_fdb_flow() local
4729 struct mlx5e_tc_flow *flow; mlx5e_add_nic_flow() local
4785 mlx5e_tc_add_flow(struct mlx5e_priv * priv,struct flow_cls_offload * f,unsigned long flags,struct net_device * filter_dev,struct mlx5e_tc_flow ** flow) mlx5e_tc_add_flow() argument
4862 struct mlx5e_tc_flow *flow; mlx5e_configure_flower() local
4924 same_flow_direction(struct mlx5e_tc_flow * flow,int flags) same_flow_direction() argument
4937 struct mlx5e_tc_flow *flow; mlx5e_delete_flower() local
4980 struct mlx5e_tc_flow *flow; mlx5e_stats_flower() local
5380 struct mlx5e_tc_flow *flow = ptr; _mlx5e_tc_del_flow() local
5544 struct mlx5e_tc_flow *flow, *tmp; mlx5e_tc_clean_fdb_peer_flows() local
5565 struct mlx5e_tc_flow *flow, *tmp; mlx5e_tc_reoffload_flows_work() local
[all...]
/linux/net/sched/
H A Dsch_fq_codel.c32 * Each flow has a CoDel managed queue.
36 * For a given flow, packets are not reordered (CoDel uses a FIFO)
39 * Low memory footprint (64 bytes per flow)
116 static inline struct sk_buff *dequeue_head(struct fq_codel_flow *flow) in dequeue_head() argument
118 struct sk_buff *skb = flow->head; in dequeue_head()
120 WRITE_ONCE(flow->head, skb->next); in dequeue_head()
125 /* add skb to flow queue (tail add) */
126 static inline void flow_queue_add(struct fq_codel_flow *flow, in flow_queue_add() argument
129 if (flow->head == NULL) in flow_queue_add()
130 WRITE_ONCE(flow in flow_queue_add()
143 struct fq_codel_flow *flow; fq_codel_drop() local
190 struct fq_codel_flow *flow; fq_codel_enqueue() local
261 struct fq_codel_flow *flow; dequeue_func() local
288 struct fq_codel_flow *flow; __fq_codel_dequeue() local
367 fq_codel_flow_purge(struct fq_codel_flow * flow) fq_codel_flow_purge() argument
381 struct fq_codel_flow *flow = q->flows + i; fq_codel_reset() local
551 struct fq_codel_flow *flow = q->flows + i; fq_codel_init() local
695 const struct fq_codel_flow *flow = &q->flows[idx]; fq_codel_dump_class_stats() local
[all...]
H A Dsch_hhf.c20 * buckets. Initially, a new flow starts as non-heavy-hitter. Once classified
37 * - For a heavy-hitter flow: *all* of its k array counters must be large.
38 * - For a non-heavy-hitter flow: some of its k array counters can be large
59 * Once a flow is classified as heavy-hitter, we also save its per-flow state
60 * in an exact-matching flow table so that its subsequent packets can be
66 * - If the flow-id of p (e.g., TCP 5-tuple) is already in the exact-matching
67 * heavy-hitter flow table, denoted table T, then send p to the heavy-hitter
70 * + If F decides that p belongs to a non-heavy-hitter flow, then send p
72 * + Otherwise, if F decides that p belongs to a new heavy-hitter flow,
184 struct hh_flow_state *flow, *next; seek_list() local
216 struct hh_flow_state *flow; alloc_new_hh() local
253 struct hh_flow_state *flow; hhf_classify() local
473 struct hh_flow_state *flow, *next; hhf_reset_classifier() local
514 struct hh_flow_state *flow, *next; hhf_destroy() local
[all...]
H A Dsch_fq_pie.c119 static inline void flow_queue_add(struct fq_pie_flow *flow, in flow_queue_add() argument
122 if (!flow->head) in flow_queue_add()
123 flow->head = skb; in flow_queue_add()
125 flow->tail->next = skb; in flow_queue_add()
126 flow->tail = skb; in flow_queue_add()
229 static inline struct sk_buff *dequeue_head(struct fq_pie_flow *flow) in dequeue_head() argument
231 struct sk_buff *skb = flow->head; in dequeue_head()
233 flow->head = skb->next; in dequeue_head()
242 struct fq_pie_flow *flow; in fq_pie_qdisc_dequeue() local
254 flow = list_first_entry(head, struct fq_pie_flow, flowchain); in fq_pie_qdisc_dequeue()
[all …]
H A Dsch_cake.c29 * flows from each other. This prevents a burst on one flow from increasing
129 /* this stuff is all needed per-flow at dequeue time */
656 struct cake_flow *flow, in cake_dec_srchost_bulk_flow_count()
660 q->hosts[flow->srchost].srchost_bulk_flow_count))
661 q->hosts[flow->srchost].srchost_bulk_flow_count--; in cake_inc_srchost_bulk_flow_count()
665 struct cake_flow *flow, in cake_inc_srchost_bulk_flow_count()
669 q->hosts[flow->srchost].srchost_bulk_flow_count < CAKE_QUEUES))
670 q->hosts[flow->srchost].srchost_bulk_flow_count++; in cake_dec_dsthost_bulk_flow_count()
674 struct cake_flow *flow, in cake_dec_dsthost_bulk_flow_count()
678 q->hosts[flow in cake_dec_dsthost_bulk_flow_count()
653 cake_dec_srchost_bulk_flow_count(struct cake_tin_data * q,struct cake_flow * flow,int flow_mode) cake_dec_srchost_bulk_flow_count() argument
662 cake_inc_srchost_bulk_flow_count(struct cake_tin_data * q,struct cake_flow * flow,int flow_mode) cake_inc_srchost_bulk_flow_count() argument
671 cake_dec_dsthost_bulk_flow_count(struct cake_tin_data * q,struct cake_flow * flow,int flow_mode) cake_dec_dsthost_bulk_flow_count() argument
680 cake_inc_dsthost_bulk_flow_count(struct cake_tin_data * q,struct cake_flow * flow,int flow_mode) cake_inc_dsthost_bulk_flow_count() argument
689 cake_get_flow_quantum(struct cake_tin_data * q,struct cake_flow * flow,int flow_mode) cake_get_flow_quantum() argument
918 dequeue_head(struct cake_flow * flow) dequeue_head() argument
932 flow_queue_add(struct cake_flow * flow,struct sk_buff * skb) flow_queue_add() argument
1218 cake_ack_filter(struct cake_sched_data * q,struct cake_flow * flow) cake_ack_filter() argument
1569 struct cake_flow *flow; cake_drop() local
1721 u16 flow = 0, host = 0; cake_classify() local
1764 struct cake_flow *flow; cake_enqueue() local
1976 struct cake_flow *flow = &b->flows[q->cur_flow]; cake_dequeue_one() local
2013 struct cake_flow *flow; cake_dequeue() local
2879 struct cake_flow *flow = b->flows + j; cake_init() local
3134 const struct cake_flow *flow = NULL; cake_dump_class_stats() local
[all...]
/linux/samples/bpf/
H A Dsockex2_kern.c62 struct flow_key_record *flow) in parse_ip()
72 flow->src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); in parse_ip()
73 flow->dst = load_word(skb, nhoff + offsetof(struct iphdr, daddr)); in parse_ip()
86 struct flow_key_record *flow) in parse_ipv6()
90 flow->src = ipv6_addr_hash(skb, in parse_ipv6()
92 flow->dst = ipv6_addr_hash(skb, in parse_ipv6()
100 struct flow_key_record *flow) in flow_dissector()
120 nhoff = parse_ip(skb, nhoff, &ip_proto, flow); in flow_dissector()
122 nhoff = parse_ipv6(skb, nhoff, &ip_proto, flow); in flow_dissector()
158 nhoff = parse_ip(skb, nhoff, &ip_proto, flow); in flow_dissector()
63 parse_ip(struct __sk_buff * skb,__u64 nhoff,__u64 * ip_proto,struct flow_key_record * flow) parse_ip() argument
87 parse_ipv6(struct __sk_buff * skb,__u64 nhoff,__u64 * ip_proto,struct flow_key_record * flow) parse_ipv6() argument
101 flow_dissector(struct __sk_buff * skb,struct flow_key_record * flow) flow_dissector() argument
203 struct flow_key_record flow = {}; bpf_prog2() local
[all...]
/linux/Documentation/networking/
H A Dopenvswitch.rst8 flow-level packet processing on selected network devices. It can be
10 VLAN processing, network access control, flow-based network control,
15 within a bridge). Each datapath also has associated with it a "flow
22 extracting its flow key and looking it up in the flow table. If there
23 is a matching flow, it executes the associated actions. If there is
25 its processing, userspace will likely set up a flow to handle further
35 versions to parse additional protocols as part of the flow key. It
39 applications to work with any version of the flow key, past or future.
43 flow key that it parsed from the packet. Userspace then extracts its
44 own notion of a flow key from the packet and compares it against the
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_noinline.c123 struct flow_key flow; member
245 pckt->flow.port16[0] = udp->source; in parse_udp()
246 pckt->flow.port16[1] = udp->dest; in parse_udp()
248 pckt->flow.port16[0] = udp->dest; in parse_udp()
249 pckt->flow.port16[1] = udp->source; in parse_udp()
269 pckt->flow.port16[0] = tcp->source; in parse_tcp()
270 pckt->flow.port16[1] = tcp->dest; in parse_tcp()
272 pckt->flow.port16[0] = tcp->dest; in parse_tcp()
273 pckt->flow.port16[1] = tcp->source; in parse_tcp()
308 ip_suffix = pckt->flow.srcv6[3] ^ pckt->flow.port16[0]; in encap_v6()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dgoto.c10 struct mlx5e_tc_flow *flow, in validate_goto_chain() argument
16 bool is_esw = mlx5e_is_eswitch_flow(flow); in validate_goto_chain()
17 bool ft_flow = mlx5e_is_ft_flow(flow); in validate_goto_chain()
66 struct mlx5e_tc_flow *flow = parse_state->flow; in tc_act_can_offload_goto() local
68 if (validate_goto_chain(flow->priv, flow, attr, act, extack)) in tc_act_can_offload_goto()
93 struct mlx5e_tc_flow *flow = parse_state->flow; in tc_act_post_parse_goto() local
112 if (!mlx5e_is_eswitch_flow(flow) && parse_attr->mirred_ifindex[0]) { in tc_act_post_parse_goto()
/linux/Documentation/bpf/
H A Dprog_flow_dissector.rst11 used in the various places in the networking subsystem (RFS, flow hash, etc).
13 BPF flow dissector is an attempt to reimplement C-based flow dissector logic
20 BPF flow dissector programs operate on an ``__sk_buff``. However, only the
22 ``flow_keys`` is ``struct bpf_flow_keys`` and contains flow dissector input
41 In the VLAN-less case, this is what the initial state of the BPF flow
49 +-- flow dissector starts here
58 In case of VLAN, flow dissector can be called with the two different states.
67 +-- flow dissector starts here
86 +-- flow dissector starts here
94 In this case VLAN information has been processed before the flow dissector
[all …]
/linux/Documentation/core-api/
H A Dgenericirq.rst52 optimize the flow of the interrupt handling for each specific interrupt
58 the flow control in the super-handler. This leads to a mix of flow logic
62 have different flow handling.
64 A more natural abstraction is the clean separation of the 'irq flow' and
68 reveals that most of them can use a generic set of 'irq flow' methods
71 IRQ flow itself but not in the chip details - and thus provides a more
74 Each interrupt descriptor is assigned its own high-level flow handler,
76 flow handler implementation also makes it simple to provide
82 IRQ-flow implementation for 'level type' interrupts and add a
104 2. High-level IRQ flow handlers
[all …]
/linux/drivers/dma/ti/
H A Dk3-udma-glue.c696 /* Default flow + extra ones */ in k3_udma_glue_cfg_rx_chn()
716 struct k3_udma_glue_rx_flow *flow = &rx_chn->flows[flow_num]; in k3_udma_glue_release_rx_flow() local
718 if (IS_ERR_OR_NULL(flow->udma_rflow)) in k3_udma_glue_release_rx_flow()
721 if (flow->ringrxfdq) in k3_udma_glue_release_rx_flow()
722 k3_ringacc_ring_free(flow->ringrxfdq); in k3_udma_glue_release_rx_flow()
724 if (flow->ringrx) in k3_udma_glue_release_rx_flow()
725 k3_ringacc_ring_free(flow->ringrx); in k3_udma_glue_release_rx_flow()
727 xudma_rflow_put(rx_chn->common.udmax, flow->udma_rflow); in k3_udma_glue_release_rx_flow()
728 flow->udma_rflow = NULL; in k3_udma_glue_release_rx_flow()
736 struct k3_udma_glue_rx_flow *flow in k3_udma_glue_cfg_rx_flow() local
1280 struct k3_udma_glue_rx_flow *flow; k3_udma_glue_rx_flow_get_fdq_id() local
1300 struct k3_udma_glue_rx_flow *flow = &rx_chn->flows[flow_idx]; k3_udma_glue_rx_flow_enable() local
1343 struct k3_udma_glue_rx_flow *flow = &rx_chn->flows[flow_idx]; k3_udma_glue_rx_flow_disable() local
1466 struct k3_udma_glue_rx_flow *flow = &rx_chn->flows[flow_num]; k3_udma_glue_reset_rx_chn() local
1510 struct k3_udma_glue_rx_flow *flow = &rx_chn->flows[flow_num]; k3_udma_glue_push_rx_chn() local
1519 struct k3_udma_glue_rx_flow *flow = &rx_chn->flows[flow_num]; k3_udma_glue_pop_rx_chn() local
1528 struct k3_udma_glue_rx_flow *flow; k3_udma_glue_rx_get_irq() local
[all...]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c178 "%s: Unable to allocate memory for flow entries\n", in otx2_alloc_mcam_entries()
624 static void otx2_add_flow_to_list(struct otx2_nic *pfvf, struct otx2_flow *flow) in otx2_find_flow()
630 if (iter->location > flow->location)
635 list_add(&flow->list, head); in otx2_add_flow_to_list()
1180 static int otx2_add_flow_msg(struct otx2_nic *pfvf, struct otx2_flow *flow) in otx2_is_flow_rule_dmacfilter()
1184 u64 ring_cookie = flow->flow_spec.ring_cookie; in otx2_is_flow_rule_dmacfilter()
1205 err = otx2_prepare_flow_request(&flow->flow_spec, in otx2_add_flow_msg()
1234 err = otx2_prepare_flow_request(&flow->flow_spec, req); in otx2_add_flow_msg()
1244 "flow entry (%u) installed at loc:%u kw_type=%u\n", in otx2_add_flow_msg()
1245 flow_cfg->flow_ent[flow in otx2_add_flow_msg()
631 otx2_add_flow_to_list(struct otx2_nic * pfvf,struct otx2_flow * flow) otx2_add_flow_to_list() argument
1188 otx2_add_flow_msg(struct otx2_nic * pfvf,struct otx2_flow * flow) otx2_add_flow_msg() argument
1319 otx2_add_flow_with_pfmac(struct otx2_nic * pfvf,struct otx2_flow * flow) otx2_add_flow_with_pfmac() argument
1353 struct otx2_flow *flow; otx2_add_flow() local
1528 struct otx2_flow *flow; otx2_remove_flow() local
1578 struct otx2_flow *flow, *tmp; otx2_rss_ctx_flow_del() local
[all...]

12345678910>>...15