/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
D | ingress_lgcy.c | 24 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() 207 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in esw_acl_ingress_lgcy_setup() 211 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in esw_acl_ingress_lgcy_setup() [all …]
|
D | helper.c | 61 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.cvlan_tag); in esw_egress_acl_vlan_create() 63 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.first_vid); in esw_egress_acl_vlan_create() 95 void *match_criteria; in esw_acl_egress_vlan_grp_create() local 105 match_criteria = MLX5_ADDR_OF(create_flow_group_in, in esw_acl_egress_vlan_grp_create() 106 flow_group_in, match_criteria); in esw_acl_egress_vlan_grp_create() 107 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.cvlan_tag); in esw_acl_egress_vlan_grp_create() 108 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.first_vid); in esw_acl_egress_vlan_grp_create()
|
D | ingress_ofld.c | 34 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.cvlan_tag); in esw_acl_ingress_prio_tag_create() 164 void *match_criteria; in esw_acl_ingress_ofld_groups_create() local 177 match_criteria = MLX5_ADDR_OF(create_flow_group_in, in esw_acl_ingress_ofld_groups_create() 178 flow_group_in, match_criteria); in esw_acl_ingress_ofld_groups_create() 181 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.cvlan_tag); in esw_acl_ingress_ofld_groups_create()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | fs_tcp.c | 31 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() 124 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in mlx5e_accel_fs_add_sk() 126 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in mlx5e_accel_fs_add_sk() [all …]
|
D | ipsec_fs.c | 413 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in setup_fte_common() 417 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.frag); in setup_fte_common() 421 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in setup_fte_common() 425 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, misc_parameters.outer_esp_spi); in setup_fte_common() 436 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in setup_fte_common() 438 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in setup_fte_common() 447 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in setup_fte_common() 450 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in setup_fte_common() 561 MLX5_SET(fte_match_param, spec->match_criteria, misc_parameters_2.metadata_reg_a, in tx_add_rule()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | rdma.c | 33 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()
|
D | en_arfs.c | 218 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in arfs_create_groups() 455 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 467 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 469 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 476 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 478 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 494 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 496 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 507 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in arfs_add_rule() 511 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in arfs_add_rule()
|
D | eswitch_offloads.c | 274 misc2 = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters_2); in mlx5_eswitch_set_rule_source_port() 288 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5_eswitch_set_rule_source_port() 789 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5_eswitch_add_send_to_vport_rule() 872 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in peer_miss_rules_setup() 887 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in peer_miss_rules_setup() 1049 headers_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in esw_add_fdb_miss_rule() 1108 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in esw_add_restore_rule() 1149 void *match_criteria = MLX5_ADDR_OF(create_flow_group_in, in esw_set_flow_group_source_port() local 1151 match_criteria); in esw_set_flow_group_source_port() 1158 MLX5_SET(fte_match_param, match_criteria, in esw_set_flow_group_source_port() [all …]
|
D | en_fs.c | 184 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 189 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 195 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 201 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 204 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 211 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 214 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 837 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in mlx5e_generate_ttc_rule() 844 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in mlx5e_generate_ttc_rule() 848 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in mlx5e_generate_ttc_rule() [all …]
|
D | fs_core.c | 407 if (spec->match_value[i] & ~spec->match_criteria[i]) { in check_valid_spec() 693 const void *match_criteria, in alloc_flow_group() argument 712 memcpy(&fg->mask.match_criteria, match_criteria, in alloc_flow_group() 713 sizeof(fg->mask.match_criteria)); in alloc_flow_group() 723 const void *match_criteria, in alloc_insert_flow_group() argument 732 fg = alloc_flow_group(steering, match_criteria_enable, match_criteria, in alloc_insert_flow_group() 1216 void *match_criteria = MLX5_ADDR_OF(create_flow_group_in, in mlx5_create_flow_group() local 1217 fg_in, match_criteria); in mlx5_create_flow_group() 1232 fg = alloc_insert_flow_group(ft, match_criteria_enable, match_criteria, in mlx5_create_flow_group() 1430 spec->match_criteria, in alloc_auto_flow_group() [all …]
|
D | en_fs_ethtool.c | 389 static bool outer_header_zero(u32 *match_criteria) in outer_header_zero() argument 392 char *outer_headers_c = MLX5_ADDR_OF(fte_match_param, match_criteria, in outer_header_zero() 414 err = set_flow_attrs(spec->match_criteria, spec->match_value, in add_ethtool_flow_rule() 441 spec->match_criteria_enable = (!outer_header_zero(spec->match_criteria)); in add_ethtool_flow_rule()
|
D | eswitch.c | 210 dmac_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in __esw_fdb_set_vport_rule() 221 mc_misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in __esw_fdb_set_vport_rule() 324 void *match_criteria; in esw_create_legacy_fdb_table() local 357 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, match_criteria); in esw_create_legacy_fdb_table() 358 dmac = MLX5_ADDR_OF(fte_match_param, match_criteria, outer_headers.dmac_47_16); in esw_create_legacy_fdb_table() 392 MLX5_SET_TO_ONES(fte_match_param, match_criteria, misc_parameters.source_port); in esw_create_legacy_fdb_table() 2128 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in _mlx5_eswitch_set_vepa_locked()
|
D | fs_core.h | 242 u32 match_criteria[MLX5_ST_SZ_DW_MATCH_PARAM]; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
D | fs_tracepoint.h | 122 &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,
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_matcher.c | 215 if (matcher->match_criteria & DR_MATCHER_CRITERIA_OUTER) in dr_matcher_set_ste_builders() 218 if (matcher->match_criteria & DR_MATCHER_CRITERIA_MISC) in dr_matcher_set_ste_builders() 221 if (matcher->match_criteria & DR_MATCHER_CRITERIA_INNER) in dr_matcher_set_ste_builders() 224 if (matcher->match_criteria & DR_MATCHER_CRITERIA_MISC2) in dr_matcher_set_ste_builders() 227 if (matcher->match_criteria & DR_MATCHER_CRITERIA_MISC3) in dr_matcher_set_ste_builders() 230 ret = mlx5dr_ste_build_pre_check(dmn, matcher->match_criteria, in dr_matcher_set_ste_builders() 236 if (matcher->match_criteria & (DR_MATCHER_CRITERIA_OUTER | in dr_matcher_set_ste_builders() 326 if (matcher->match_criteria & (DR_MATCHER_CRITERIA_INNER | in dr_matcher_set_ste_builders() 379 if (matcher->match_criteria == DR_MATCHER_CRITERIA_EMPTY) in dr_matcher_set_ste_builders() 627 if (matcher->match_criteria >= DR_MATCHER_CRITERIA_MAX) { in dr_matcher_init() [all …]
|
D | dr_rule.c | 870 u8 match_criteria = matcher->match_criteria; in dr_rule_verify() local 883 mlx5dr_ste_copy_param(matcher->match_criteria, param, value); in dr_rule_verify() 885 if (match_criteria & DR_MATCHER_CRITERIA_OUTER) { in dr_rule_verify() 895 if (match_criteria & DR_MATCHER_CRITERIA_MISC) { in dr_rule_verify() 905 if (match_criteria & DR_MATCHER_CRITERIA_INNER) { in dr_rule_verify() 915 if (match_criteria & DR_MATCHER_CRITERIA_MISC2) { in dr_rule_verify() 925 if (match_criteria & DR_MATCHER_CRITERIA_MISC3) { in dr_rule_verify()
|
D | dr_ste.c | 713 u8 match_criteria, in mlx5dr_ste_build_pre_check() argument 717 if (!value && (match_criteria & DR_MATCHER_CRITERIA_MISC)) { in mlx5dr_ste_build_pre_check() 744 ret = mlx5dr_ste_build_pre_check(dmn, matcher->match_criteria, in mlx5dr_ste_build_ste_arr() 975 void mlx5dr_ste_copy_param(u8 match_criteria, in mlx5dr_ste_copy_param() argument 984 if (match_criteria & DR_MATCHER_CRITERIA_OUTER) { in mlx5dr_ste_copy_param() 995 if (match_criteria & DR_MATCHER_CRITERIA_MISC) { in mlx5dr_ste_copy_param() 1008 if (match_criteria & DR_MATCHER_CRITERIA_INNER) { in mlx5dr_ste_copy_param() 1021 if (match_criteria & DR_MATCHER_CRITERIA_MISC2) { in mlx5dr_ste_copy_param() 1035 if (match_criteria & DR_MATCHER_CRITERIA_MISC3) { in mlx5dr_ste_copy_param()
|
D | dr_types.h | 284 u8 match_criteria, 718 u8 match_criteria; member 1014 void mlx5dr_ste_copy_param(u8 match_criteria,
|
D | fs_dr.c | 155 in, match_criteria); in mlx5_cmd_dr_create_flow_group() 156 mask.match_sz = sizeof(fg->mask.match_criteria); in mlx5_cmd_dr_create_flow_group()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | tc_tun_geneve.c | 132 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() 286 void *misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5e_tc_tun_parse_geneve_params()
|
D | tc_tun_gre.c | 61 void *misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5e_tc_tun_parse_gretap()
|
D | tc_tun_mplsoudp.c | 68 misc2_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in parse_tunnel()
|
D | tc_tun_vxlan.c | 112 misc_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in mlx5e_tc_tun_parse_vxlan()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | fs.c | 34 #define HEADER_IS_ZERO(match_criteria, headers) \ argument 35 !(memchr_inv(MLX5_ADDR_OF(fte_match_param, match_criteria, headers), \ 38 static u8 get_match_criteria_enable(u32 *match_criteria) in get_match_criteria_enable() argument 43 (!HEADER_IS_ZERO(match_criteria, outer_headers)) << in get_match_criteria_enable() 46 (!HEADER_IS_ZERO(match_criteria, misc_parameters)) << in get_match_criteria_enable() 49 (!HEADER_IS_ZERO(match_criteria, inner_headers)) << in get_match_criteria_enable() 52 (!HEADER_IS_ZERO(match_criteria, misc_parameters_2)) << in get_match_criteria_enable() 200 u32 *match_c = spec->match_criteria; in parse_flow_attr() 600 const u32 *match_c = spec->match_criteria; in is_valid_esp_aes_gcm() 855 spec->match_criteria, in set_underlay_qp() [all …]
|
/kernel/linux/linux-5.10/include/linux/mlx5/ |
D | fs.h | 112 u32 match_criteria[MLX5_ST_SZ_DW(fte_match_param)]; member
|