/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_tun_encap.h | 10 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,
|
H A D | tc_priv.h | 99 struct list_head peer[MLX5_MAX_PORTS]; /* flows with peer flow */ 104 struct net_device *orig_dev; /* netdev adding flow first */ 106 struct list_head tmp_list; /* temporary flow list used by neigh update */ 130 struct mlx5e_tc_flow *flow, 135 mlx5e_tc_get_encap_attr(struct mlx5e_tc_flow *flow); 137 void mlx5e_tc_unoffload_flow_post_acts(struct mlx5e_tc_flow *flow); 138 int mlx5e_tc_offload_flow_post_acts(struct mlx5e_tc_flow *flow); 140 bool mlx5e_is_eswitch_flow(struct mlx5e_tc_flow *flow); 141 bool mlx5e_is_ft_flow(struct mlx5e_tc_flow *flow); 142 bool mlx5e_is_offloaded_flow(struct mlx5e_tc_flow *flow); 146 __flow_flag_set(struct mlx5e_tc_flow *flow, unsigned long flag) argument 155 __flow_flag_test_and_set(struct mlx5e_tc_flow *flow, unsigned long flag) argument 166 __flow_flag_clear(struct mlx5e_tc_flow *flow, unsigned long flag) argument 176 __flow_flag_test(struct mlx5e_tc_flow *flow, unsigned long flag) argument [all...] |
H A D | tc_tun_encap.c | 74 int mlx5e_tc_set_attr_rx_tun(struct mlx5e_tc_flow *flow, argument 77 struct mlx5_esw_flow_attr *esw_attr = flow->attr->esw_attr; 117 flow_flag_set(flow, TUN_RX); 118 flow->attr->tun_ip_version = ip_version; 128 * Before offloading the flow verify that all of them have 153 struct mlx5e_tc_flow *flow; local 174 list_for_each_entry(flow, flow_list, tmp_list) { 175 if (!mlx5e_is_offloaded_flow(flow) || !flow_flag_test(flow, SLOW)) 178 spec = &flow 222 struct mlx5e_tc_flow *flow; local 266 mlx5e_take_tmp_flow(struct mlx5e_tc_flow *flow, struct list_head *flow_list, int index) argument 290 struct mlx5e_tc_flow *flow; local 304 struct mlx5e_tc_flow *flow; local 386 struct mlx5e_tc_flow *flow; local 525 mlx5e_detach_encap(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr, int out_index) argument 558 mlx5e_detach_decap(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow) argument 691 is_duplicated_encap_entry(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, int out_index, struct mlx5e_encap_entry *e, struct netlink_ext_ack *extack) argument 813 mlx5e_attach_encap(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr, struct net_device *mirred_dev, int out_index, struct netlink_ext_ack *extack, struct net_device **encap_dev) argument 940 mlx5e_attach_decap(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct netlink_ext_ack *extack) argument 1019 mlx5e_tc_tun_encap_dests_set(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr, struct netlink_ext_ack *extack, bool *vf_tun) argument 1083 mlx5e_tc_tun_encap_dests_unset(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr) argument 1284 mlx5e_attach_decap_route(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow) argument 1341 mlx5e_attach_encap_route(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr, struct mlx5e_encap_entry *e, bool new_encap_entry, unsigned long tbl_time_before, int out_index) argument 1400 mlx5e_detach_decap_route(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow) argument 1423 mlx5e_detach_encap_route(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, int out_index) argument 1454 struct mlx5e_tc_flow *flow; local 1495 struct mlx5e_tc_flow *flow; local 1616 struct mlx5e_tc_flow *flow; local 1627 struct mlx5e_tc_flow *flow; local [all...] |
/linux-master/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
H A D | tc_flower_scale.sh | 12 max_cnts=$(devlink_resource_size_get counters flow) 15 ((max_cnts -= $(devlink_resource_occ_get counters flow)))
|
/linux-master/include/net/ |
H A D | fq_impl.h | 16 __fq_adjust_removal(struct fq *fq, struct fq_flow *flow, unsigned int packets, argument 19 struct fq_tin *tin = flow->tin; 24 flow->backlog -= bytes; 28 if (flow->backlog) 31 if (flow == &tin->default_flow) { 36 idx = flow - fq->flows; 41 struct fq_flow *flow, 44 __fq_adjust_removal(fq, flow, 1, skb->len, skb->truesize); 48 struct fq_flow *flow) 54 skb = __skb_dequeue(&flow 40 fq_adjust_removal(struct fq *fq, struct fq_flow *flow, struct sk_buff *skb) argument 47 fq_flow_dequeue(struct fq *fq, struct fq_flow *flow) argument 63 fq_flow_drop(struct fq *fq, struct fq_flow *flow, fq_skb_free_t free_func) argument 94 struct fq_flow *flow; local 148 struct fq_flow *flow; local 168 struct fq_flow *flow = NULL; local 202 struct fq_flow *flow; local 252 fq_flow_filter(struct fq *fq, struct fq_flow *flow, fq_skb_filter_t filter_func, void *filter_data, fq_skb_free_t free_func) argument 279 struct fq_flow *flow; local 289 fq_flow_reset(struct fq *fq, struct fq_flow *flow, fq_skb_free_t free_func) argument 316 struct fq_flow *flow; local 335 fq_flow_init(struct fq_flow *flow) argument [all...] |
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
H A D | flowring.h | 50 u32 brcmf_flowring_lookup(struct brcmf_flowring *flow, u8 da[ETH_ALEN], 52 u32 brcmf_flowring_create(struct brcmf_flowring *flow, u8 da[ETH_ALEN], 54 void brcmf_flowring_delete(struct brcmf_flowring *flow, u16 flowid); 55 void brcmf_flowring_open(struct brcmf_flowring *flow, u16 flowid); 56 u8 brcmf_flowring_tid(struct brcmf_flowring *flow, u16 flowid); 57 u32 brcmf_flowring_enqueue(struct brcmf_flowring *flow, u16 flowid, 59 struct sk_buff *brcmf_flowring_dequeue(struct brcmf_flowring *flow, u16 flowid); 60 void brcmf_flowring_reinsert(struct brcmf_flowring *flow, u16 flowid, 62 u32 brcmf_flowring_qlen(struct brcmf_flowring *flow, u16 flowid); 63 u8 brcmf_flowring_ifidx_get(struct brcmf_flowring *flow, u1 [all...] |
H A D | flowring.c | 43 brcmf_flowring_is_tdls_mac(struct brcmf_flowring *flow, u8 mac[ETH_ALEN]) argument 47 search = flow->tdls_entry; 59 u32 brcmf_flowring_lookup(struct brcmf_flowring *flow, u8 da[ETH_ALEN], argument 71 sta = (flow->addr_mode[ifidx] == ADDR_INDIRECT); 77 if ((sta) && (flow->tdls_active) && 78 (brcmf_flowring_is_tdls_mac(flow, da))) { 85 hash = flow->hash; 103 u32 brcmf_flowring_create(struct brcmf_flowring *flow, u8 da[ETH_ALEN], argument 116 sta = (flow->addr_mode[ifidx] == ADDR_INDIRECT); 122 if ((sta) && (flow 168 brcmf_flowring_tid(struct brcmf_flowring *flow, u16 flowid) argument 178 brcmf_flowring_block(struct brcmf_flowring *flow, u16 flowid, bool blocked) argument 227 brcmf_flowring_delete(struct brcmf_flowring *flow, u16 flowid) argument 259 brcmf_flowring_enqueue(struct brcmf_flowring *flow, u16 flowid, struct sk_buff *skb) argument 285 brcmf_flowring_dequeue(struct brcmf_flowring *flow, u16 flowid) argument 306 brcmf_flowring_reinsert(struct brcmf_flowring *flow, u16 flowid, struct sk_buff *skb) argument 317 brcmf_flowring_qlen(struct brcmf_flowring *flow, u16 flowid) argument 332 brcmf_flowring_open(struct brcmf_flowring *flow, u16 flowid) argument 346 brcmf_flowring_ifidx_get(struct brcmf_flowring *flow, u16 flowid) argument 360 struct brcmf_flowring *flow; local 384 brcmf_flowring_detach(struct brcmf_flowring *flow) argument 408 brcmf_flowring_configure_addr_mode(struct brcmf_flowring *flow, int ifidx, enum proto_addr_mode addr_mode) argument 430 brcmf_flowring_delete_peer(struct brcmf_flowring *flow, int ifidx, u8 peer[ETH_ALEN]) argument 477 brcmf_flowring_add_tdls_peer(struct brcmf_flowring *flow, int ifidx, u8 peer[ETH_ALEN]) argument [all...] |
/linux-master/drivers/gpu/ipu-v3/ |
H A D | ipu-dp.c | 46 u32 flow; member in struct:ipu_dp 64 struct ipu_flow flow[IPUV3_NUM_FLOWS]; member in struct:ipu_dp_priv 82 struct ipu_flow *flow = to_flow(dp); local 83 struct ipu_dp_priv *priv = flow->priv; 88 reg = readl(flow->base + DP_COM_CONF); 93 writel(reg, flow->base + DP_COM_CONF); 96 reg = readl(flow->base + DP_GRAPH_WIND_CTRL) & 0x00FFFFFFL; 98 flow->base + DP_GRAPH_WIND_CTRL); 100 reg = readl(flow->base + DP_COM_CONF); 101 writel(reg | DP_COM_CONF_GWAM, flow 117 struct ipu_flow *flow = to_flow(dp); 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) argument 187 struct ipu_flow *flow = to_flow(dp); local 248 struct ipu_flow *flow = to_flow(dp); local 271 struct ipu_flow *flow = to_flow(dp); local 316 ipu_dp_get(struct ipu_soc *ipu, unsigned int flow) argument [all...] |
/linux-master/drivers/net/phy/mscc/ |
H A D | mscc_macsec.c | 371 struct macsec_flow *flow) 374 enum macsec_bank bank = flow->bank; 375 u32 val, match = 0, mask = 0, action = 0, idx = flow->index; 377 if (flow->match.tagged) 379 if (flow->match.untagged) 382 if (bank == MACSEC_INGR && flow->assoc_num >= 0) { 383 match |= MSCC_MS_SAM_MISC_MATCH_AN(flow->assoc_num); 387 if (bank == MACSEC_INGR && flow->match.sci && flow->rx_sa->sc->sci) { 388 u64 sci = (__force u64)flow 370 vsc8584_macsec_flow(struct phy_device *phydev, struct macsec_flow *flow) argument 461 vsc8584_macsec_flow_enable(struct phy_device *phydev, struct macsec_flow *flow) argument 480 vsc8584_macsec_flow_disable(struct phy_device *phydev, struct macsec_flow *flow) argument 495 vsc8584_macsec_flow_context_id(struct macsec_flow *flow) argument 519 vsc8584_macsec_transformation(struct phy_device *phydev, struct macsec_flow *flow, const u8 *key) argument 605 struct macsec_flow *flow; local 627 vsc8584_macsec_free_flow(struct vsc8531_private *priv, struct macsec_flow *flow) argument 638 vsc8584_macsec_add_flow(struct phy_device *phydev, struct macsec_flow *flow) argument 647 struct macsec_flow *flow; local 683 vsc8584_macsec_del_flow(struct phy_device *phydev, struct macsec_flow *flow) argument 690 __vsc8584_macsec_add_rxsa(struct macsec_context *ctx, struct macsec_flow *flow, bool update) argument 719 __vsc8584_macsec_add_txsa(struct macsec_context *ctx, struct macsec_flow *flow, bool update) argument 745 struct macsec_flow *flow, *tmp; local 756 struct macsec_flow *flow, *tmp; local 785 struct macsec_flow *flow, *tmp; local 817 struct macsec_flow *flow, *tmp; local 832 struct macsec_flow *flow; local 849 struct macsec_flow *flow; local 872 struct macsec_flow *flow; local 886 struct macsec_flow *flow; local 903 struct macsec_flow *flow; local 926 struct macsec_flow *flow; local 975 struct macsec_flow *flow, *tmp; local [all...] |
/linux-master/net/netfilter/ |
H A D | nf_flow_table_core.c | 21 flow_offload_fill_dir(struct flow_offload *flow, argument 24 struct flow_offload_tuple *ft = &flow->tuplehash[dir].tuple; 25 struct nf_conntrack_tuple *ctt = &flow->ct->tuplehash[dir].tuple; 54 struct flow_offload *flow; local 59 flow = kzalloc(sizeof(*flow), GFP_ATOMIC); 60 if (!flow) 64 flow->ct = ct; 66 flow_offload_fill_dir(flow, FLOW_OFFLOAD_DIR_ORIGINAL); 67 flow_offload_fill_dir(flow, FLOW_OFFLOAD_DIR_REPL 100 flow_offload_fill_route(struct flow_offload *flow, struct nf_flow_route *route, enum flow_offload_tuple_dir dir) argument 151 nft_flow_dst_release(struct flow_offload *flow, enum flow_offload_tuple_dir dir) argument 159 flow_offload_route_init(struct flow_offload *flow, struct nf_flow_route *route) argument 206 flow_offload_route_release(struct flow_offload *flow) argument 212 flow_offload_free(struct flow_offload *flow) argument 260 flow_offload_get_timeout(struct flow_offload *flow) argument 279 flow_offload_add(struct nf_flowtable *flow_table, struct flow_offload *flow) argument 312 flow_offload_refresh(struct nf_flowtable *flow_table, struct flow_offload *flow, bool force) argument 330 nf_flow_has_expired(const struct flow_offload *flow) argument 335 flow_offload_del(struct nf_flowtable *flow_table, struct flow_offload *flow) argument 347 flow_offload_teardown(struct flow_offload *flow) argument 360 struct flow_offload *flow; local 381 nf_flow_table_iterate(struct nf_flowtable *flow_table, void (*iter)(struct nf_flowtable *flowtable, struct flow_offload *flow, void *data), void *data) argument 388 struct flow_offload *flow; local 415 nf_flow_custom_gc(struct nf_flowtable *flow_table, const struct flow_offload *flow) argument 421 nf_flow_offload_gc_step(struct nf_flowtable *flow_table, struct flow_offload *flow, void *data) argument 493 nf_flow_snat_port(const struct flow_offload *flow, struct sk_buff *skb, unsigned int thoff, u8 protocol, enum flow_offload_tuple_dir dir) argument 519 nf_flow_dnat_port(const struct flow_offload *flow, struct sk_buff *skb, unsigned int thoff, u8 protocol, enum flow_offload_tuple_dir dir) argument 569 nf_flow_table_do_cleanup(struct nf_flowtable *flow_table, struct flow_offload *flow, void *data) argument [all...] |
H A D | nf_flow_table_offload.c | 24 struct flow_offload *flow; member in struct:flow_offload_work 224 const struct flow_offload *flow, 236 this_tuple = &flow->tuplehash[dir].tuple; 243 other_tuple = &flow->tuplehash[!dir].tuple; 271 const struct flow_offload *flow, 286 this_tuple = &flow->tuplehash[dir].tuple; 293 other_tuple = &flow->tuplehash[!dir].tuple; 328 const struct flow_offload *flow, 339 addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_v4.s_addr; 343 addr = flow 223 flow_offload_eth_src(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) argument 270 flow_offload_eth_dst(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) argument 327 flow_offload_ipv4_snat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) argument 354 flow_offload_ipv4_dnat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) argument 395 flow_offload_ipv6_snat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) argument 420 flow_offload_ipv6_dnat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) argument 445 flow_offload_l4proto(const struct flow_offload *flow) argument 464 flow_offload_port_snat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) argument 494 flow_offload_port_dnat(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) argument 524 flow_offload_ipv4_checksum(struct net *net, const struct flow_offload *flow, struct nf_flow_rule *flow_rule) argument 544 flow_offload_redirect(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) argument 577 flow_offload_encap_tunnel(const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) argument 602 flow_offload_decap_tunnel(const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) argument 627 nf_flow_rule_route_common(struct net *net, const struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) argument 682 nf_flow_rule_route_ipv4(struct net *net, struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) argument 707 nf_flow_rule_route_ipv6(struct net *net, struct flow_offload *flow, enum flow_offload_tuple_dir dir, struct nf_flow_rule *flow_rule) argument 738 struct flow_offload *flow = offload->flow; local 835 nf_flow_offload_tuple(struct nf_flowtable *flowtable, struct flow_offload *flow, struct nf_flow_rule *flow_rule, enum flow_offload_tuple_dir dir, int priority, int cmd, struct flow_stats *stats, struct list_head *block_cb_list) argument 1016 nf_flow_offload_work_alloc(struct nf_flowtable *flowtable, struct flow_offload *flow, unsigned int cmd) argument 1039 nf_flow_offload_add(struct nf_flowtable *flowtable, struct flow_offload *flow) argument 1051 nf_flow_offload_del(struct nf_flowtable *flowtable, struct flow_offload *flow) argument 1064 nf_flow_offload_stats(struct nf_flowtable *flowtable, struct flow_offload *flow) argument [all...] |
H A D | nf_tables_offload.c | 12 struct nft_flow_rule *flow; local 14 flow = kzalloc(sizeof(struct nft_flow_rule), GFP_KERNEL); 15 if (!flow) 18 flow->rule = flow_rule_alloc(num_actions); 19 if (!flow->rule) { 20 kfree(flow); 24 flow->rule->match.dissector = &flow->match.dissector; 25 flow->rule->match.mask = &flow 31 nft_flow_rule_set_addr_type(struct nft_flow_rule *flow, enum flow_dissector_key_id addr_type) argument 53 nft_flow_rule_transfer_vlan(struct nft_offload_ctx *ctx, struct nft_flow_rule *flow) argument 92 struct nft_flow_rule *flow; local 146 nft_flow_rule_destroy(struct nft_flow_rule *flow) argument 242 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) argument 264 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) argument 284 nft_flow_offload_rule(const struct nft_chain *chain, struct nft_rule *rule, struct nft_flow_rule *flow, enum flow_cls_command command) argument [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | act_stats.h | 17 struct mlx5e_tc_flow *flow); 21 struct mlx5e_tc_flow *flow);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | goto.c | 10 struct mlx5e_tc_flow *flow, 16 bool is_esw = mlx5e_is_eswitch_flow(flow); 17 bool ft_flow = mlx5e_is_ft_flow(flow); 66 struct mlx5e_tc_flow *flow = parse_state->flow; local 68 if (validate_goto_chain(flow->priv, flow, attr, act, extack)) 93 struct mlx5e_tc_flow *flow = parse_state->flow; local 101 * this tunnel id with this decap flow 9 validate_goto_chain(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr, const struct flow_action_entry *act, struct netlink_ext_ack *extack) argument [all...] |
H A D | mirred_nic.c | 14 struct mlx5e_tc_flow *flow = parse_state->flow; local 16 struct mlx5e_priv *priv = flow->priv; 42 flow_flag_set(parse_state->flow, HAIRPIN);
|
H A D | csum.c | 44 struct mlx5e_tc_flow *flow = parse_state->flow; local 46 return csum_offload_supported(flow->priv, attr->action,
|
H A D | act.c | 50 * @ns_type: flow namespace type. 66 * @flow: mlx5e tc flow being handled. 67 * @flow_action: flow action to parse. 75 struct mlx5e_tc_flow *flow, 80 parse_state->flow = flow; 96 priv = parse_state->flow->priv; 118 mlx5e_tc_act_set_next_post_act(struct mlx5e_tc_flow *flow, argument 122 struct mlx5_core_dev *mdev = flow 74 mlx5e_tc_act_init_parse_state(struct mlx5e_tc_act_parse_state *parse_state, struct mlx5e_tc_flow *flow, struct flow_action *flow_action, struct netlink_ext_ack *extack) argument [all...] |
/linux-master/net/ipv4/netfilter/ |
H A D | ipt_rpfilter.c | 57 struct flowi4 flow; local 73 memset(&flow, 0, sizeof(flow)); 74 flow.flowi4_iif = LOOPBACK_IFINDEX; 75 flow.daddr = iph->saddr; 76 flow.saddr = rpfilter_get_saddr(iph->daddr); 77 flow.flowi4_mark = info->flags & XT_RPFILTER_VALID_MARK ? skb->mark : 0; 78 flow.flowi4_tos = iph->tos & IPTOS_RT_MASK; 79 flow.flowi4_scope = RT_SCOPE_UNIVERSE; 80 flow [all...] |
/linux-master/net/openvswitch/ |
H A D | flow_table.c | 6 #include "flow.h" 74 struct sw_flow *flow; local 77 flow = kmem_cache_zalloc(flow_cache, GFP_KERNEL); 78 if (!flow) 81 flow->stats_last_writer = -1; 82 flow->cpu_used_mask = (struct cpumask *)&flow->stats[nr_cpu_ids]; 93 RCU_INIT_POINTER(flow->stats[0], stats); 95 cpumask_set_cpu(0, flow->cpu_used_mask); 97 return flow; 108 flow_free(struct sw_flow *flow) argument 130 struct sw_flow *flow = container_of(rcu, struct sw_flow, rcu); local 135 ovs_flow_free(struct sw_flow *flow, bool deferred) argument 459 table_instance_flow_free(struct flow_table *table, struct table_instance *ti, struct table_instance *ufid_ti, struct sw_flow *flow) argument 485 struct sw_flow *flow; local 528 struct sw_flow *flow; local 558 table_instance_insert(struct table_instance *ti, struct sw_flow *flow) argument 567 ufid_table_instance_insert(struct table_instance *ti, struct sw_flow *flow) argument 587 struct sw_flow *flow; local 680 flow_cmp_masked_key(const struct sw_flow *flow, const struct sw_flow_key *key, const struct sw_flow_key_range *range) argument 687 ovs_flow_cmp_unmasked_key(const struct sw_flow *flow, const struct sw_flow_match *match) argument 703 struct sw_flow *flow; local 736 struct sw_flow *flow; local 793 struct sw_flow *flow; local 854 struct sw_flow *flow; local 878 struct sw_flow *flow; local 899 ovs_flow_cmp_ufid(const struct sw_flow *flow, const struct sw_flow_id *sfid) argument 908 ovs_flow_cmp(const struct sw_flow *flow, const struct sw_flow_match *match) argument 921 struct sw_flow *flow; local 956 ovs_flow_tbl_remove(struct flow_table *table, struct sw_flow *flow) argument 1006 flow_mask_insert(struct flow_table *tbl, struct sw_flow *flow, const struct sw_flow_mask *new) argument 1035 flow_key_insert(struct flow_table *table, struct sw_flow *flow) argument 1059 flow_ufid_insert(struct flow_table *table, struct sw_flow *flow) argument 1081 ovs_flow_tbl_insert(struct flow_table *table, struct sw_flow *flow, const struct sw_flow_mask *mask) argument [all...] |
/linux-master/samples/bpf/ |
H A D | sockex2_kern.c | 63 struct flow_key_record *flow) 73 flow->src = load_word(skb, nhoff + offsetof(struct iphdr, saddr)); 74 flow->dst = load_word(skb, nhoff + offsetof(struct iphdr, daddr)); 87 struct flow_key_record *flow) 91 flow->src = ipv6_addr_hash(skb, 93 flow->dst = ipv6_addr_hash(skb, 101 struct flow_key_record *flow) 121 nhoff = parse_ip(skb, nhoff, &ip_proto, flow); 123 nhoff = parse_ipv6(skb, nhoff, &ip_proto, flow); 159 nhoff = parse_ip(skb, nhoff, &ip_proto, flow); 62 parse_ip(struct __sk_buff *skb, __u64 nhoff, __u64 *ip_proto, struct flow_key_record *flow) argument 86 parse_ipv6(struct __sk_buff *skb, __u64 nhoff, __u64 *ip_proto, struct flow_key_record *flow) argument 100 flow_dissector(struct __sk_buff *skb, struct flow_key_record *flow) argument 203 struct flow_key_record flow = {}; local [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_tc.c | 171 * last flow from a group and then deleting a group, we get into del_sw_flow_group() 178 static void mlx5e_put_flow_tunnel_id(struct mlx5e_tc_flow *flow); 179 static void free_flow_post_acts(struct mlx5e_tc_flow *flow); 180 static void mlx5_free_flow_attr_actions(struct mlx5e_tc_flow *flow, 452 mlx5_core_err(priv->mdev, "Failed to get flow meter\n"); 603 struct mlx5e_tc_flow *flow); 605 struct mlx5e_tc_flow *mlx5e_flow_get(struct mlx5e_tc_flow *flow) argument 607 if (!flow || !refcount_inc_not_zero(&flow->refcnt)) 609 return flow; 612 mlx5e_flow_put(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow) argument 620 mlx5e_is_eswitch_flow(struct mlx5e_tc_flow *flow) argument 625 mlx5e_is_ft_flow(struct mlx5e_tc_flow *flow) argument 630 mlx5e_is_offloaded_flow(struct mlx5e_tc_flow *flow) argument 635 mlx5e_get_flow_namespace(struct mlx5e_tc_flow *flow) argument 642 get_flow_counter_dev(struct mlx5e_tc_flow *flow) argument 648 get_mod_hdr_table(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow) argument 658 mlx5e_tc_attach_mod_hdr(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr) argument 677 mlx5e_tc_detach_mod_hdr(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr) argument 1092 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) argument 1216 mlx5e_hairpin_flow_del(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow) argument 1361 mlx5e_tc_add_nic_flow(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct netlink_ext_ack *extack) argument 1413 mlx5e_tc_del_nic_flow(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow) argument 1454 mlx5e_tc_offload_fdb_rules(struct mlx5_eswitch *esw, struct mlx5e_tc_flow *flow, struct mlx5_flow_spec *spec, struct mlx5_flow_attr *attr) argument 1482 mlx5e_tc_unoffload_fdb_rules(struct mlx5_eswitch *esw, struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr) argument 1498 mlx5e_tc_offload_to_slow_path(struct mlx5_eswitch *esw, struct mlx5e_tc_flow *flow, struct mlx5_flow_spec *spec) argument 1571 mlx5e_tc_unoffload_from_slow_path(struct mlx5_eswitch *esw, struct mlx5e_tc_flow *flow) argument 1605 unready_flow_add(struct mlx5e_tc_flow *flow, struct list_head *unready_flows) argument 1615 unready_flow_del(struct mlx5e_tc_flow *flow) argument 1621 add_unready_flow(struct mlx5e_tc_flow *flow) argument 1636 remove_unready_flow(struct mlx5e_tc_flow *flow) argument 1744 post_process_attr(struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr, struct netlink_ext_ack *extack) argument 1792 mlx5e_tc_add_fdb_flow(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct netlink_ext_ack *extack) argument 1920 mlx5_flow_has_geneve_opt(struct mlx5e_tc_flow *flow) argument 1933 free_branch_attr(struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr) argument 1943 mlx5e_tc_del_fdb_flow(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow) argument 1972 mlx5e_tc_act_stats_del_flow(get_act_stats_handle(priv), flow); local 1982 mlx5e_tc_get_counter(struct mlx5e_tc_flow *flow) argument 1993 struct mlx5e_tc_flow *flow, *tmp; local 1999 mlx5e_tc_del_fdb_peer_flow(struct mlx5e_tc_flow *flow, int peer_index) argument 2029 mlx5e_tc_del_fdb_peers_flow(struct mlx5e_tc_flow *flow) argument 2040 mlx5e_tc_del_flow(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow) argument 2129 mlx5e_get_flow_tunnel_id(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct flow_cls_offload *f, struct net_device *filter_dev) argument 2224 mlx5e_put_flow_tunnel_id(struct mlx5e_tc_flow *flow) argument 2397 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) argument 2573 __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) argument 3033 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) argument 3454 actions_match_supported_fdb(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct netlink_ext_ack *extack) argument 3472 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) argument 3511 actions_prepare_mod_hdr_actions(struct mlx5e_priv *priv, struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr, struct netlink_ext_ack *extack) argument 3589 mlx5e_tc_get_encap_attr(struct mlx5e_tc_flow *flow) argument 3607 mlx5e_tc_unoffload_flow_post_acts(struct mlx5e_tc_flow *flow) argument 3621 free_flow_post_acts(struct mlx5e_tc_flow *flow) argument 3638 mlx5e_tc_offload_flow_post_acts(struct mlx5e_tc_flow *flow) argument 3677 alloc_flow_post_acts(struct mlx5e_tc_flow *flow, struct netlink_ext_ack *extack) argument 3760 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) argument 3854 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) argument 3903 struct mlx5e_tc_flow *flow = parse_state->flow; local 4015 parse_tc_nic_actions(struct mlx5e_priv *priv, struct flow_action *flow_action, struct mlx5e_tc_flow *flow, struct netlink_ext_ack *extack) argument 4149 parse_tc_fdb_actions(struct mlx5e_priv *priv, struct flow_action *flow_action, struct mlx5e_tc_flow *flow, struct netlink_ext_ack *extack) argument 4242 is_peer_flow_needed(struct mlx5e_tc_flow *flow) argument 4283 mlx5_free_flow_attr_actions(struct mlx5e_tc_flow *flow, struct mlx5_flow_attr *attr) argument 4330 struct mlx5e_tc_flow *flow; local 4414 struct mlx5e_tc_flow *flow; local 4461 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) argument 4522 struct mlx5e_tc_flow *flow; local 4569 struct mlx5e_tc_flow *flow; local 4621 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) argument 4702 struct mlx5e_tc_flow *flow; local 4764 same_flow_direction(struct mlx5e_tc_flow *flow, int flags) argument 4777 struct mlx5e_tc_flow *flow; local 4820 struct mlx5e_tc_flow *flow; local 5217 struct mlx5e_tc_flow *flow = ptr; local 5393 struct mlx5e_tc_flow *flow, *tmp; local 5409 struct mlx5e_tc_flow *flow, *tmp; local [all...] |
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | tid_rdma.c | 37 /* Maximum number of packets within a flow generation. */ 134 struct tid_rdma_flow *flow, 529 * This should be done after the hardware flow and 700 * kern_reserve_flow - allocate a hardware flow 702 * @last: the index of the preferred flow. Use RXE_NUM_TID_FLOWS to 706 * flow for use in receiving KDETH data packets. If a preferred flow is 707 * specified the function will attempt to reserve that flow again, if 721 /* Attempt to reserve the preferred flow index */ 788 /* The QP already has an allocated flow */ 881 tid_rdma_find_phys_blocks_4k(struct tid_rdma_flow *flow, struct page **pages, u32 npages, struct tid_rdma_pageset *list) argument 1020 tid_rdma_find_phys_blocks_8k(struct tid_rdma_flow *flow, struct page **pages, u32 npages, struct tid_rdma_pageset *list) argument 1087 kern_find_pages(struct tid_rdma_flow *flow, struct page **pages, struct rvt_sge_state *ss, bool *last) argument 1122 dma_unmap_flow(struct tid_rdma_flow *flow) argument 1141 dma_map_flow(struct tid_rdma_flow *flow, struct page **pages) argument 1166 dma_mapped(struct tid_rdma_flow *flow) argument 1175 kern_get_phys_blocks(struct tid_rdma_flow *flow, struct page **pages, struct rvt_sge_state *ss, bool *last) argument 1204 kern_add_tid_node(struct tid_rdma_flow *flow, struct hfi1_ctxtdata *rcd, char *s, struct tid_group *grp, u8 cnt) argument 1237 kern_alloc_tids(struct tid_rdma_flow *flow) argument 1300 kern_program_rcv_group(struct tid_rdma_flow *flow, int grp_num, u32 *pset_idx) argument 1368 kern_unprogram_rcv_group(struct tid_rdma_flow *flow, int grp_num) argument 1407 kern_program_rcvarray(struct tid_rdma_flow *flow) argument 1465 struct tid_rdma_flow *flow = &req->flows[req->setup_head]; variable in typeref:struct:tid_rdma_flow 1542 hfi1_tid_rdma_reset_flow(struct tid_rdma_flow *flow) argument 1556 struct tid_rdma_flow *flow = &req->flows[req->clear_tail]; variable in typeref:struct:tid_rdma_flow 1577 dma_unmap_flow(flow); variable 1579 hfi1_tid_rdma_reset_flow(flow); variable 1685 struct tid_rdma_flow *flow; local 1708 struct tid_rdma_flow *flow = &req->flows[req->flow_idx]; local 1794 struct tid_rdma_flow *flow = NULL; variable in typeref:struct:tid_rdma_flow 1897 struct tid_rdma_flow *flow; local 2351 struct tid_rdma_flow *flow = &req->flows[req->clear_tail]; local 2456 struct tid_rdma_flow *flow; local 2633 struct tid_rdma_flow *flow; local 2665 struct tid_rdma_flow *flow; local 2866 struct tid_rdma_flow *flow; local 3050 struct tid_rdma_flow *flow; local 3843 struct tid_rdma_flow *flow = NULL; local 4046 struct tid_rdma_flow *flow; local 4210 struct tid_rdma_flow *flow = &req->flows[req->clear_tail]; local 4277 struct tid_rdma_flow *flow; local 4433 struct tid_rdma_flow *flow = &req->flows[iflow]; local 4504 struct tid_rdma_flow *flow; local 4850 struct tid_rdma_flow *flow = &req->flows[fidx]; local 4878 struct tid_rdma_flow *flow; local 5197 u16 flow; local 5516 update_r_next_psn_fecn(struct hfi1_packet *packet, struct hfi1_qp_priv *priv, struct hfi1_ctxtdata *rcd, struct tid_rdma_flow *flow, bool fecn) argument [all...] |
/linux-master/drivers/infiniband/hw/usnic/ |
H A D | usnic_fwd.c | 203 struct usnic_fwd_flow *flow; local 213 flow = kzalloc(sizeof(*flow), GFP_ATOMIC); 214 if (!flow) 255 flow->flow_id = (uint32_t) a0; 256 flow->vnic_idx = uaction->vnic_idx; 257 flow->ufdev = ufdev; 263 return flow; 265 kfree(flow); 269 int usnic_fwd_dealloc_flow(struct usnic_fwd_flow *flow) argument [all...] |
/linux-master/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_tc.c | 44 /* Return the dst fid of the func for flow forwarding 370 struct bnxt_tc_flow *flow) 387 flow->l2_key.ether_type = match.key->n_proto; 388 flow->l2_mask.ether_type = match.mask->n_proto; 392 flow->l4_key.ip_proto = match.key->ip_proto; 393 flow->l4_mask.ip_proto = match.mask->ip_proto; 401 flow->flags |= BNXT_TC_FLOW_FLAGS_ETH_ADDRS; 402 ether_addr_copy(flow->l2_key.dmac, match.key->dst); 403 ether_addr_copy(flow->l2_mask.dmac, match.mask->dst); 404 ether_addr_copy(flow 368 bnxt_tc_parse_flow(struct bnxt *bp, struct flow_cls_offload *tc_flow_cmd, struct bnxt_tc_flow *flow) argument 585 bnxt_hwrm_cfa_flow_alloc(struct bnxt *bp, struct bnxt_tc_flow *flow, __le16 ref_flow_handle, __le32 tunnel_handle, struct bnxt_tc_flow_node *flow_node) argument 789 hwrm_cfa_decap_filter_alloc(struct bnxt *bp, struct bnxt_tc_flow *flow, struct bnxt_tc_l2_key *l2_info, __le32 ref_decap_handle, __le32 *decap_filter_handle) argument 1001 bnxt_tc_get_ref_flow_handle(struct bnxt *bp, struct bnxt_tc_flow *flow, struct bnxt_tc_flow_node *flow_node, __le16 *ref_flow_handle) argument 1041 bnxt_tc_can_offload(struct bnxt *bp, struct bnxt_tc_flow *flow) argument 1149 bnxt_tc_get_ref_decap_handle(struct bnxt *bp, struct bnxt_tc_flow *flow, struct bnxt_tc_l2_key *l2_key, struct bnxt_tc_flow_node *flow_node, __le32 *ref_decap_handle) argument 1231 struct flowi4 flow = { {0} }; local 1300 bnxt_tc_get_decap_handle(struct bnxt *bp, struct bnxt_tc_flow *flow, struct bnxt_tc_flow_node *flow_node, __le32 *decap_filter_handle) argument 1398 bnxt_tc_get_encap_handle(struct bnxt *bp, struct bnxt_tc_flow *flow, struct bnxt_tc_flow_node *flow_node, __le32 *encap_handle) argument 1442 bnxt_tc_put_tunnel_handle(struct bnxt *bp, struct bnxt_tc_flow *flow, struct bnxt_tc_flow_node *flow_node) argument 1452 bnxt_tc_get_tunnel_handle(struct bnxt *bp, struct bnxt_tc_flow *flow, struct bnxt_tc_flow_node *flow_node, __le32 *tunnel_handle) argument 1495 bnxt_tc_set_flow_dir(struct bnxt *bp, struct bnxt_tc_flow *flow, u16 src_fid) argument 1501 bnxt_tc_set_src_fid(struct bnxt *bp, struct bnxt_tc_flow *flow, u16 src_fid) argument 1528 struct bnxt_tc_flow *flow; local 1629 struct bnxt_tc_flow *flow; local 1769 struct bnxt_tc_flow *flow = &flow_node->flow; local [all...] |
/linux-master/include/net/netfilter/ |
H A D | nf_dup_netdev.h | 14 struct nft_flow_rule *flow,
|