Home
last modified time | relevance | path

Searched refs:l4_mask (Results 1 – 8 of 8) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c239 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in parse_tcp4() local
242 set_ip4(headers_c, headers_v, l4_mask->ip4src, l4_val->ip4src, in parse_tcp4()
243 l4_mask->ip4dst, l4_val->ip4dst); in parse_tcp4()
245 set_tcp(headers_c, headers_v, l4_mask->psrc, l4_val->psrc, in parse_tcp4()
246 l4_mask->pdst, l4_val->pdst); in parse_tcp4()
252 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.udp_ip4_spec; in parse_udp4() local
255 set_ip4(headers_c, headers_v, l4_mask->ip4src, l4_val->ip4src, in parse_udp4()
256 l4_mask->ip4dst, l4_val->ip4dst); in parse_udp4()
258 set_udp(headers_c, headers_v, l4_mask->psrc, l4_val->psrc, in parse_udp4()
259 l4_mask->pdst, l4_val->pdst); in parse_udp4()
[all …]
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c407 struct ethtool_tcpip4_spec *l4_mask, in dpaa2_eth_prep_l4_rule() argument
412 if (l4_mask->tos) in dpaa2_eth_prep_l4_rule()
415 if (l4_mask->ip4src) { in dpaa2_eth_prep_l4_rule()
418 *(__be32 *)(mask + off) = l4_mask->ip4src; in dpaa2_eth_prep_l4_rule()
422 if (l4_mask->ip4dst) { in dpaa2_eth_prep_l4_rule()
425 *(__be32 *)(mask + off) = l4_mask->ip4dst; in dpaa2_eth_prep_l4_rule()
429 if (l4_mask->psrc) { in dpaa2_eth_prep_l4_rule()
432 *(__be16 *)(mask + off) = l4_mask->psrc; in dpaa2_eth_prep_l4_rule()
436 if (l4_mask->pdst) { in dpaa2_eth_prep_l4_rule()
439 *(__be16 *)(mask + off) = l4_mask->pdst; in dpaa2_eth_prep_l4_rule()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_tc.c393 flow->l4_mask.ip_proto = match.mask->ip_proto; in bnxt_tc_parse_flow()
449 flow->l4_mask.ports.dport = match.mask->dst; in bnxt_tc_parse_flow()
451 flow->l4_mask.ports.sport = match.mask->src; in bnxt_tc_parse_flow()
461 flow->l4_mask.icmp.type = match.mask->type; in bnxt_tc_parse_flow()
462 flow->l4_mask.icmp.code = match.mask->code; in bnxt_tc_parse_flow()
701 is_wildcard(&flow->l4_mask, sizeof(flow->l4_mask))) { in bnxt_hwrm_cfa_flow_alloc()
729 req->l4_src_port_mask = flow->l4_mask.ports.sport; in bnxt_hwrm_cfa_flow_alloc()
731 req->l4_dst_port_mask = flow->l4_mask.ports.dport; in bnxt_hwrm_cfa_flow_alloc()
735 req->l4_src_port_mask = htons(flow->l4_mask.icmp.type); in bnxt_hwrm_cfa_flow_alloc()
737 req->l4_dst_port_mask = htons(flow->l4_mask.icmp.code); in bnxt_hwrm_cfa_flow_alloc()
Dbnxt_tc.h129 struct bnxt_tc_l4_key l4_mask; member
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1350 struct ethtool_tcpip4_spec *l4_mask; in mlx4_en_validate_flow() local
1367 l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in mlx4_en_validate_flow()
1369 if (!all_zeros_or_all_ones(l4_mask->ip4src) || in mlx4_en_validate_flow()
1370 !all_zeros_or_all_ones(l4_mask->ip4dst) || in mlx4_en_validate_flow()
1371 !all_zeros_or_all_ones(l4_mask->psrc) || in mlx4_en_validate_flow()
1372 !all_zeros_or_all_ones(l4_mask->pdst)) in mlx4_en_validate_flow()
1511 struct ethtool_tcpip4_spec *l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in add_tcp_udp_rule() local
1549 if (l4_mask->ip4src) in add_tcp_udp_rule()
1551 if (l4_mask->ip4dst) in add_tcp_udp_rule()
1554 if (l4_mask->psrc) in add_tcp_udp_rule()
[all …]
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_tc_lib.c319 list[i].m_u.l4_hdr.dst_port = hdr->l4_mask.dst_port; in ice_tc_fill_tunnel_outer()
566 struct ice_tc_l4_hdr *l4_key, *l4_mask; in ice_tc_fill_rules() local
570 l4_mask = &headers->l4_mask; in ice_tc_fill_rules()
574 list[i].m_u.l4_hdr.dst_port = l4_mask->dst_port; in ice_tc_fill_rules()
578 list[i].m_u.l4_hdr.src_port = l4_mask->src_port; in ice_tc_fill_rules()
1034 headers->l4_mask.dst_port = match.mask->dst; in ice_tc_set_port()
1043 headers->l4_mask.src_port = match.mask->src; in ice_tc_set_port()
Dice_tc_lib.h115 struct ice_tc_l4_hdr l4_mask; member
/linux-6.1.9/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c1387 struct ethtool_usrip4_spec *l4_mask; in bcmgenet_validate_flow() local
1398 l4_mask = &cmd->fs.m_u.usr_ip4_spec; in bcmgenet_validate_flow()
1400 if (VALIDATE_MASK(l4_mask->ip4src) || in bcmgenet_validate_flow()
1401 VALIDATE_MASK(l4_mask->ip4dst) || in bcmgenet_validate_flow()
1402 VALIDATE_MASK(l4_mask->l4_4_bytes) || in bcmgenet_validate_flow()
1403 VALIDATE_MASK(l4_mask->proto) || in bcmgenet_validate_flow()
1404 VALIDATE_MASK(l4_mask->ip_ver) || in bcmgenet_validate_flow()
1405 VALIDATE_MASK(l4_mask->tos)) { in bcmgenet_validate_flow()