Home
last modified time | relevance | path

Searched refs:l3_mask (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c261 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in parse_ip4() local
264 set_ip4(headers_c, headers_v, l3_mask->ip4src, l3_val->ip4src, in parse_ip4()
265 l3_mask->ip4dst, l3_val->ip4dst); in parse_ip4()
267 if (l3_mask->proto) { in parse_ip4()
268 MLX5E_FTE_SET(headers_c, ip_protocol, l3_mask->proto); in parse_ip4()
276 struct ethtool_usrip6_spec *l3_mask = &fs->m_u.usr_ip6_spec; in parse_ip6() local
279 set_ip6(headers_c, headers_v, l3_mask->ip6src, in parse_ip6()
280 l3_val->ip6src, l3_mask->ip6dst, l3_val->ip6dst); in parse_ip6()
282 if (l3_mask->l4_proto) { in parse_ip6()
283 MLX5E_FTE_SET(headers_c, ip_protocol, l3_mask->l4_proto); in parse_ip6()
[all …]
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_tc_lib.c246 list[i].m_u.ipv4_hdr.src_addr = hdr->l3_mask.src_ipv4; in ice_tc_fill_tunnel_outer()
250 list[i].m_u.ipv4_hdr.dst_addr = hdr->l3_mask.dst_ipv4; in ice_tc_fill_tunnel_outer()
264 &hdr->l3_mask.src_ipv6_addr, in ice_tc_fill_tunnel_outer()
265 sizeof(hdr->l3_mask.src_ipv6_addr)); in ice_tc_fill_tunnel_outer()
272 &hdr->l3_mask.dst_ipv6_addr, in ice_tc_fill_tunnel_outer()
273 sizeof(hdr->l3_mask.dst_ipv6_addr)); in ice_tc_fill_tunnel_outer()
285 list[i].m_u.ipv4_hdr.tos = hdr->l3_mask.tos; in ice_tc_fill_tunnel_outer()
290 list[i].m_u.ipv4_hdr.time_to_live = hdr->l3_mask.ttl; in ice_tc_fill_tunnel_outer()
310 hdr->l3_mask.tos, in ice_tc_fill_tunnel_outer()
316 hdr_m->hop_limit = hdr->l3_mask.ttl; in ice_tc_fill_tunnel_outer()
[all …]
Dice_tc_lib.h125 struct ice_tc_l3_hdr l3_mask; member
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c429 flow->l3_mask.ipv4.daddr.s_addr = match.mask->dst; in bnxt_tc_parse_flow()
431 flow->l3_mask.ipv4.saddr.s_addr = match.mask->src; in bnxt_tc_parse_flow()
438 flow->l3_mask.ipv6.daddr = match.mask->dst; in bnxt_tc_parse_flow()
440 flow->l3_mask.ipv6.saddr = match.mask->src; in bnxt_tc_parse_flow()
591 struct bnxt_tc_l3_key *l3_mask = &flow->l3_mask; in bnxt_hwrm_cfa_flow_alloc() local
700 if (is_wildcard(l3_mask, sizeof(*l3_mask)) && in bnxt_hwrm_cfa_flow_alloc()
711 inet_mask_len(l3_mask->ipv4.daddr.s_addr); in bnxt_hwrm_cfa_flow_alloc()
714 inet_mask_len(l3_mask->ipv4.saddr.s_addr); in bnxt_hwrm_cfa_flow_alloc()
719 ipv6_mask_len(&l3_mask->ipv6.daddr); in bnxt_hwrm_cfa_flow_alloc()
723 ipv6_mask_len(&l3_mask->ipv6.saddr); in bnxt_hwrm_cfa_flow_alloc()
Dbnxt_tc.h127 struct bnxt_tc_l3_key l3_mask; member
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1349 struct ethtool_usrip4_spec *l3_mask; in mlx4_en_validate_flow() local
1376 l3_mask = &cmd->fs.m_u.usr_ip4_spec; in mlx4_en_validate_flow()
1377 if (l3_mask->l4_4_bytes || l3_mask->tos || l3_mask->proto || in mlx4_en_validate_flow()
1379 (!l3_mask->ip4src && !l3_mask->ip4dst) || in mlx4_en_validate_flow()
1380 !all_zeros_or_all_ones(l3_mask->ip4src) || in mlx4_en_validate_flow()
1381 !all_zeros_or_all_ones(l3_mask->ip4dst)) in mlx4_en_validate_flow()
1472 struct ethtool_usrip4_spec *l3_mask = &cmd->fs.m_u.usr_ip4_spec; in add_ip_rule() local
1488 if (l3_mask->ip4src) in add_ip_rule()
1491 if (l3_mask->ip4dst) in add_ip_rule()
/linux-6.6.21/arch/x86/events/amd/
Duncore.c36 static bool l3_mask; variable
248 if (l3_mask && is_llc_event(event)) in amd_uncore_event_init()
675 l3_mask = true; in amd_uncore_init()