Home
last modified time | relevance | path

Searched refs:flow_act (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch_offloads_termtbl.c13 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()
[all …]
H A Deswitch_offloads.c211 struct mlx5_flow_act *flow_act, in esw_setup_sampler_dest() argument
215 flow_act->flags |= FLOW_ACT_IGNORE_FLOW_LEVEL; in esw_setup_sampler_dest()
224 struct mlx5_flow_act *flow_act, in esw_setup_ft_dest() argument
229 flow_act->flags |= FLOW_ACT_IGNORE_FLOW_LEVEL; in esw_setup_ft_dest()
239 esw_setup_accept_dest(struct mlx5_flow_destination *dest, struct mlx5_flow_act *flow_act, in esw_setup_accept_dest() argument
243 flow_act->flags |= FLOW_ACT_IGNORE_FLOW_LEVEL; in esw_setup_accept_dest()
249 esw_setup_slow_path_dest(struct mlx5_flow_destination *dest, struct mlx5_flow_act *flow_act, in esw_setup_slow_path_dest() argument
253 flow_act->flags |= FLOW_ACT_IGNORE_FLOW_LEVEL; in esw_setup_slow_path_dest()
260 struct mlx5_flow_act *flow_act, in esw_setup_chain_dest() argument
267 flow_act->flags |= FLOW_ACT_IGNORE_FLOW_LEVEL; in esw_setup_chain_dest()
[all …]
H A Drdma.c29 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 Dfs_core.c774 struct mlx5_flow_act *flow_act) in alloc_fte() argument
785 fte->action = *flow_act; in alloc_fte()
984 struct mlx5_flow_act *flow_act) in find_next_fwd_ft() argument
989 next_ns = flow_act->action & MLX5_FLOW_CONTEXT_ACTION_FWD_NEXT_NS; in find_next_fwd_ft()
1775 const struct mlx5_flow_act *flow_act) in check_conflicting_ftes() argument
1777 if (check_conflicting_actions(flow_act, &fte->action)) { in check_conflicting_ftes()
1797 struct mlx5_flow_act *flow_act, in add_rule_fg() argument
1807 ret = check_conflicting_ftes(fte, &spec->flow_context, flow_act); in add_rule_fg()
1812 fte->action.action |= flow_act->action; in add_rule_fg()
1814 old_action != flow_act->action); in add_rule_fg()
[all …]
H A Den_fs.c226 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()
749 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5e_add_promisc_rule()
760 *rule_p = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in mlx5e_add_promisc_rule()
962 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5e_add_l2_flow_rule()
994 ai->rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in mlx5e_add_l2_flow_rule()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dmacsec_fs.c397 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.action = MLX5_FLOW_CONTEXT_ACTION_DROP | MLX5_FLOW_CONTEXT_ACTION_COUNT; in macsec_fs_tx_create()
502 rule = mlx5_add_flow_rules(tx_tables->ft_check, NULL, &flow_act, &dest, 1); in macsec_fs_tx_create()
513 memset(&flow_act, 0, sizeof(flow_act)); in macsec_fs_tx_create()
[all …]
H A Dipsec_fs_roce.c52 MLX5_DECLARE_FLOW_ACT(flow_act); in ipsec_fs_roce_rx_rule_setup()
63 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in ipsec_fs_roce_rx_rule_setup()
66 rule = mlx5_add_flow_rules(roce->ft, spec, &flow_act, &dst, 1); in ipsec_fs_roce_rx_rule_setup()
77 rule = mlx5_add_flow_rules(roce->ft, spec, &flow_act, default_dst, 1); in ipsec_fs_roce_rx_rule_setup()
102 MLX5_DECLARE_FLOW_ACT(flow_act); in ipsec_fs_roce_tx_rule_setup()
106 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in ipsec_fs_roce_tx_rule_setup()
109 rule = mlx5_add_flow_rules(roce->ft, NULL, &flow_act, &dst, in ipsec_fs_roce_tx_rule_setup()
H A Dfs_ttc.c198 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5_generate_ttc_rule()
225 rule = mlx5_add_flow_rules(ft, spec, &flow_act, dest, 1); in mlx5_generate_ttc_rule()
363 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5_generate_inner_ttc_rule()
386 rule = mlx5_add_flow_rules(ft, spec, &flow_act, dest, 1); in mlx5_generate_inner_ttc_rule()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
H A Dingress_ofld.c23 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.action = MLX5_FLOW_CONTEXT_ACTION_MOD_HDR | MLX5_FLOW_CONTEXT_ACTION_ALLOW; in esw_acl_ingress_mod_metadata_create()
[all …]
H A Dingress_lgcy.c145 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.action = MLX5_FLOW_CONTEXT_ACTION_DROP; in esw_acl_ingress_lgcy_setup()
261 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_COUNT; in esw_acl_ingress_lgcy_setup()
[all …]
H A Degress_lgcy.c74 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 Dhelper.c54 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 Degress_ofld.c45 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dindir_table.c104 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.modify_hdr); in mlx5_esw_indir_table_rule_get()
[all …]
H A Dipsec_fs.h16 struct mlx5_flow_act *flow_act);
34 struct mlx5_flow_act *flow_act) in mlx5_esw_ipsec_rx_setup_modify_header() argument
H A Dbridge_mcast.c56 struct mlx5_flow_act flow_act = { in mlx5_esw_bridge_mdb_flow_create() local
111 handle = mlx5_add_flow_rules(bridge->egress_ft, rule_spec, &flow_act, dests, num_dests); in mlx5_esw_bridge_mdb_flow_create()
512 struct mlx5_flow_act flow_act = { in mlx5_esw_bridge_mcast_flow_with_esw_create() local
530 handle = mlx5_add_flow_rules(port->mcast.ft, rule_spec, &flow_act, NULL, 0); in mlx5_esw_bridge_mcast_flow_with_esw_create()
575 struct mlx5_flow_act flow_act = { in mlx5_esw_bridge_mcast_vlan_flow_create() local
594 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_PACKET_REFORMAT; in mlx5_esw_bridge_mcast_vlan_flow_create()
595 flow_act.pkt_reformat = vlan->pkt_reformat_pop; in mlx5_esw_bridge_mcast_vlan_flow_create()
615 handle = mlx5_add_flow_rules(port->mcast.ft, rule_spec, &flow_act, &dest, 1); in mlx5_esw_bridge_mcast_vlan_flow_create()
647 struct mlx5_flow_act flow_act = { in mlx5_esw_bridge_mcast_fwd_flow_create() local
668 handle = mlx5_add_flow_rules(port->mcast.ft, rule_spec, &flow_act, &dest, 1); in mlx5_esw_bridge_mcast_fwd_flow_create()
[all …]
H A Dipsec_fs.c44 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 Dlegacy.c254 struct mlx5_flow_act flow_act = {}; in _mlx5_eswitch_set_vepa_locked() local
282 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in _mlx5_eswitch_set_vepa_locked()
284 &flow_act, &dest, 1); in _mlx5_eswitch_set_vepa_locked()
295 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in _mlx5_eswitch_set_vepa_locked()
297 &flow_act, &dest, 1); in _mlx5_eswitch_set_vepa_locked()
H A Dbridge.c578 struct mlx5_flow_act flow_act = { in mlx5_esw_bridge_ingress_flow_with_esw_create() local
606 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_PACKET_REFORMAT | in mlx5_esw_bridge_ingress_flow_with_esw_create()
608 flow_act.pkt_reformat = vlan->pkt_reformat_push; in mlx5_esw_bridge_ingress_flow_with_esw_create()
609 flow_act.modify_hdr = vlan->pkt_mod_hdr_push_mark; in mlx5_esw_bridge_ingress_flow_with_esw_create()
633 handle = mlx5_add_flow_rules(br_offloads->ingress_ft, rule_spec, &flow_act, dests, in mlx5_esw_bridge_ingress_flow_with_esw_create()
691 struct mlx5_flow_act flow_act = { in mlx5_esw_bridge_ingress_filter_flow_create() local
729 handle = mlx5_add_flow_rules(br_offloads->ingress_ft, rule_spec, &flow_act, &dest, 1); in mlx5_esw_bridge_ingress_filter_flow_create()
744 struct mlx5_flow_act flow_act = { in mlx5_esw_bridge_egress_flow_create() local
771 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_PACKET_REFORMAT; in mlx5_esw_bridge_egress_flow_create()
772 flow_act.pkt_reformat = vlan->pkt_reformat_pop; in mlx5_esw_bridge_egress_flow_create()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_fs.c159 struct mlx5_flow_act flow_act = {}; in ipsec_rx_status_drop_create() local
192 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_DROP | MLX5_FLOW_CONTEXT_ACTION_COUNT; in ipsec_rx_status_drop_create()
197 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in ipsec_rx_status_drop_create()
227 struct mlx5_flow_act flow_act = {}; in ipsec_rx_status_pass_create() local
243 flow_act.flags = FLOW_ACT_NO_APPEND; in ipsec_rx_status_pass_create()
244 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST | in ipsec_rx_status_pass_create()
246 rule = mlx5_add_flow_rules(rx->ft.status, spec, &flow_act, dest, 2); in ipsec_rx_status_pass_create()
297 MLX5_DECLARE_FLOW_ACT(flow_act); in ipsec_miss_create()
321 miss->rule = mlx5_add_flow_rules(ft, spec, &flow_act, dest, 1); in ipsec_miss_create()
625 struct mlx5_flow_act flow_act = {}; in ipsec_counter_rule_tx() local
[all …]
H A Dfs_tcp.c81 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()
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Dfs.c876 struct mlx5_flow_act flow_act = {}; in mlx5_ib_fs_add_op_fc() local
948 flow_act.action = in mlx5_ib_fs_add_op_fc()
953 &flow_act, &dst, 1); in mlx5_ib_fs_add_op_fc()
1046 struct mlx5_flow_act flow_act = {}; in _create_flow_rule() local
1074 ib_flow, flow_attr, &flow_act, in _create_flow_rule()
1083 if (dst && !(flow_act.action & MLX5_FLOW_CONTEXT_ACTION_DROP)) { in _create_flow_rule()
1105 if (flow_act.action & MLX5_FLOW_CONTEXT_ACTION_COUNT) { in _create_flow_rule()
1108 err = mlx5_ib_flow_counters_set_data(flow_act.counters, ucmd); in _create_flow_rule()
1112 mcounters = to_mcounters(flow_act.counters); in _create_flow_rule()
1113 handler->ibcounters = flow_act.counters; in _create_flow_rule()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dfs_tt_redirect.c85 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
H A Dint_port.c67 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()
/openbmc/linux/drivers/net/ethernet/netronome/nfp/flower/
H A Daction.c1221 static bool nfp_fl_check_mangle_start(struct flow_action *flow_act, in nfp_fl_check_mangle_start() argument
1227 current_act = flow_act->entries[current_act_idx]; in nfp_fl_check_mangle_start()
1234 prev_act = flow_act->entries[current_act_idx - 1]; in nfp_fl_check_mangle_start()
1239 static bool nfp_fl_check_mangle_end(struct flow_action *flow_act, in nfp_fl_check_mangle_end() argument
1245 current_act = flow_act->entries[current_act_idx]; in nfp_fl_check_mangle_end()
1249 if (current_act_idx == flow_act->num_entries) in nfp_fl_check_mangle_end()
1252 next_act = flow_act->entries[current_act_idx + 1]; in nfp_fl_check_mangle_end()

12