/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs_ethtool.c | 154 set_ip4(void *headers_c, void *headers_v, __be32 ip4src_m, in set_ip4() argument 158 memcpy(MLX5E_FTE_ADDR_OF(headers_v, src_ipv4_src_ipv6.ipv4_layout.ipv4), in set_ip4() 164 memcpy(MLX5E_FTE_ADDR_OF(headers_v, dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in set_ip4() 171 MLX5E_FTE_SET(headers_v, ethertype, ETH_P_IP); in set_ip4() 175 set_ip6(void *headers_c, void *headers_v, __be32 ip6src_m[4], in set_ip6() argument 181 memcpy(MLX5E_FTE_ADDR_OF(headers_v, src_ipv4_src_ipv6.ipv6_layout.ipv6), in set_ip6() 187 memcpy(MLX5E_FTE_ADDR_OF(headers_v, dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in set_ip6() 194 MLX5E_FTE_SET(headers_v, ethertype, ETH_P_IPV6); in set_ip6() 198 set_tcp(void *headers_c, void *headers_v, __be16 psrc_m, __be16 psrc_v, in set_tcp() argument 203 MLX5E_FTE_SET(headers_v, tcp_sport, ntohs(psrc_v)); in set_tcp() [all …]
|
H A D | en_tc.c | 189 void *headers_c = spec->match_criteria, *headers_v = spec->match_value, *fmask, *fval; in mlx5e_tc_match_to_reg_match() local 198 fval = headers_v + soffset; in mlx5e_tc_match_to_reg_match() 236 void *headers_c = spec->match_criteria, *headers_v = spec->match_value, *fmask, *fval; in mlx5e_tc_match_to_reg_get_match() local 245 fval = headers_v + soffset; in mlx5e_tc_match_to_reg_get_match() 1006 void *headers_c, *headers_v; in mlx5e_hairpin_get_prio() local 1018 headers_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, outer_headers); in mlx5e_hairpin_get_prio() 1020 vlan_present = MLX5_GET(fte_match_set_lyr_2_4, headers_v, cvlan_tag); in mlx5e_hairpin_get_prio() 1023 prio_val = MLX5_GET(fte_match_set_lyr_2_4, headers_v, first_prio); in mlx5e_hairpin_get_prio() 2037 void *headers_v = MLX5_ADDR_OF(fte_match_param, in mlx5_flow_has_geneve_opt() local 2041 headers_v, in mlx5_flow_has_geneve_opt() [all …]
|
H A D | en_tc.h | 298 void *headers_c, void *headers_v);
|
H A D | eswitch_offloads.c | 1362 void *headers_v; in esw_add_fdb_miss_rule() local 1394 headers_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, in esw_add_fdb_miss_rule() 1396 dmac_v = MLX5_ADDR_OF(fte_match_param, headers_v, in esw_add_fdb_miss_rule()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | vlan_mangle.c | 27 void *headers_c, *headers_v; in mlx5e_tc_act_vlan_add_rewrite_action() local 31 headers_v = mlx5e_get_match_headers_value(*action, &parse_attr->spec); in mlx5e_tc_act_vlan_add_rewrite_action() 34 MLX5_GET(fte_match_set_lyr_2_4, headers_v, cvlan_tag))) { in mlx5e_tc_act_vlan_add_rewrite_action() 40 match_prio_val = MLX5_GET(fte_match_set_lyr_2_4, headers_v, first_prio); in mlx5e_tc_act_vlan_add_rewrite_action()
|
/linux/include/linux/mlx5/ |
H A D | fs_helpers.h | 49 const void *headers_v = MLX5_ADDR_OF(fte_match_param, match_v, in _mlx5_fs_is_outer_ipv_flow() local 68 MLX5_GET(fte_match_set_lyr_2_4, headers_v, in _mlx5_fs_is_outer_ipv_flow() 74 MLX5_GET(fte_match_set_lyr_2_4, headers_v, in _mlx5_fs_is_outer_ipv_flow()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_tun.c | 810 void *headers_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, in mlx5e_tc_tun_parse() local 827 headers_c, headers_v); in mlx5e_tc_tun_parse() 834 headers_c, headers_v); in mlx5e_tc_tun_parse() 867 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in mlx5e_tc_tun_parse() 874 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in mlx5e_tc_tun_parse() 880 headers_c, headers_v); in mlx5e_tc_tun_parse() 889 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in mlx5e_tc_tun_parse() 898 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in mlx5e_tc_tun_parse() 905 headers_c, headers_v); in mlx5e_tc_tun_parse() 915 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_ecn, in mlx5e_tc_tun_parse() [all …]
|
H A D | tc_tun.h | 46 void *headers_v); 51 void *headers_v); 113 void *headers_v);
|
H A D | tc_tun_mplsoudp.c | 50 void *headers_v) in parse_udp_ports() argument 52 return mlx5e_tc_tun_parse_udp_ports(priv, spec, f, headers_c, headers_v); in parse_udp_ports() 59 void *headers_v) in parse_tunnel() argument
|
H A D | tc_tun_gre.c | 63 void *headers_v) in mlx5e_tc_tun_parse_gretap() argument 70 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, IPPROTO_GRE); in mlx5e_tc_tun_parse_gretap()
|
H A D | tc_tun_vxlan.c | 50 void *headers_v) in mlx5e_tc_tun_parse_udp_ports_vxlan() argument 54 err = mlx5e_tc_tun_parse_udp_ports(priv, spec, f, headers_c, headers_v); in mlx5e_tc_tun_parse_udp_ports_vxlan() 161 void *headers_v) in mlx5e_tc_tun_parse_vxlan() argument
|
H A D | tc_tun_geneve.c | 53 void *headers_v) in mlx5e_tc_tun_parse_udp_ports_geneve() argument 57 err = mlx5e_tc_tun_parse_udp_ports(priv, spec, f, headers_c, headers_v); in mlx5e_tc_tun_parse_udp_ports_geneve() 323 void *headers_v) in mlx5e_tc_tun_parse_geneve() argument
|
H A D | tc_ct.c | 382 void *headers_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, in mlx5_tc_ct_set_tuple_match() local 392 mlx5e_tc_set_ethertype(ct_priv->dev, &match, true, headers_c, headers_v); in mlx5_tc_ct_set_tuple_match() 395 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, in mlx5_tc_ct_set_tuple_match() 415 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in mlx5_tc_ct_set_tuple_match() 421 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in mlx5_tc_ct_set_tuple_match() 433 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in mlx5_tc_ct_set_tuple_match() 440 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in mlx5_tc_ct_set_tuple_match() 453 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in mlx5_tc_ct_set_tuple_match() 458 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in mlx5_tc_ct_set_tuple_match() 465 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in mlx5_tc_ct_set_tuple_match() [all …]
|
/linux/drivers/infiniband/hw/mlx5/ |
H A D | fs.c | 201 void *headers_v; in parse_flow_attr() local 208 headers_v = MLX5_ADDR_OF(fte_match_param, match_v, in parse_flow_attr() 215 headers_v = MLX5_ADDR_OF(fte_match_param, match_v, in parse_flow_attr() 229 ether_addr_copy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in parse_flow_attr() 236 ether_addr_copy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in parse_flow_attr() 243 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in parse_flow_attr() 248 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in parse_flow_attr() 254 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in parse_flow_attr() 261 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in parse_flow_attr() 267 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in parse_flow_attr() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | fs_ttc.c | 241 static void mlx5_fs_ttc_set_match_proto(void *headers_c, void *headers_v, in mlx5_fs_ttc_set_match_proto() argument 253 MLX5_SET(fte_match_set_lyr_2_4, headers_v, l4_type, l4_type); in mlx5_fs_ttc_set_match_proto() 256 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, proto); in mlx5_fs_ttc_set_match_proto()
|
/linux/drivers/vdpa/mlx5/net/ |
H A D | mlx5_vnet.c | 1921 void *headers_v; in mlx5_vdpa_add_mac_vlan_rules() local 1934 headers_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, outer_headers); in mlx5_vdpa_add_mac_vlan_rules() 1936 dmac_v = MLX5_ADDR_OF(fte_match_param, headers_v, outer_headers.dmac_47_16); in mlx5_vdpa_add_mac_vlan_rules() 1944 MLX5_SET(fte_match_set_lyr_2_4, headers_v, cvlan_tag, 1); in mlx5_vdpa_add_mac_vlan_rules() 1945 MLX5_SET(fte_match_set_lyr_2_4, headers_v, first_vid, vid); in mlx5_vdpa_add_mac_vlan_rules()
|