/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
H A D | port_sel.c | 122 MLX5_SET_TO_ONES(match_definer_format_23, match_definer_mask, in mlx5_lag_set_definer_inner() 124 MLX5_SET_TO_ONES(match_definer_format_23, match_definer_mask, in mlx5_lag_set_definer_inner() 126 MLX5_SET_TO_ONES(match_definer_format_23, match_definer_mask, in mlx5_lag_set_definer_inner() 128 MLX5_SET_TO_ONES(match_definer_format_23, match_definer_mask, in mlx5_lag_set_definer_inner() 133 MLX5_SET_TO_ONES(match_definer_format_23, match_definer_mask, in mlx5_lag_set_definer_inner() 135 MLX5_SET_TO_ONES(match_definer_format_23, match_definer_mask, in mlx5_lag_set_definer_inner() 137 MLX5_SET_TO_ONES(match_definer_format_23, match_definer_mask, in mlx5_lag_set_definer_inner() 139 MLX5_SET_TO_ONES(match_definer_format_23, match_definer_mask, in mlx5_lag_set_definer_inner() 141 MLX5_SET_TO_ONES(match_definer_format_23, match_definer_mask, in mlx5_lag_set_definer_inner() 143 MLX5_SET_TO_ONES(match_definer_format_23, match_definer_mask, in mlx5_lag_set_definer_inner() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | fs_tcp.c | 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() 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() 200 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_protocol); in accel_fs_tcp_create_groups() 201 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_version); in accel_fs_tcp_create_groups() 206 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, tcp_dport); in accel_fs_tcp_create_groups() 207 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, tcp_sport); in accel_fs_tcp_create_groups() 216 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, in accel_fs_tcp_create_groups() [all …]
|
H A D | ipsec_fs.c | 236 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in ipsec_rx_status_pass_create() 923 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in setup_fte_addr4() 929 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in setup_fte_addr4() 936 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in setup_fte_addr4() 949 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_version); in setup_fte_addr6() 972 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in setup_fte_esp() 982 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in setup_fte_spi() 987 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in setup_fte_spi() 999 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.frag); in setup_fte_no_frags() 1019 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in setup_fte_reg_c4() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/acl/ |
H A D | ingress_lgcy.c | 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() 235 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in esw_acl_ingress_lgcy_setup()
|
H A D | helper.c | 65 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_value, outer_headers.cvlan_tag); in esw_egress_acl_vlan_create() 67 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.first_vid); in esw_egress_acl_vlan_create() 111 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.cvlan_tag); in esw_acl_egress_vlan_grp_create() 112 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.first_vid); in esw_acl_egress_vlan_grp_create()
|
H A D | ingress_ofld.c | 37 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.cvlan_tag); in esw_acl_ingress_prio_tag_create() 248 MLX5_SET_TO_ONES(fte_match_param, match_criteria, outer_headers.cvlan_tag); in esw_acl_ingress_ofld_groups_create()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/ |
H A D | ct_fs_smfs.c | 53 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_version); in mlx5_ct_fs_smfs_fill_mask() 55 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ethertype); in mlx5_ct_fs_smfs_fill_mask() 57 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_protocol); in mlx5_ct_fs_smfs_fill_mask() 59 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, in mlx5_ct_fs_smfs_fill_mask() 61 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, in mlx5_ct_fs_smfs_fill_mask() 77 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, tcp_sport); in mlx5_ct_fs_smfs_fill_mask() 78 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, tcp_dport); in mlx5_ct_fs_smfs_fill_mask() 82 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, udp_sport); in mlx5_ct_fs_smfs_fill_mask() 83 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, udp_dport); in mlx5_ct_fs_smfs_fill_mask()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | bridge_mcast.c | 95 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_mdb_flow_create() 97 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_mdb_flow_create() 100 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_mdb_flow_create() 102 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_mdb_flow_create() 105 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_mdb_flow_create() 383 MLX5_SET_TO_ONES(fte_match_param, match, outer_headers.cvlan_tag); in mlx5_esw_bridge_mcast_vlan_proto_fg_create() 386 MLX5_SET_TO_ONES(fte_match_param, match, outer_headers.first_vid); in mlx5_esw_bridge_mcast_vlan_proto_fg_create() 598 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_mcast_vlan_flow_create() 600 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_mcast_vlan_flow_create() 603 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_mcast_vlan_flow_create() [all …]
|
H A D | bridge.c | 612 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_flow_with_esw_create() 614 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_ingress_flow_with_esw_create() 619 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_ingress_flow_with_esw_create() 622 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_flow_with_esw_create() 718 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_filter_flow_create() 720 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_ingress_filter_flow_create() 723 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_criteria, in mlx5_esw_bridge_ingress_filter_flow_create() 725 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_ingress_filter_flow_create() 778 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_egress_flow_create() 783 MLX5_SET_TO_ONES(fte_match_param, rule_spec->match_value, in mlx5_esw_bridge_egress_flow_create() [all …]
|
H A D | legacy.c | 148 MLX5_SET_TO_ONES(fte_match_param, match_criteria, misc_parameters.source_port); in esw_create_legacy_fdb_table() 277 MLX5_SET_TO_ONES(fte_match_set_misc, misc, source_port); in _mlx5_eswitch_set_vepa_locked()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_arfs.c | 276 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ethertype); in arfs_create_groups() 280 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, tcp_dport); in arfs_create_groups() 296 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, in arfs_create_groups() 298 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, in arfs_create_groups() 532 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 546 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 548 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 555 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 557 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() 573 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in arfs_add_rule() [all …]
|
H A D | en_fs.c | 241 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 246 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 252 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 258 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() 268 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 271 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in __mlx5e_add_vlan_rule() 1139 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.cvlan_tag); in __mlx5e_create_vlan_table_groups() 1140 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.first_vid); in __mlx5e_create_vlan_table_groups() 1151 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.svlan_tag); in __mlx5e_create_vlan_table_groups() [all …]
|
H A D | eswitch_offloads.c | 164 MLX5_SET_TO_ONES(fte_match_set_misc, misc, source_port); in mlx5_eswitch_set_rule_source_port() 166 MLX5_SET_TO_ONES(fte_match_set_misc, misc, in mlx5_eswitch_set_rule_source_port() 950 MLX5_SET_TO_ONES(fte_match_set_misc, misc, source_sqn); in mlx5_eswitch_add_send_to_vport_rule() 979 MLX5_SET_TO_ONES(fte_match_set_misc, misc, in mlx5_eswitch_add_send_to_vport_rule() 1143 MLX5_SET_TO_ONES(fte_match_set_misc, misc, in peer_miss_rules_setup() 1476 MLX5_SET_TO_ONES(fte_match_param, match_criteria, in mlx5_esw_set_flow_group_source_port() 1656 MLX5_SET_TO_ONES(fte_match_param, match_criteria, in esw_create_send_to_vport_group() 1751 MLX5_SET_TO_ONES(fte_match_param, match_criteria, in esw_create_peer_esw_miss_group() 2688 MLX5_SET_TO_ONES(fte_match_set_misc, misc, in __esw_set_master_egress_rule() 2744 MLX5_SET_TO_ONES(fte_match_param, match_criteria, in esw_master_egress_create_resources() [all …]
|
H A D | port.c | 592 MLX5_SET_TO_ONES(pfcc_reg, in, prio_mask_tx); in mlx5_set_port_pfc() 593 MLX5_SET_TO_ONES(pfcc_reg, in, prio_mask_rx); in mlx5_set_port_pfc()
|
H A D | eswitch.c | 244 MLX5_SET_TO_ONES(fte_match_set_misc, mc_misc, source_port); in __esw_fdb_set_vport_rule()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H 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() 312 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ip_protocol); in mlx5_create_ttc_table_groups() 314 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ip_version); in mlx5_create_ttc_table_groups() 316 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); 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() 454 MLX5_SET_TO_ONES(fte_match_param, mc, inner_headers.ip_protocol); in mlx5_create_inner_ttc_table_groups() 455 MLX5_SET_TO_ONES(fte_match_param, mc, inner_headers.ip_version); in mlx5_create_inner_ttc_table_groups()
|
H A D | macsec_fs.c | 289 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in macsec_fs_tx_create_crypto_table_groups() 1077 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in macsec_fs_rx_create_crypto_table_groups() 1098 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.smac_47_16); in macsec_fs_rx_create_crypto_table_groups() 1099 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.smac_15_0); in macsec_fs_rx_create_crypto_table_groups() 1100 MLX5_SET_TO_ONES(fte_match_param, mc, outer_headers.ethertype); in macsec_fs_rx_create_crypto_table_groups() 1284 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, udp_dport); in macsec_fs_rx_roce_jump_to_rdma_groups_create() 1704 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in macsec_fs_rx_setup_fte() 1709 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in macsec_fs_rx_setup_fte() 1933 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in set_ipaddr_spec_v4() 1939 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in set_ipaddr_spec_v4() [all …]
|
H A D | ipsec_fs_roce.c | 40 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ip_protocol); in ipsec_fs_roce_setup_udp_dport() 42 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.udp_dport); in ipsec_fs_roce_setup_udp_dport() 274 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_protocol); in mlx5_ipsec_fs_roce_rx_create() 275 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, udp_dport); in mlx5_ipsec_fs_roce_rx_create()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H 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() 164 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_protocol); in fs_udp_create_groups() 165 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ip_version); in fs_udp_create_groups() 170 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, udp_dport); in fs_udp_create_groups() 359 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, outer_headers.ethertype); in fs_any_set_ethertype_flow() 447 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, outer_headers_c, ethertype); in fs_any_create_groups()
|
H A D | tc_tun_gre.c | 65 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_protocol); in mlx5e_tc_tun_parse_gretap() 69 MLX5_SET_TO_ONES(fte_match_set_misc, misc_c, gre_protocol); in mlx5e_tc_tun_parse_gretap()
|
H A D | tc_tun_geneve.c | 278 MLX5_SET_TO_ONES(fte_match_set_misc, misc_c, geneve_tlv_option_0_exist); in mlx5e_tc_tun_parse_geneve_options() 279 MLX5_SET_TO_ONES(fte_match_set_misc, misc_v, geneve_tlv_option_0_exist); in mlx5e_tc_tun_parse_geneve_options() 302 MLX5_SET_TO_ONES(fte_match_set_misc, misc_c, geneve_oam); in mlx5e_tc_tun_parse_geneve_params() 309 MLX5_SET_TO_ONES(fte_match_set_misc, misc_c, geneve_protocol_type); in mlx5e_tc_tun_parse_geneve_params()
|
H A D | tc_tun.c | 972 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, ip_protocol); in mlx5e_tc_tun_parse_udp_ports()
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | fs.c | 818 MLX5_SET_TO_ONES(fte_match_param, &spec->match_criteria, in set_vhca_port_spec() 837 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in set_ecn_ce_spec() 841 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in set_ecn_ce_spec() 859 MLX5_SET_TO_ONES(fte_match_param, spec->match_criteria, in set_cnp_spec() 1033 MLX5_SET_TO_ONES(fte_match_set_misc, misc, source_port); in mlx5_ib_set_rule_source_port()
|
/openbmc/linux/include/linux/mlx5/ |
H A D | device.h | 88 #define MLX5_SET_TO_ONES(typ, p, fld) do { \ macro
|
/openbmc/linux/drivers/vdpa/mlx5/net/ |
H A D | mlx5_vnet.c | 1607 MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, first_vid); in mlx5_vdpa_add_mac_vlan_rules()
|