/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch_offloads_termtbl.c | 13 struct mlx5_flow_act flow_act; member 21 mlx5_eswitch_termtbl_hash(struct mlx5_flow_act *flow_act, in mlx5_eswitch_termtbl_hash() argument 26 hash = jhash_1word(flow_act->action, 0); in mlx5_eswitch_termtbl_hash() 27 hash = jhash((const void *)&flow_act->vlan, in mlx5_eswitch_termtbl_hash() 28 sizeof(flow_act->vlan), hash); in mlx5_eswitch_termtbl_hash() 33 if (flow_act->pkt_reformat) in mlx5_eswitch_termtbl_hash() 34 hash = jhash(flow_act->pkt_reformat, in mlx5_eswitch_termtbl_hash() 35 sizeof(*flow_act->pkt_reformat), in mlx5_eswitch_termtbl_hash() 66 struct mlx5_flow_act *flow_act) in mlx5_eswitch_termtbl_create() argument 94 tt->rule = mlx5_add_flow_rules(tt->termtbl, NULL, flow_act, in mlx5_eswitch_termtbl_create() 113 mlx5_eswitch_termtbl_get_create(struct mlx5_eswitch * esw,struct mlx5_flow_act * flow_act,struct mlx5_flow_destination * dest,struct mlx5_esw_flow_attr * attr) mlx5_eswitch_termtbl_get_create() argument 216 mlx5_eswitch_termtbl_required(struct mlx5_eswitch * esw,struct mlx5_flow_attr * attr,struct mlx5_flow_act * flow_act,struct mlx5_flow_spec * spec) mlx5_eswitch_termtbl_required() argument 248 mlx5_eswitch_add_termtbl_rule(struct mlx5_eswitch * esw,struct mlx5_flow_table * fdb,struct mlx5_flow_spec * spec,struct mlx5_esw_flow_attr * attr,struct mlx5_flow_act * flow_act,struct mlx5_flow_destination * dest,int num_dest) mlx5_eswitch_add_termtbl_rule() argument [all...] |
H A D | eswitch_offloads.c | 215 struct mlx5_flow_act *flow_act, in esw_setup_sampler_dest() argument 219 flow_act->flags |= FLOW_ACT_IGNORE_FLOW_LEVEL; in esw_setup_sampler_dest() 228 struct mlx5_flow_act *flow_act, in esw_setup_ft_dest() argument 233 flow_act->flags |= FLOW_ACT_IGNORE_FLOW_LEVEL; in esw_setup_ft_dest() 243 esw_setup_accept_dest(struct mlx5_flow_destination *dest, struct mlx5_flow_act *flow_act, in esw_setup_accept_dest() argument 247 flow_act->flags |= FLOW_ACT_IGNORE_FLOW_LEVEL; in esw_setup_accept_dest() 253 esw_setup_slow_path_dest(struct mlx5_flow_destination *dest, struct mlx5_flow_act *flow_act, in esw_setup_slow_path_dest() argument 257 flow_act->flags |= FLOW_ACT_IGNORE_FLOW_LEVEL; in esw_setup_slow_path_dest() 264 struct mlx5_flow_act *flow_act, in esw_setup_chain_dest() argument 271 flow_act in esw_setup_chain_dest() 309 esw_setup_chain_src_port_rewrite(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_fs_chains * chains,struct mlx5_flow_attr * attr,int * i) esw_setup_chain_src_port_rewrite() argument 375 esw_setup_indir_table(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_flow_attr * attr,int * i) esw_setup_indir_table() argument 467 esw_setup_dest_fwd_vport(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_esw_flow_attr * esw_attr,int attr_idx,int dest_idx,bool pkt_reformat) esw_setup_dest_fwd_vport() argument 492 esw_setup_dest_fwd_ipsec(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_esw_flow_attr * esw_attr,int attr_idx,int dest_idx,bool pkt_reformat) esw_setup_dest_fwd_ipsec() argument 506 esw_setup_vport_dest(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_esw_flow_attr * esw_attr,int attr_idx,int dest_idx,bool pkt_reformat) esw_setup_vport_dest() argument 519 esw_setup_vport_dests(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_esw_flow_attr * esw_attr,int i) esw_setup_vport_dests() argument 567 esw_setup_dests(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_eswitch * esw,struct mlx5_flow_attr * attr,struct mlx5_flow_spec * spec,int * i) esw_setup_dests() argument 644 esw_setup_meter(struct mlx5_flow_attr * attr,struct mlx5_flow_act * flow_act) esw_setup_meter() argument 663 struct mlx5_flow_act flow_act = { .flags = FLOW_ACT_NO_APPEND, }; mlx5_eswitch_add_offloaded_rule() local 800 struct mlx5_flow_act flow_act = { .flags = FLOW_ACT_NO_APPEND, }; mlx5_eswitch_add_fwd_rule() local 942 struct mlx5_flow_act flow_act = {0}; mlx5_eswitch_add_send_to_vport_rule() local 1042 struct mlx5_flow_act flow_act = {0}; mlx5_eswitch_add_send_to_vport_meta_rule() local 1187 struct mlx5_flow_act flow_act = {0}; esw_add_fdb_peer_miss_rules() local 1355 struct mlx5_flow_act flow_act = {0}; esw_add_fdb_miss_rule() local 1416 struct mlx5_flow_act flow_act = { .flags = FLOW_ACT_NO_APPEND, }; esw_add_restore_rule() local 2141 struct mlx5_flow_act flow_act = {0}; mlx5_eswitch_create_vport_rx_rule() local 2168 struct mlx5_flow_act flow_act = {}; esw_create_vport_rx_drop_rule() local 2702 struct mlx5_flow_act flow_act = {}; __esw_set_master_egress_rule() local [all...] |
H A D | rdma.c | 29 struct mlx5_flow_act flow_act = {}; in mlx5_rdma_enable_roce_steering() local 77 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_ALLOW; in mlx5_rdma_enable_roce_steering() 78 flow_rule = mlx5_add_flow_rules(ft, spec, &flow_act, NULL, 0); in mlx5_rdma_enable_roce_steering()
|
H A D | fs_core.c | 852 struct mlx5_flow_act *flow_act) in alloc_fte() argument 863 fte->act_dests.action = *flow_act; in alloc_fte() 1062 struct mlx5_flow_act *flow_act) in find_next_fwd_ft() argument 1067 next_ns = flow_act->action & MLX5_FLOW_CONTEXT_ACTION_FWD_NEXT_NS; in find_next_fwd_ft() 1967 const struct mlx5_flow_act *flow_act) in check_conflicting_ftes() argument 1969 if (check_conflicting_actions(flow_act, &fte->act_dests.action)) { in check_conflicting_ftes() 1989 struct mlx5_flow_act *flow_act, in add_rule_fg() argument 1999 ret = check_conflicting_ftes(fte, &spec->flow_context, flow_act); in add_rule_fg() 2004 fte->act_dests.action.action |= flow_act->action; in add_rule_fg() 2006 old_action != flow_act in add_rule_fg() 2031 dest_is_valid(struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_flow_table * ft) dest_is_valid() argument 2174 add_rule_dup_match_fte(struct fs_fte * fte,const struct mlx5_flow_spec * spec,struct mlx5_flow_act * flow_act,struct mlx5_flow_destination * dest,int dest_num) add_rule_dup_match_fte() argument 2225 try_add_to_existing_fg(struct mlx5_flow_table * ft,struct list_head * match_head,const struct mlx5_flow_spec * spec,struct mlx5_flow_act * flow_act,struct mlx5_flow_destination * dest,int dest_num,int ft_version) try_add_to_existing_fg() argument 2333 _mlx5_add_flow_rules(struct mlx5_flow_table * ft,const struct mlx5_flow_spec * spec,struct mlx5_flow_act * flow_act,struct mlx5_flow_destination * dest,int dest_num) _mlx5_add_flow_rules() argument 2448 mlx5_add_flow_rules(struct mlx5_flow_table * ft,const struct mlx5_flow_spec * spec,struct mlx5_flow_act * flow_act,struct mlx5_flow_destination * dest,int num_dest) mlx5_add_flow_rules() argument [all...] |
H A D | en_fs.c | 226 MLX5_DECLARE_FLOW_ACT(flow_act); in __mlx5e_add_vlan_rule() 281 *rule_p = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in __mlx5e_add_vlan_rule() 371 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5e_add_trap_rule() 383 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in mlx5e_add_trap_rule() 753 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5e_add_promisc_rule() 764 *rule_p = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in mlx5e_add_promisc_rule() 964 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5e_add_l2_flow_rule() 996 ai->rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in mlx5e_add_l2_flow_rule()
|
H A D | en_arfs.c | 221 MLX5_DECLARE_FLOW_ACT(flow_act); in arfs_add_default_rule() 237 &flow_act, in arfs_add_default_rule() 520 MLX5_DECLARE_FLOW_ACT(flow_act); in arfs_add_rule() 598 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in arfs_add_rule()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | macsec_fs.c | 397 struct mlx5_flow_act flow_act = {}; in macsec_fs_tx_create() local 451 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_ALLOW; in macsec_fs_tx_create() 453 rule = mlx5_add_flow_rules(ft_crypto->t, spec, &flow_act, NULL, 0); in macsec_fs_tx_create() 462 memset(&flow_act, 0, sizeof(flow_act)); in macsec_fs_tx_create() 463 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_ALLOW; in macsec_fs_tx_create() 464 rule = mlx5_add_flow_rules(ft_crypto->t, NULL, &flow_act, NULL, 0); in macsec_fs_tx_create() 498 memset(&flow_act, 0, sizeof(flow_act)); in macsec_fs_tx_create() 501 flow_act in macsec_fs_tx_create() 579 macsec_fs_tx_setup_fte(struct mlx5_macsec_fs * macsec_fs,struct mlx5_flow_spec * spec,struct mlx5_flow_act * flow_act,u32 macsec_obj_id,u32 * fs_id) macsec_fs_tx_setup_fte() argument 812 struct mlx5_flow_act flow_act = {}; macsec_fs_tx_add_rule() local 1137 macsec_fs_rx_create_check_decap_rule(struct mlx5_macsec_fs * macsec_fs,struct mlx5_flow_destination * dest,struct mlx5_flow_act * flow_act,struct mlx5_flow_spec * spec,int reformat_param_size) macsec_fs_rx_create_check_decap_rule() argument 1220 struct mlx5_flow_act flow_act = {}; macsec_fs_rx_roce_miss_create() local 1506 struct mlx5_flow_act flow_act = {}; macsec_fs_rx_create() local 1681 macsec_fs_rx_setup_fte(struct mlx5_flow_spec * spec,struct mlx5_flow_act * flow_act,struct mlx5_macsec_rule_attrs * attrs,bool sci_present) macsec_fs_rx_setup_fte() argument 1741 struct mlx5_flow_act flow_act = {}; macsec_fs_rx_add_rule() local 2134 struct mlx5_flow_act flow_act = {}; mlx5_macsec_fs_add_roce_rule_rx() local 2203 struct mlx5_flow_act flow_act = {}; mlx5_macsec_fs_add_roce_rule_tx() local [all...] |
H A D | ipsec_fs_roce.c | 137 MLX5_DECLARE_FLOW_ACT(flow_act); in ipsec_fs_roce_rx_rule_setup() 148 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in ipsec_fs_roce_rx_rule_setup() 156 rule = mlx5_add_flow_rules(roce->ft, spec, &flow_act, &dst, 1); in ipsec_fs_roce_rx_rule_setup() 167 rule = mlx5_add_flow_rules(roce->ft, spec, &flow_act, default_dst, 1); in ipsec_fs_roce_rx_rule_setup() 180 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in ipsec_fs_roce_rx_rule_setup() 183 rule = mlx5_add_flow_rules(roce->nic_master_ft, NULL, &flow_act, &dst, in ipsec_fs_roce_rx_rule_setup() 210 MLX5_DECLARE_FLOW_ACT(flow_act); in ipsec_fs_roce_tx_rule_setup() 214 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in ipsec_fs_roce_tx_rule_setup() 217 rule = mlx5_add_flow_rules(roce->ft, NULL, &flow_act, &dst, in ipsec_fs_roce_tx_rule_setup() 236 MLX5_DECLARE_FLOW_ACT(flow_act); in ipsec_fs_roce_tx_mpv_rule_setup() [all...] |
H A D | fs_ttc.c | 287 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5_generate_ttc_rule() 319 rule = mlx5_add_flow_rules(ft, spec, &flow_act, dest, 1); in mlx5_generate_ttc_rule() 476 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5_generate_inner_ttc_rule() 504 rule = mlx5_add_flow_rules(ft, spec, &flow_act, dest, 1); in mlx5_generate_inner_ttc_rule()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
H A D | ingress_ofld.c | 23 struct mlx5_flow_act flow_act = {}; in esw_acl_ingress_prio_tag_create() local 40 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH | in esw_acl_ingress_prio_tag_create() 42 flow_act.vlan[0].ethtype = ETH_P_8021Q; in esw_acl_ingress_prio_tag_create() 43 flow_act.vlan[0].vid = 0; in esw_acl_ingress_prio_tag_create() 44 flow_act.vlan[0].prio = 0; in esw_acl_ingress_prio_tag_create() 47 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_MOD_HDR; in esw_acl_ingress_prio_tag_create() 48 flow_act.modify_hdr = vport->ingress.offloads.modify_metadata; in esw_acl_ingress_prio_tag_create() 52 &flow_act, NULL, 0); in esw_acl_ingress_prio_tag_create() 69 struct mlx5_flow_act flow_act = {}; in esw_acl_ingress_mod_metadata_create() local 96 flow_act in esw_acl_ingress_mod_metadata_create() 127 struct mlx5_flow_act flow_act = {}; esw_acl_ingress_src_port_drop_create() local [all...] |
H A D | ingress_lgcy.c | 145 struct mlx5_flow_act flow_act = {}; in esw_acl_ingress_lgcy_setup() local 220 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_ALLOW; in esw_acl_ingress_lgcy_setup() 222 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_VLAN_PUSH; in esw_acl_ingress_lgcy_setup() 223 flow_act.vlan[0].prio = vport->info.qos; in esw_acl_ingress_lgcy_setup() 224 flow_act.vlan[0].vid = vport->info.vlan; in esw_acl_ingress_lgcy_setup() 225 flow_act.vlan[0].ethtype = ETH_P_8021Q; in esw_acl_ingress_lgcy_setup() 244 &flow_act, NULL, 0); in esw_acl_ingress_lgcy_setup() 257 memset(&flow_act, 0, sizeof(flow_act)); in esw_acl_ingress_lgcy_setup() 258 flow_act in esw_acl_ingress_lgcy_setup() [all...] |
H A D | egress_lgcy.c | 74 struct mlx5_flow_act flow_act = {}; in esw_acl_egress_lgcy_setup() local 132 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_DROP; in esw_acl_egress_lgcy_setup() 136 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_COUNT; in esw_acl_egress_lgcy_setup() 144 &flow_act, dst, dest_num); in esw_acl_egress_lgcy_setup()
|
H A D | helper.c | 54 struct mlx5_flow_act flow_act = {}; in esw_egress_acl_vlan_create() local 71 flow_act.action = flow_action; in esw_egress_acl_vlan_create() 74 &flow_act, fwd_dest, 0); in esw_egress_acl_vlan_create()
|
H A D | egress_ofld.c | 45 struct mlx5_flow_act flow_act = {}; in esw_acl_egress_ofld_fwd2vport_create() local 54 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in esw_acl_egress_ofld_fwd2vport_create() 58 &flow_act, fwd_dest, 1); in esw_acl_egress_ofld_fwd2vport_create()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | indir_table.c | 104 struct mlx5_flow_act flow_act = {}; in mlx5_esw_indir_table_rule_get() local 130 flow_act.modify_hdr = mlx5_modify_header_alloc(esw->dev, MLX5_FLOW_NAMESPACE_FDB, in mlx5_esw_indir_table_rule_get() 132 if (IS_ERR(flow_act.modify_hdr)) { in mlx5_esw_indir_table_rule_get() 133 err = PTR_ERR(flow_act.modify_hdr); in mlx5_esw_indir_table_rule_get() 137 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST | MLX5_FLOW_CONTEXT_ACTION_MOD_HDR; in mlx5_esw_indir_table_rule_get() 138 flow_act.flags = FLOW_ACT_IGNORE_FLOW_LEVEL | FLOW_ACT_NO_APPEND; in mlx5_esw_indir_table_rule_get() 139 flow_act.fg = e->recirc_grp; in mlx5_esw_indir_table_rule_get() 146 handle = mlx5_add_flow_rules(e->ft, NULL, &flow_act, &dest, 1); in mlx5_esw_indir_table_rule_get() 154 rule->mh = flow_act.modify_hdr; in mlx5_esw_indir_table_rule_get() 162 mlx5_modify_header_dealloc(esw->dev, flow_act in mlx5_esw_indir_table_rule_get() 214 struct mlx5_flow_act flow_act = {}; mlx5_create_indir_fwd_group() local [all...] |
H A D | ipsec_fs.h | 16 struct mlx5_flow_act *flow_act); 36 struct mlx5_flow_act *flow_act) in mlx5_esw_ipsec_rx_setup_modify_header() argument
|
H A D | ipsec_fs.c | 44 struct mlx5_flow_act *flow_act) in mlx5_esw_ipsec_rx_setup_modify_header() argument 78 flow_act->modify_hdr = modify_hdr; in mlx5_esw_ipsec_rx_setup_modify_header() 79 flow_act->action |= MLX5_FLOW_CONTEXT_ACTION_MOD_HDR; in mlx5_esw_ipsec_rx_setup_modify_header()
|
H A D | legacy.c | 244 struct mlx5_flow_act flow_act = {}; in _mlx5_eswitch_set_vepa_locked() local 279 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in _mlx5_eswitch_set_vepa_locked() 281 &flow_act, &dest, 1); in _mlx5_eswitch_set_vepa_locked() 292 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in _mlx5_eswitch_set_vepa_locked() 294 &flow_act, &dest, 1); in _mlx5_eswitch_set_vepa_locked()
|
H A D | bridge.c | 579 struct mlx5_flow_act flow_act = { in mlx5_esw_bridge_ingress_flow_with_esw_create() local 607 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_PACKET_REFORMAT | in mlx5_esw_bridge_ingress_flow_with_esw_create() 609 flow_act.pkt_reformat = vlan->pkt_reformat_push; in mlx5_esw_bridge_ingress_flow_with_esw_create() 610 flow_act.modify_hdr = vlan->pkt_mod_hdr_push_mark; in mlx5_esw_bridge_ingress_flow_with_esw_create() 634 handle = mlx5_add_flow_rules(br_offloads->ingress_ft, rule_spec, &flow_act, dests, in mlx5_esw_bridge_ingress_flow_with_esw_create() 694 struct mlx5_flow_act flow_act = { in mlx5_esw_bridge_ingress_filter_flow_create() local 732 handle = mlx5_add_flow_rules(br_offloads->ingress_ft, rule_spec, &flow_act, &dest, 1); in mlx5_esw_bridge_ingress_filter_flow_create() 747 struct mlx5_flow_act flow_act = { in mlx5_esw_bridge_egress_flow_create() local 774 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_PACKET_REFORMAT; in mlx5_esw_bridge_egress_flow_create() 775 flow_act in mlx5_esw_bridge_egress_flow_create() 814 struct mlx5_flow_act flow_act = { mlx5_esw_bridge_egress_miss_flow_create() local [all...] |
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec_fs.c | 204 struct mlx5_flow_act flow_act = {}; in rx_add_rule_drop_auth_trailer() local 223 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_DROP | MLX5_FLOW_CONTEXT_ACTION_COUNT; in rx_add_rule_drop_auth_trailer() 224 flow_act.flags = FLOW_ACT_NO_APPEND; in rx_add_rule_drop_auth_trailer() 234 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in rx_add_rule_drop_auth_trailer() 254 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in rx_add_rule_drop_auth_trailer() 283 struct mlx5_flow_act flow_act = {}; in rx_add_rule_drop_replay() local 301 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_DROP | MLX5_FLOW_CONTEXT_ACTION_COUNT; in rx_add_rule_drop_replay() 302 flow_act.flags = FLOW_ACT_NO_APPEND; in rx_add_rule_drop_replay() 312 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in rx_add_rule_drop_replay() 340 struct mlx5_flow_act flow_act in ipsec_rx_status_drop_all_create() local 451 struct mlx5_flow_act flow_act = {}; ipsec_rx_status_pass_create() local 916 struct mlx5_flow_act flow_act = {}; ipsec_rx_sa_selector_create() local 1197 struct mlx5_flow_act flow_act = {}; ipsec_counter_rule_tx() local 1660 setup_modify_header(struct mlx5e_ipsec * ipsec,int type,u32 val,u8 dir,struct mlx5_flow_act * flow_act) setup_modify_header() argument 1890 setup_pkt_reformat(struct mlx5e_ipsec * ipsec,struct mlx5_accel_esp_xfrm_attrs * attrs,struct mlx5_flow_act * flow_act) setup_pkt_reformat() argument 1931 struct mlx5_flow_act flow_act = {}; rx_add_rule_sa_selector() local 2009 struct mlx5_flow_act flow_act = {}; rx_add_rule() local 2139 struct mlx5_flow_act flow_act = {}; tx_add_rule() local 2230 struct mlx5_flow_act flow_act = {}; tx_add_policy() local 2314 struct mlx5_flow_act flow_act = {}; rx_add_policy() local [all...] |
H A D | fs_tcp.c | 81 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5e_accel_fs_add_sk() 138 flow = mlx5_add_flow_rules(ft->t, spec, &flow_act, &dest, 1); in mlx5e_accel_fs_add_sk() 155 MLX5_DECLARE_FLOW_ACT(flow_act); in accel_fs_tcp_add_default_rule() 162 rule = mlx5_add_flow_rules(accel_fs_t->t, NULL, &flow_act, &dest, 1); in accel_fs_tcp_add_default_rule()
|
/linux/drivers/infiniband/hw/mlx5/ |
H A D | fs.c | 1043 struct mlx5_flow_act flow_act = {}; in add_op_fc_rules() local 1139 flow_act.action = in add_op_fc_rules() 1144 &flow_act, &dst, 1); in add_op_fc_rules() 1228 struct mlx5_flow_act flow_act = {}; in mlx5_ib_fs_add_op_fc() local 1318 flow_act.action = in mlx5_ib_fs_add_op_fc() 1323 &flow_act, &dst, 1); in mlx5_ib_fs_add_op_fc() 1516 struct mlx5_flow_act flow_act = {}; in _create_flow_rule() local 1544 ib_flow, flow_attr, &flow_act, in _create_flow_rule() 1553 if (dst && !(flow_act.action & MLX5_FLOW_CONTEXT_ACTION_DROP)) { in _create_flow_rule() 1575 if (flow_act in _create_flow_rule() 2039 _create_raw_flow_rule(struct mlx5_ib_dev * dev,struct mlx5_ib_flow_prio * ft_prio,struct mlx5_flow_destination * dst,struct mlx5_ib_flow_matcher * fs_matcher,struct mlx5_flow_context * flow_context,struct mlx5_flow_act * flow_act,void * cmd_in,int inlen,int dst_num) _create_raw_flow_rule() argument 2125 raw_fs_rule_add(struct mlx5_ib_dev * dev,struct mlx5_ib_flow_matcher * fs_matcher,struct mlx5_flow_context * flow_context,struct mlx5_flow_act * flow_act,struct mlx5_fc * counter,void * cmd_in,int inlen,int dest_id,int dest_type) raw_fs_rule_add() argument 2449 struct mlx5_flow_act flow_act = {}; UVERBS_HANDLER() local 2691 struct mlx5_flow_act flow_act = {}; steering_anchor_create_rule_drop() local 2722 struct mlx5_flow_act flow_act = {}; steering_anchor_create_rule_goto_table() local [all...] |
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | fs_tt_redirect.c | 85 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5e_fs_tt_redirect_udp_add_rule() 103 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in mlx5e_fs_tt_redirect_udp_add_rule() 120 MLX5_DECLARE_FLOW_ACT(flow_act); in fs_udp_add_default_rule() 127 rule = mlx5_add_flow_rules(fs_udp_t->t, NULL, &flow_act, &dest, 1); in fs_udp_add_default_rule() 370 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5e_fs_tt_redirect_any_add_rule() 385 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in mlx5e_fs_tt_redirect_any_add_rule() 402 MLX5_DECLARE_FLOW_ACT(flow_act); in fs_any_add_default_rule() 408 rule = mlx5_add_flow_rules(fs_any_t->t, NULL, &flow_act, &dest, 1); in fs_any_add_default_rule()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | int_port.c | 67 struct mlx5_flow_act flow_act = {}; in mlx5e_int_port_create_rx_rule() local 92 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in mlx5e_int_port_create_rx_rule() 94 &flow_act, dest, 1); in mlx5e_int_port_create_rx_rule()
|
/linux/drivers/net/ethernet/netronome/nfp/flower/ |
H A D | action.c | 1236 static bool nfp_fl_check_mangle_start(struct flow_action *flow_act, in nfp_fl_check_mangle_start() argument 1242 current_act = flow_act->entries[current_act_idx]; in nfp_fl_check_mangle_start() 1249 prev_act = flow_act->entries[current_act_idx - 1]; in nfp_fl_check_mangle_start() 1254 static bool nfp_fl_check_mangle_end(struct flow_action *flow_act, in nfp_fl_check_mangle_end() argument 1260 current_act = flow_act->entries[current_act_idx]; in nfp_fl_check_mangle_end() 1264 if (current_act_idx == flow_act->num_entries) in nfp_fl_check_mangle_end() 1267 next_act = flow_act->entries[current_act_idx + 1]; in nfp_fl_check_mangle_end()
|