Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c235 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in parse_tcp4() local
238 set_ip4(headers_c, headers_v, l4_mask->ip4src, l4_val->ip4src, in parse_tcp4()
239 l4_mask->ip4dst, l4_val->ip4dst); in parse_tcp4()
241 set_tcp(headers_c, headers_v, l4_mask->psrc, l4_val->psrc, in parse_tcp4()
242 l4_mask->pdst, l4_val->pdst); in parse_tcp4()
248 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.udp_ip4_spec; in parse_udp4() local
251 set_ip4(headers_c, headers_v, l4_mask->ip4src, l4_val->ip4src, in parse_udp4()
252 l4_mask->ip4dst, l4_val->ip4dst); in parse_udp4()
254 set_udp(headers_c, headers_v, l4_mask->psrc, l4_val->psrc, in parse_udp4()
255 l4_mask->pdst, l4_val->pdst); in parse_udp4()
[all …]
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c437 struct ethtool_tcpip4_spec *l4_mask, in dpaa2_eth_prep_l4_rule() argument
442 if (l4_mask->tos) in dpaa2_eth_prep_l4_rule()
445 if (l4_mask->ip4src) { in dpaa2_eth_prep_l4_rule()
448 *(__be32 *)(mask + off) = l4_mask->ip4src; in dpaa2_eth_prep_l4_rule()
452 if (l4_mask->ip4dst) { in dpaa2_eth_prep_l4_rule()
455 *(__be32 *)(mask + off) = l4_mask->ip4dst; in dpaa2_eth_prep_l4_rule()
459 if (l4_mask->psrc) { in dpaa2_eth_prep_l4_rule()
462 *(__be16 *)(mask + off) = l4_mask->psrc; in dpaa2_eth_prep_l4_rule()
466 if (l4_mask->pdst) { in dpaa2_eth_prep_l4_rule()
469 *(__be16 *)(mask + off) = l4_mask->pdst; in dpaa2_eth_prep_l4_rule()
/linux-6.6.21/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.6.21/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.6.21/drivers/net/ethernet/intel/ice/
Dice_tc_lib.c326 list[i].m_u.l4_hdr.dst_port = hdr->l4_mask.dst_port; in ice_tc_fill_tunnel_outer()
583 struct ice_tc_l4_hdr *l4_key, *l4_mask; in ice_tc_fill_rules() local
587 l4_mask = &headers->l4_mask; in ice_tc_fill_rules()
591 list[i].m_u.l4_hdr.dst_port = l4_mask->dst_port; in ice_tc_fill_rules()
595 list[i].m_u.l4_hdr.src_port = l4_mask->src_port; in ice_tc_fill_rules()
1235 headers->l4_mask.dst_port = match.mask->dst; in ice_tc_set_port()
1244 headers->l4_mask.src_port = match.mask->src; in ice_tc_set_port()
Dice_tc_lib.h129 struct ice_tc_l4_hdr l4_mask; member
/linux-6.6.21/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c1366 struct ethtool_usrip4_spec *l4_mask; in bcmgenet_validate_flow() local
1378 l4_mask = &cmd->fs.m_u.usr_ip4_spec; in bcmgenet_validate_flow()
1380 if (VALIDATE_MASK(l4_mask->ip4src) || in bcmgenet_validate_flow()
1381 VALIDATE_MASK(l4_mask->ip4dst) || in bcmgenet_validate_flow()
1382 VALIDATE_MASK(l4_mask->l4_4_bytes) || in bcmgenet_validate_flow()
1383 VALIDATE_MASK(l4_mask->proto) || in bcmgenet_validate_flow()
1384 VALIDATE_MASK(l4_mask->ip_ver) || in bcmgenet_validate_flow()
1385 VALIDATE_MASK(l4_mask->tos)) { in bcmgenet_validate_flow()