Home
last modified time | relevance | path

Searched refs:match_criteria (Results 1 – 25 of 42) sorted by relevance

12

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/
Dingress_lgcy.c24 void *match_criteria; in esw_acl_ingress_lgcy_groups_create() local
32 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, match_criteria); in esw_acl_ingress_lgcy_groups_create()
36 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.cvlan_tag); in esw_acl_ingress_lgcy_groups_create()
37 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.smac_47_16); in esw_acl_ingress_lgcy_groups_create()
38 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.smac_15_0); in esw_acl_ingress_lgcy_groups_create()
54 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.cvlan_tag); in esw_acl_ingress_lgcy_groups_create()
70 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.smac_47_16); in esw_acl_ingress_lgcy_groups_create()
71 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.smac_15_0); in esw_acl_ingress_lgcy_groups_create()
229 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in esw_acl_ingress_lgcy_setup()
233 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in esw_acl_ingress_lgcy_setup()
[all …]
Dhelper.c64 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.cvlan_tag); in esw_egress_acl_vlan_create()
66 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.first_vid); in esw_egress_acl_vlan_create()
98 void *match_criteria; in esw_acl_egress_vlan_grp_create() local
108 match_criteria = MLX5_ADDR_OF(create_flow_group_in, in esw_acl_egress_vlan_grp_create()
109 flow_group_in, match_criteria); in esw_acl_egress_vlan_grp_create()
110 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.cvlan_tag); in esw_acl_egress_vlan_grp_create()
111 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.first_vid); in esw_acl_egress_vlan_grp_create()
Dingress_ofld.c34 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.cvlan_tag); in esw_acl_ingress_prio_tag_create()
196 void *match_criteria; in esw_acl_ingress_ofld_groups_create() local
228 match_criteria = MLX5_ADDR_OF(create_flow_group_in, in esw_acl_ingress_ofld_groups_create()
229 flow_group_in, match_criteria); in esw_acl_ingress_ofld_groups_create()
232 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.cvlan_tag); in esw_acl_ingress_ofld_groups_create()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dfs_tcp.c31 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in accel_fs_tcp_set_ipv4_flow()
33 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in accel_fs_tcp_set_ipv4_flow()
41 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in accel_fs_tcp_set_ipv4_flow()
43 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in accel_fs_tcp_set_ipv4_flow()
50 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in accel_fs_tcp_set_ipv6_flow()
52 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in accel_fs_tcp_set_ipv6_flow()
60 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in accel_fs_tcp_set_ipv6_flow()
63 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in accel_fs_tcp_set_ipv6_flow()
122 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in mlx5e_accel_fs_add_sk()
124 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in mlx5e_accel_fs_add_sk()
[all …]
Dipsec_fs.c349 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in setup_fte_common()
353 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.frag); in setup_fte_common()
357 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in setup_fte_common()
361 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, misc_parameters.outer_esp_spi); in setup_fte_common()
372 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in setup_fte_common()
374 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in setup_fte_common()
383 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in setup_fte_common()
386 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in setup_fte_common()
498 MLX5_SET(fte_match_param, spec->match_criteria, misc_parameters_2.metadata_reg_a, in tx_add_rule()
Dmacsec_fs.c166 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in macsec_fs_tx_create_crypto_table_groups()
299 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in macsec_fs_tx_create()
365 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, misc_parameters_2.metadata_reg_c_4); in macsec_fs_tx_create()
441 MLX5_SET(fte_match_param, spec->match_criteria, misc_parameters_2.metadata_reg_a, in macsec_fs_tx_setup_fte()
753 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in macsec_fs_rx_create_crypto_table_groups()
853 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, misc_parameters_2.macsec_syndrome); in macsec_fs_rx_create_check_decap_rule()
856 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, misc_parameters_2.metadata_reg_c_4); in macsec_fs_rx_create_check_decap_rule()
861 MLX5_SET(fte_match_param, spec->match_criteria, misc_parameters_5.macsec_tag_0, in macsec_fs_rx_create_check_decap_rule()
1076 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in macsec_fs_rx_setup_fte()
1082 MLX5_SET(fte_match_param, spec->match_criteria, misc_parameters_5.macsec_tag_0, in macsec_fs_rx_setup_fte()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Drdma.c33 void *match_criteria; in mlx5_rdma_enable_roce_steering() local
68 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, in mlx5_rdma_enable_roce_steering()
69 match_criteria); in mlx5_rdma_enable_roce_steering()
70 MLX5_SET_TO_ONES(fte_match_param, match_criteria, in mlx5_rdma_enable_roce_steering()
85 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5_rdma_enable_roce_steering()
Deswitch_offloads.c118 misc2 = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters_2); in mlx5_eswitch_clear_rule_source_port()
155 misc2 = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters_2); in mlx5_eswitch_set_rule_source_port()
169 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5_eswitch_set_rule_source_port()
1032 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5_eswitch_add_send_to_vport_rule()
1083 MLX5_SET(fte_match_param, spec->match_criteria, in mlx5_eswitch_add_send_to_vport_meta_rule()
1085 MLX5_SET(fte_match_param, spec->match_criteria, in mlx5_eswitch_add_send_to_vport_meta_rule()
1167 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in peer_miss_rules_setup()
1182 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in peer_miss_rules_setup()
1356 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in esw_add_fdb_miss_rule()
1415 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in esw_add_restore_rule()
[all …]
Den_arfs.c255 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in arfs_create_groups()
508 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule()
520 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule()
522 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule()
529 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule()
531 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule()
547 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule()
549 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule()
560 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in arfs_add_rule()
564 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in arfs_add_rule()
Den_fs.c234 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule()
239 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule()
245 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule()
251 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule()
254 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule()
261 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule()
264 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule()
966 mc_dmac = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5e_add_l2_flow_rule()
1026 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5e_create_l2_table_groups()
1129 u8 *mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in __mlx5e_create_vlan_table_groups()
Dfs_core.c459 if (spec->match_value[i] & ~spec->match_criteria[i]) { in check_valid_spec()
752 const void *match_criteria, in alloc_flow_group() argument
771 memcpy(&fg->mask.match_criteria, match_criteria, in alloc_flow_group()
772 sizeof(fg->mask.match_criteria)); in alloc_flow_group()
782 const void *match_criteria, in alloc_insert_flow_group() argument
791 fg = alloc_flow_group(steering, match_criteria_enable, match_criteria, in alloc_insert_flow_group()
1284 void *match_criteria = MLX5_ADDR_OF(create_flow_group_in, in mlx5_create_flow_group() local
1285 fg_in, match_criteria); in mlx5_create_flow_group()
1300 fg = alloc_insert_flow_group(ft, match_criteria_enable, match_criteria, in mlx5_create_flow_group()
1504 spec->match_criteria, in alloc_auto_flow_group()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dpost_meter.c57 void *misc2, *match_criteria; in mlx5e_post_meter_fg_create() local
67 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, in mlx5e_post_meter_fg_create()
68 match_criteria); in mlx5e_post_meter_fg_create()
69 misc2 = MLX5_ADDR_OF(fte_match_param, match_criteria, misc_parameters_2); in mlx5e_post_meter_fg_create()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dfs_tracepoint.h122 &fg->mask.match_criteria,
127 &fg->mask.match_criteria,
132 &fg->mask.match_criteria,
212 &__entry->fg->mask.match_criteria,
217 &__entry->fg->mask.match_criteria,
222 &__entry->fg->mask.match_criteria,
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_matcher.c421 if (matcher->match_criteria & DR_MATCHER_CRITERIA_OUTER) in dr_matcher_set_ste_builders()
424 if (matcher->match_criteria & DR_MATCHER_CRITERIA_MISC) in dr_matcher_set_ste_builders()
427 if (matcher->match_criteria & DR_MATCHER_CRITERIA_INNER) in dr_matcher_set_ste_builders()
430 if (matcher->match_criteria & DR_MATCHER_CRITERIA_MISC2) in dr_matcher_set_ste_builders()
433 if (matcher->match_criteria & DR_MATCHER_CRITERIA_MISC3) in dr_matcher_set_ste_builders()
436 if (matcher->match_criteria & DR_MATCHER_CRITERIA_MISC4) in dr_matcher_set_ste_builders()
439 if (matcher->match_criteria & DR_MATCHER_CRITERIA_MISC5) in dr_matcher_set_ste_builders()
442 ret = mlx5dr_ste_build_pre_check(dmn, matcher->match_criteria, in dr_matcher_set_ste_builders()
458 if (matcher->match_criteria & (DR_MATCHER_CRITERIA_OUTER | in dr_matcher_set_ste_builders()
582 if (matcher->match_criteria & (DR_MATCHER_CRITERIA_INNER | in dr_matcher_set_ste_builders()
[all …]
Ddr_rule.c908 u8 match_criteria = matcher->match_criteria; in dr_rule_verify() local
920 mlx5dr_ste_copy_param(matcher->match_criteria, param, value, false); in dr_rule_verify()
922 if (match_criteria & DR_MATCHER_CRITERIA_OUTER) { in dr_rule_verify()
932 if (match_criteria & DR_MATCHER_CRITERIA_MISC) { in dr_rule_verify()
942 if (match_criteria & DR_MATCHER_CRITERIA_INNER) { in dr_rule_verify()
952 if (match_criteria & DR_MATCHER_CRITERIA_MISC2) { in dr_rule_verify()
962 if (match_criteria & DR_MATCHER_CRITERIA_MISC3) { in dr_rule_verify()
972 if (match_criteria & DR_MATCHER_CRITERIA_MISC4) { in dr_rule_verify()
983 if (match_criteria & DR_MATCHER_CRITERIA_MISC5) { in dr_rule_verify()
Ddr_ste.c640 u8 match_criteria, in mlx5dr_ste_build_pre_check() argument
647 if (match_criteria & DR_MATCHER_CRITERIA_MISC) { in mlx5dr_ste_build_pre_check()
661 if ((match_criteria & DR_MATCHER_CRITERIA_OUTER) && in mlx5dr_ste_build_pre_check()
665 if ((match_criteria & DR_MATCHER_CRITERIA_INNER) && in mlx5dr_ste_build_pre_check()
684 ret = mlx5dr_ste_build_pre_check(dmn, matcher->match_criteria, in mlx5dr_ste_build_ste_arr()
951 void mlx5dr_ste_copy_param(u8 match_criteria, in mlx5dr_ste_copy_param() argument
961 if (match_criteria & DR_MATCHER_CRITERIA_OUTER) { in mlx5dr_ste_copy_param()
972 if (match_criteria & DR_MATCHER_CRITERIA_MISC) { in mlx5dr_ste_copy_param()
985 if (match_criteria & DR_MATCHER_CRITERIA_INNER) { in mlx5dr_ste_copy_param()
998 if (match_criteria & DR_MATCHER_CRITERIA_MISC2) { in mlx5dr_ste_copy_param()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dindir_table.c159 MLX5_SET(fte_match_param, rule_spec->match_criteria, in mlx5_esw_indir_table_rule_get()
164 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_indir_table_rule_get()
174 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_indir_table_rule_get()
182 memset(MLX5_ADDR_OF(fte_match_param, rule_spec->match_criteria, in mlx5_esw_indir_table_rule_get()
190 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_indir_table_rule_get()
195 MLX5_SET(fte_match_param, rule_spec->match_criteria, in mlx5_esw_indir_table_rule_get()
302 match = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5_create_indir_recirc_group()
Dbridge.c189 match = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5_esw_bridge_ingress_vlan_proto_fg_create()
251 match = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5_esw_bridge_ingress_vlan_proto_filter_fg_create()
309 match = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5_esw_bridge_ingress_mac_fg_create()
346 match = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5_esw_bridge_egress_vlan_proto_fg_create()
399 match = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5_esw_bridge_egress_mac_fg_create()
430 match = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5_esw_bridge_egress_miss_fg_create()
681 smac_c = MLX5_ADDR_OF(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_flow_with_esw_create()
685 MLX5_SET(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_flow_with_esw_create()
697 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_flow_with_esw_create()
702 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_flow_with_esw_create()
[all …]
Dlegacy.c80 void *match_criteria; in esw_create_legacy_fdb_table() local
113 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, match_criteria); in esw_create_legacy_fdb_table()
114 dmac = MLX5_ADDR_OF(fte_match_param, match_criteria, outer_headers.dmac_47_16); in esw_create_legacy_fdb_table()
148 MLX5_SET_TO_ONES(fte_match_param, match_criteria, misc_parameters.source_port); in esw_create_legacy_fdb_table()
276 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in _mlx5_eswitch_set_vepa_locked()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dfs_ttc.c210 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in mlx5_generate_ttc_rule()
217 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in mlx5_generate_ttc_rule()
221 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in mlx5_generate_ttc_rule()
311 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5_create_ttc_table_groups()
376 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, inner_headers.ip_version); in mlx5_generate_inner_ttc_rule()
382 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, inner_headers.ip_protocol); in mlx5_generate_inner_ttc_rule()
453 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5_create_inner_ttc_table_groups()
Dsmfs.c14 matcher_mask.match_buf = (u64 *)&spec->match_criteria; in mlx5_smfs_matcher_create()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dfs_tt_redirect.c67 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in fs_udp_set_dport_flow()
69 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in fs_udp_set_dport_flow()
72 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.udp_dport); in fs_udp_set_dport_flow()
161 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in fs_udp_create_groups()
358 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in fs_any_set_ethertype_flow()
443 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in fs_any_create_groups()
Dtc_tun_geneve.c132 misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5e_tc_tun_parse_geneve_vni()
169 misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5e_tc_tun_parse_geneve_options()
171 misc_3_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters_3); in mlx5e_tc_tun_parse_geneve_options()
291 void *misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5e_tc_tun_parse_geneve_params()
Dtc_tun_gre.c61 void *misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5e_tc_tun_parse_gretap()
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dfs.c35 #define HEADER_IS_ZERO(match_criteria, headers) \ argument
36 !(memchr_inv(MLX5_ADDR_OF(fte_match_param, match_criteria, headers), \
39 static u8 get_match_criteria_enable(u32 *match_criteria) in get_match_criteria_enable() argument
44 (!HEADER_IS_ZERO(match_criteria, outer_headers)) << in get_match_criteria_enable()
47 (!HEADER_IS_ZERO(match_criteria, misc_parameters)) << in get_match_criteria_enable()
50 (!HEADER_IS_ZERO(match_criteria, inner_headers)) << in get_match_criteria_enable()
53 (!HEADER_IS_ZERO(match_criteria, misc_parameters_2)) << in get_match_criteria_enable()
191 u32 *match_c = spec->match_criteria; in parse_flow_attr()
821 MLX5_SET_TO_ONES(fte_match_param, &spec->match_criteria, in set_vhca_port_spec()
840 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in set_ecn_ce_spec()
[all …]

12