/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
A 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 …]
|
A D | helper.c | 64 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()
|
A 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()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
A 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 …]
|
A D | ipsec_fs.c | 414 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in setup_fte_common() 418 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.frag); in setup_fte_common() 422 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in setup_fte_common() 426 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, misc_parameters.outer_esp_spi); in setup_fte_common() 437 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in setup_fte_common() 439 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in setup_fte_common() 448 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in setup_fte_common() 451 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in setup_fte_common() 562 MLX5_SET(fte_match_param, spec->match_criteria, misc_parameters_2.metadata_reg_a, in tx_add_rule()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A 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()
|
A D | eswitch_offloads.c | 1448 match_criteria); in esw_set_flow_group_source_port() 1455 MLX5_SET(fte_match_param, match_criteria, in esw_set_flow_group_source_port() 1636 void *match_criteria; in esw_create_offloads_fdb_tables() local 1716 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, match_criteria); in esw_create_offloads_fdb_tables() 1746 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, match_criteria); in esw_create_offloads_fdb_tables() 1785 match_criteria); in esw_create_offloads_fdb_tables() 1813 match_criteria); in esw_create_offloads_fdb_tables() 2079 void *match_criteria, *misc; in esw_create_restore_table() local 2110 match_criteria); in esw_create_restore_table() 2532 void *match_criteria; in esw_set_master_egress_rule() local [all …]
|
A D | en_arfs.c | 249 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in arfs_create_groups() 493 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 505 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 507 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 514 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 516 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 532 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 534 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 545 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in arfs_add_rule() 549 memset(MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in arfs_add_rule()
|
A D | en_fs.c | 208 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 213 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 219 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 225 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 228 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 235 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 238 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 936 mc_dmac = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in mlx5e_add_l2_flow_rule() 997 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5e_create_l2_table_groups() 1100 u8 *mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in __mlx5e_create_vlan_table_groups()
|
A D | fs_core.c | 440 if (spec->match_value[i] & ~spec->match_criteria[i]) { in check_valid_spec() 726 const void *match_criteria, in alloc_flow_group() argument 745 memcpy(&fg->mask.match_criteria, match_criteria, in alloc_flow_group() 746 sizeof(fg->mask.match_criteria)); in alloc_flow_group() 756 const void *match_criteria, in alloc_insert_flow_group() argument 1252 void *match_criteria = MLX5_ADDR_OF(create_flow_group_in, in mlx5_create_flow_group() local 1253 fg_in, match_criteria); in mlx5_create_flow_group() 1467 spec->match_criteria, in alloc_auto_flow_group() 1510 in, match_criteria); in create_auto_flow_group() 1511 memcpy(match_criteria_addr, fg->mask.match_criteria, in create_auto_flow_group() [all …]
|
A D | en_fs_ethtool.c | 397 static bool outer_header_zero(u32 *match_criteria) in outer_header_zero() argument 400 char *outer_headers_c = MLX5_ADDR_OF(fte_match_param, match_criteria, in outer_header_zero() 465 err = set_flow_attrs(spec->match_criteria, spec->match_value, in add_ethtool_flow_rule() 487 spec->match_criteria_enable = (!outer_header_zero(spec->match_criteria)); in add_ethtool_flow_rule()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/ |
A 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,
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
A D | dr_matcher.c | 409 if (matcher->match_criteria & DR_MATCHER_CRITERIA_OUTER) in dr_matcher_set_ste_builders() 412 if (matcher->match_criteria & DR_MATCHER_CRITERIA_MISC) in dr_matcher_set_ste_builders() 415 if (matcher->match_criteria & DR_MATCHER_CRITERIA_INNER) in dr_matcher_set_ste_builders() 418 if (matcher->match_criteria & DR_MATCHER_CRITERIA_MISC2) in dr_matcher_set_ste_builders() 421 if (matcher->match_criteria & DR_MATCHER_CRITERIA_MISC3) in dr_matcher_set_ste_builders() 424 if (matcher->match_criteria & DR_MATCHER_CRITERIA_MISC4) in dr_matcher_set_ste_builders() 443 if (matcher->match_criteria & (DR_MATCHER_CRITERIA_OUTER | in dr_matcher_set_ste_builders() 634 matcher->match_criteria == DR_MATCHER_CRITERIA_EMPTY) in dr_matcher_set_ste_builders() 883 if (matcher->match_criteria >= DR_MATCHER_CRITERIA_MAX) { in dr_matcher_init() 900 mlx5dr_ste_copy_param(matcher->match_criteria, in dr_matcher_init() [all …]
|
A D | dr_rule.c | 908 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()
|
A D | dr_ste.c | 606 u8 match_criteria, in mlx5dr_ste_build_pre_check() argument 610 if (!value && (match_criteria & DR_MATCHER_CRITERIA_MISC)) { in mlx5dr_ste_build_pre_check() 639 ret = mlx5dr_ste_build_pre_check(dmn, matcher->match_criteria, in mlx5dr_ste_build_ste_arr() 883 void mlx5dr_ste_copy_param(u8 match_criteria, in mlx5dr_ste_copy_param() argument 893 if (match_criteria & DR_MATCHER_CRITERIA_OUTER) { in mlx5dr_ste_copy_param() 904 if (match_criteria & DR_MATCHER_CRITERIA_MISC) { in mlx5dr_ste_copy_param() 917 if (match_criteria & DR_MATCHER_CRITERIA_INNER) { in mlx5dr_ste_copy_param() 930 if (match_criteria & DR_MATCHER_CRITERIA_MISC2) { in mlx5dr_ste_copy_param() 944 if (match_criteria & DR_MATCHER_CRITERIA_MISC3) { in mlx5dr_ste_copy_param() 958 if (match_criteria & DR_MATCHER_CRITERIA_MISC4) { in mlx5dr_ste_copy_param()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
A D | indir_table.c | 154 MLX5_SET(fte_match_param, rule_spec->match_criteria, in mlx5_esw_indir_table_rule_get() 159 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_indir_table_rule_get() 169 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_indir_table_rule_get() 177 memset(MLX5_ADDR_OF(fte_match_param, rule_spec->match_criteria, in mlx5_esw_indir_table_rule_get() 185 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_indir_table_rule_get() 190 MLX5_SET(fte_match_param, rule_spec->match_criteria, in mlx5_esw_indir_table_rule_get() 297 match = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5_create_indir_recirc_group()
|
A D | bridge.c | 153 match = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5_esw_bridge_ingress_vlan_fg_create() 192 match = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5_esw_bridge_ingress_filter_fg_create() 229 match = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5_esw_bridge_ingress_mac_fg_create() 551 MLX5_SET(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_flow_with_esw_create() 562 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_flow_with_esw_create() 566 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_flow_with_esw_create() 643 MLX5_SET(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_filter_flow_create() 648 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_filter_flow_create() 699 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_egress_flow_create() 703 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_egress_flow_create() [all …]
|
A D | legacy.c | 79 void *match_criteria; in esw_create_legacy_fdb_table() local 112 match_criteria = MLX5_ADDR_OF(create_flow_group_in, flow_group_in, match_criteria); in esw_create_legacy_fdb_table() 113 dmac = MLX5_ADDR_OF(fte_match_param, match_criteria, outer_headers.dmac_47_16); in esw_create_legacy_fdb_table() 147 MLX5_SET_TO_ONES(fte_match_param, match_criteria, misc_parameters.source_port); in esw_create_legacy_fdb_table() 275 misc = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, misc_parameters); in _mlx5_eswitch_set_vepa_locked()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
A D | fs_ttc.c | 210 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() 451 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in mlx5_create_inner_ttc_table_groups()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
A 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()
|
A D | fs_tt_redirect.c | 67 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() 163 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in fs_udp_create_groups() 354 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in fs_any_set_ethertype_flow() 442 mc = MLX5_ADDR_OF(create_flow_group_in, in, match_criteria); in fs_any_create_groups()
|
A 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()
|
A D | tc_tun_mplsoudp.c | 68 misc2_c = MLX5_ADDR_OF(fte_match_param, spec->match_criteria, in parse_tunnel()
|
A 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()
|
/linux/drivers/infiniband/hw/mlx5/ |
A D | fs.c | 36 #define HEADER_IS_ZERO(match_criteria, headers) \ argument 40 static u8 get_match_criteria_enable(u32 *match_criteria) in get_match_criteria_enable() argument 45 (!HEADER_IS_ZERO(match_criteria, outer_headers)) << in get_match_criteria_enable() 48 (!HEADER_IS_ZERO(match_criteria, misc_parameters)) << in get_match_criteria_enable() 51 (!HEADER_IS_ZERO(match_criteria, inner_headers)) << in get_match_criteria_enable() 54 (!HEADER_IS_ZERO(match_criteria, misc_parameters_2)) << in get_match_criteria_enable() 202 u32 *match_c = spec->match_criteria; in parse_flow_attr() 602 const u32 *match_c = spec->match_criteria; in is_valid_esp_aes_gcm() 899 get_match_criteria_enable(spec->match_criteria); in set_ecn_ce_spec() 917 get_match_criteria_enable(spec->match_criteria); in set_cnp_spec() [all …]
|