Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/
A Deswitch_offloads_termtbl.c13 struct mlx5_flow_act flow_act; member
26 hash = jhash_1word(flow_act->action, 0); 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
113 struct mlx5_flow_act *flow_act, in mlx5_eswitch_termtbl_get_create() argument
127 flow_act, dest)) { in mlx5_eswitch_termtbl_get_create()
145 memcpy(&tt->flow_act, flow_act, sizeof(*flow_act)); in mlx5_eswitch_termtbl_get_create()
[all …]
A Deswitch_offloads.c234 struct mlx5_flow_act *flow_act, in esw_setup_ft_dest() argument
316 struct mlx5_flow_act *flow_act, in esw_setup_chain_src_port_rewrite() argument
481 struct mlx5_flow_act *flow_act, in esw_setup_dests() argument
589 flow_act.action = attr->action; in mlx5_eswitch_add_offloaded_rule()
666 &flow_act, dest, i); in mlx5_eswitch_add_offloaded_rule()
877 spec, &flow_act, &dest, 1); in mlx5_eswitch_add_send_to_vport_rule()
926 spec, &flow_act, &dest, 1); in mlx5_eswitch_add_send_to_vport_meta_rule()
1194 spec, &flow_act, &dest, 1); in esw_add_fdb_miss_rule()
1209 spec, &flow_act, &dest, 1); in esw_add_fdb_miss_rule()
1959 &flow_act, dest, 1); in mlx5_eswitch_create_vport_rx_rule()
[all …]
A Drdma.c29 struct mlx5_flow_act flow_act = {}; in mlx5_rdma_enable_roce_steering() local
89 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_ALLOW; in mlx5_rdma_enable_roce_steering()
90 flow_rule = mlx5_add_flow_rules(ft, spec, &flow_act, NULL, 0); in mlx5_rdma_enable_roce_steering()
A Dfs_core.c753 struct mlx5_flow_act *flow_act) in alloc_fte() argument
764 fte->action = *flow_act; in alloc_fte()
941 struct mlx5_flow_act *flow_act) in find_next_fwd_ft() argument
1710 struct mlx5_flow_act *flow_act, in add_rule_fg() argument
1751 struct mlx5_flow_act *flow_act, in dest_is_valid() argument
1755 u32 action = flow_act->action; in dest_is_valid()
1893 fte = alloc_fte(ft, spec, flow_act); in try_add_to_existing_fg()
1978 struct mlx5_flow_act *flow_act, in _mlx5_add_flow_rules() argument
2049 fte = alloc_fte(ft, spec, flow_act); in _mlx5_add_flow_rules()
2093 struct mlx5_flow_act *flow_act, in mlx5_add_flow_rules() argument
[all …]
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()
751 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5e_add_promisc_rule()
762 *rule_p = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in mlx5e_add_promisc_rule()
963 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5e_add_l2_flow_rule()
995 ai->rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in mlx5e_add_l2_flow_rule()
A Den_arfs.c203 MLX5_DECLARE_FLOW_ACT(flow_act); in arfs_add_default_rule()
219 &flow_act, in arfs_add_default_rule()
494 MLX5_DECLARE_FLOW_ACT(flow_act); in arfs_add_rule()
569 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in arfs_add_rule()
A Den_fs_ethtool.c466 struct mlx5_flow_act flow_act = { .flags = FLOW_ACT_NO_APPEND }; in add_ethtool_flow_rule() local
481 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_DROP; in add_ethtool_flow_rule()
494 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in add_ethtool_flow_rule()
499 rule = mlx5_add_flow_rules(ft, spec, &flow_act, dst, dst ? 1 : 0); in add_ethtool_flow_rule()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dmacsec_fs.c245 struct mlx5_flow_act flow_act = {}; in macsec_fs_tx_create() local
295 memset(&flow_act, 0, sizeof(flow_act)); in macsec_fs_tx_create()
312 memset(&flow_act, 0, sizeof(flow_act)); in macsec_fs_tx_create()
348 memset(&flow_act, 0, sizeof(flow_act)); in macsec_fs_tx_create()
363 memset(&flow_act, 0, sizeof(flow_act)); in macsec_fs_tx_create()
527 struct mlx5_flow_act flow_act = {}; in macsec_fs_tx_add_rule() local
835 memset(flow_act, 0, sizeof(*flow_act)); in macsec_fs_rx_create_check_decap_rule()
980 memset(&flow_act, 0, sizeof(flow_act)); in macsec_fs_rx_create()
1169 flow_act.modify_hdr = modify_hdr; in macsec_fs_rx_add_rule()
1190 memset(&flow_act, 0, sizeof(flow_act)); in macsec_fs_rx_add_rule()
[all …]
A Dipsec_fs.c74 struct mlx5_flow_act flow_act = {}; in ipsec_status_rule() local
106 flow_act.modify_hdr = modify_hdr; in ipsec_status_rule()
132 MLX5_DECLARE_FLOW_ACT(flow_act); in ipsec_miss_create()
558 flow_act->modify_hdr = modify_hdr; in setup_modify_header()
611 struct mlx5_flow_act flow_act = {}; in rx_add_rule() local
672 if (flow_act.pkt_reformat) in rx_add_rule()
689 struct mlx5_flow_act flow_act = {}; in tx_add_rule() local
750 if (flow_act.pkt_reformat) in tx_add_rule()
764 struct mlx5_flow_act flow_act = {}; in tx_add_policy() local
789 &flow_act); in tx_add_policy()
[all …]
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()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
A Dingress_ofld.c20 struct mlx5_flow_act flow_act = {}; in esw_acl_ingress_prio_tag_create() local
39 flow_act.vlan[0].ethtype = ETH_P_8021Q; in esw_acl_ingress_prio_tag_create()
40 flow_act.vlan[0].vid = 0; in esw_acl_ingress_prio_tag_create()
41 flow_act.vlan[0].prio = 0; in esw_acl_ingress_prio_tag_create()
44 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_MOD_HDR; in esw_acl_ingress_prio_tag_create()
49 &flow_act, NULL, 0); in esw_acl_ingress_prio_tag_create()
66 struct mlx5_flow_act flow_act = {}; in esw_acl_ingress_mod_metadata_create() local
98 NULL, &flow_act, NULL, 0); in esw_acl_ingress_mod_metadata_create()
124 struct mlx5_flow_act flow_act = {}; in esw_acl_ingress_src_port_drop_create() local
128 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_DROP; in esw_acl_ingress_src_port_drop_create()
[all …]
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 …]
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()
A Dhelper.c53 struct mlx5_flow_act flow_act = {}; in esw_egress_acl_vlan_create() local
70 flow_act.action = flow_action; in esw_egress_acl_vlan_create()
73 &flow_act, fwd_dest, 0); in esw_egress_acl_vlan_create()
A Degress_ofld.c31 struct mlx5_flow_act flow_act = {}; in esw_acl_egress_ofld_fwd2vport_create() local
40 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in esw_acl_egress_ofld_fwd2vport_create()
44 &flow_act, fwd_dest, 1); in esw_acl_egress_ofld_fwd2vport_create()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/esw/
A Dindir_table.c104 struct mlx5_flow_act flow_act = {}; in mlx5_esw_indir_table_rule_get() local
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()
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()
214 struct mlx5_flow_act flow_act = {}; in mlx5_create_indir_fwd_group() local
230 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in mlx5_create_indir_fwd_group()
[all …]
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()
296 flow_act.action = MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; in _mlx5_eswitch_set_vepa_locked()
298 &flow_act, &dest, 1); in _mlx5_eswitch_set_vepa_locked()
A Dbridge.c663 struct mlx5_flow_act flow_act = { in mlx5_esw_bridge_ingress_flow_with_esw_create() local
691 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_PACKET_REFORMAT | in mlx5_esw_bridge_ingress_flow_with_esw_create()
693 flow_act.pkt_reformat = vlan->pkt_reformat_push; in mlx5_esw_bridge_ingress_flow_with_esw_create()
694 flow_act.modify_hdr = vlan->pkt_mod_hdr_push_mark; in mlx5_esw_bridge_ingress_flow_with_esw_create()
763 struct mlx5_flow_act flow_act = { in mlx5_esw_bridge_ingress_filter_flow_create() local
816 struct mlx5_flow_act flow_act = { in mlx5_esw_bridge_egress_flow_create() local
843 flow_act.action |= MLX5_FLOW_CONTEXT_ACTION_PACKET_REFORMAT; in mlx5_esw_bridge_egress_flow_create()
844 flow_act.pkt_reformat = vlan->pkt_reformat_pop; in mlx5_esw_bridge_egress_flow_create()
868 handle = mlx5_add_flow_rules(bridge->egress_ft, rule_spec, &flow_act, &dest, 1); in mlx5_esw_bridge_egress_flow_create()
883 struct mlx5_flow_act flow_act = { in mlx5_esw_bridge_egress_miss_flow_create() local
[all …]
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/lib/
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()
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()
/linux-6.3-rc2/drivers/infiniband/hw/mlx5/
A Dfs.c878 struct mlx5_flow_act flow_act = {}; in mlx5_ib_fs_add_op_fc() local
950 flow_act.action = in mlx5_ib_fs_add_op_fc()
955 &flow_act, &dst, 1); in mlx5_ib_fs_add_op_fc()
1048 struct mlx5_flow_act flow_act = {}; in _create_flow_rule() local
1076 ib_flow, flow_attr, &flow_act, in _create_flow_rule()
1128 flow_act.action |= in _create_flow_rule()
1145 &flow_act, in _create_flow_rule()
1521 struct mlx5_flow_act *flow_act, in _create_raw_flow_rule() argument
1546 flow_act, dst, dst_num); in _create_raw_flow_rule()
1663 fs_matcher, flow_context, flow_act, in raw_fs_rule_add()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/
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()
369 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5e_fs_tt_redirect_any_add_rule()
384 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in mlx5e_fs_tt_redirect_any_add_rule()
401 MLX5_DECLARE_FLOW_ACT(flow_act); in fs_any_add_default_rule()
407 rule = mlx5_add_flow_rules(fs_any_t->t, NULL, &flow_act, &dest, 1); in fs_any_add_default_rule()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
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()
/linux-6.3-rc2/drivers/net/ethernet/netronome/nfp/flower/
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()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/lag/
A Dport_sel.c45 MLX5_DECLARE_FLOW_ACT(flow_act); in mlx5_lag_create_port_sel_table()
76 flow_act.flags |= FLOW_ACT_NO_APPEND; in mlx5_lag_create_port_sel_table()
87 NULL, &flow_act, in mlx5_lag_create_port_sel_table()

Completed in 62 milliseconds

12