Home
last modified time | relevance | path

Searched refs:headers_v (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c158 set_ip4(void *headers_c, void *headers_v, __be32 ip4src_m, in set_ip4() argument
162 memcpy(MLX5E_FTE_ADDR_OF(headers_v, src_ipv4_src_ipv6.ipv4_layout.ipv4), in set_ip4()
168 memcpy(MLX5E_FTE_ADDR_OF(headers_v, dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in set_ip4()
175 MLX5E_FTE_SET(headers_v, ethertype, ETH_P_IP); in set_ip4()
179 set_ip6(void *headers_c, void *headers_v, __be32 ip6src_m[4], in set_ip6() argument
185 memcpy(MLX5E_FTE_ADDR_OF(headers_v, src_ipv4_src_ipv6.ipv6_layout.ipv6), in set_ip6()
191 memcpy(MLX5E_FTE_ADDR_OF(headers_v, dst_ipv4_dst_ipv6.ipv6_layout.ipv6), in set_ip6()
198 MLX5E_FTE_SET(headers_v, ethertype, ETH_P_IPV6); in set_ip6()
202 set_tcp(void *headers_c, void *headers_v, __be16 psrc_m, __be16 psrc_v, in set_tcp() argument
207 MLX5E_FTE_SET(headers_v, tcp_sport, ntohs(psrc_v)); in set_tcp()
[all …]
Den_tc.c171 void *headers_c = spec->match_criteria, *headers_v = spec->match_value, *fmask, *fval; in mlx5e_tc_match_to_reg_match() local
180 fval = headers_v + soffset; in mlx5e_tc_match_to_reg_match()
218 void *headers_c = spec->match_criteria, *headers_v = spec->match_value, *fmask, *fval; in mlx5e_tc_match_to_reg_get_match() local
227 fval = headers_v + soffset; in mlx5e_tc_match_to_reg_get_match()
967 void *headers_c, *headers_v; in mlx5e_hairpin_get_prio() local
979 headers_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, outer_headers); in mlx5e_hairpin_get_prio()
981 vlan_present = MLX5_GET(fte_match_set_lyr_2_4, headers_v, cvlan_tag); in mlx5e_hairpin_get_prio()
984 prio_val = MLX5_GET(fte_match_set_lyr_2_4, headers_v, first_prio); in mlx5e_hairpin_get_prio()
1877 void *headers_v = MLX5_ADDR_OF(fte_match_param, in mlx5_flow_has_geneve_opt() local
1881 headers_v, in mlx5_flow_has_geneve_opt()
[all …]
Den_tc.h289 void *headers_c, void *headers_v);
Deswitch_offloads.c1344 void *headers_v; in esw_add_fdb_miss_rule() local
1376 headers_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, in esw_add_fdb_miss_rule()
1378 dmac_v = MLX5_ADDR_OF(fte_match_param, headers_v, in esw_add_fdb_miss_rule()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
Dvlan_mangle.c27 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-6.1.9/include/linux/mlx5/
Dfs_helpers.h49 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-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c808 void *headers_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, in mlx5e_tc_tun_parse() local
825 headers_c, headers_v); in mlx5e_tc_tun_parse()
832 headers_c, headers_v); in mlx5e_tc_tun_parse()
859 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in mlx5e_tc_tun_parse()
866 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in mlx5e_tc_tun_parse()
872 headers_c, headers_v); in mlx5e_tc_tun_parse()
881 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in mlx5e_tc_tun_parse()
890 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in mlx5e_tc_tun_parse()
897 headers_c, headers_v); in mlx5e_tc_tun_parse()
907 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_ecn, in mlx5e_tc_tun_parse()
[all …]
Dtc_tun.h46 void *headers_v);
51 void *headers_v);
113 void *headers_v);
Dtc_tun_mplsoudp.c50 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
Dtc_tun_vxlan.c49 void *headers_v) in mlx5e_tc_tun_parse_udp_ports_vxlan() argument
53 err = mlx5e_tc_tun_parse_udp_ports(priv, spec, f, headers_c, headers_v); in mlx5e_tc_tun_parse_udp_ports_vxlan()
107 void *headers_v) in mlx5e_tc_tun_parse_vxlan() argument
Dtc_tun_gre.c59 void *headers_v) in mlx5e_tc_tun_parse_gretap() argument
66 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, IPPROTO_GRE); in mlx5e_tc_tun_parse_gretap()
Dtc_tun_geneve.c53 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()
322 void *headers_v) in mlx5e_tc_tun_parse_geneve() argument
Dtc_ct.c377 void *headers_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, in mlx5_tc_ct_set_tuple_match() local
387 mlx5e_tc_set_ethertype(ct_priv->dev, &match, true, headers_c, headers_v); in mlx5_tc_ct_set_tuple_match()
390 MLX5_SET(fte_match_set_lyr_2_4, headers_v, ip_protocol, in mlx5_tc_ct_set_tuple_match()
410 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in mlx5_tc_ct_set_tuple_match()
416 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in mlx5_tc_ct_set_tuple_match()
428 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in mlx5_tc_ct_set_tuple_match()
435 memcpy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in mlx5_tc_ct_set_tuple_match()
448 MLX5_SET(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()
460 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in mlx5_tc_ct_set_tuple_match()
[all …]
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dfs.c202 void *headers_v; in parse_flow_attr() local
209 headers_v = MLX5_ADDR_OF(fte_match_param, match_v, in parse_flow_attr()
216 headers_v = MLX5_ADDR_OF(fte_match_param, match_v, in parse_flow_attr()
230 ether_addr_copy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in parse_flow_attr()
237 ether_addr_copy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v, in parse_flow_attr()
244 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in parse_flow_attr()
249 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in parse_flow_attr()
255 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in parse_flow_attr()
262 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in parse_flow_attr()
268 MLX5_SET(fte_match_set_lyr_2_4, headers_v, in parse_flow_attr()
[all …]
/linux-6.1.9/drivers/vdpa/mlx5/net/
Dmlx5_vnet.c1455 void *headers_v; in mlx5_vdpa_add_mac_vlan_rules() local
1466 headers_v = MLX5_ADDR_OF(fte_match_param, spec->match_value, outer_headers); in mlx5_vdpa_add_mac_vlan_rules()
1468 dmac_v = MLX5_ADDR_OF(fte_match_param, headers_v, outer_headers.dmac_47_16); in mlx5_vdpa_add_mac_vlan_rules()
1476 MLX5_SET(fte_match_set_lyr_2_4, headers_v, cvlan_tag, 1); in mlx5_vdpa_add_mac_vlan_rules()
1477 MLX5_SET(fte_match_set_lyr_2_4, headers_v, first_vid, vid); in mlx5_vdpa_add_mac_vlan_rules()