Home
last modified time | relevance | path

Searched refs:h_u (Results 1 – 17 of 17) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c1430 fsp->h_u.tcp_ip4_spec.psrc = fltr->tuple.src_port; in qede_get_cls_rule_entry()
1431 fsp->h_u.tcp_ip4_spec.pdst = fltr->tuple.dst_port; in qede_get_cls_rule_entry()
1432 fsp->h_u.tcp_ip4_spec.ip4src = fltr->tuple.src_ipv4; in qede_get_cls_rule_entry()
1433 fsp->h_u.tcp_ip4_spec.ip4dst = fltr->tuple.dst_ipv4; in qede_get_cls_rule_entry()
1439 fsp->h_u.tcp_ip6_spec.psrc = fltr->tuple.src_port; in qede_get_cls_rule_entry()
1440 fsp->h_u.tcp_ip6_spec.pdst = fltr->tuple.dst_port; in qede_get_cls_rule_entry()
1441 memcpy(&fsp->h_u.tcp_ip6_spec.ip6src, in qede_get_cls_rule_entry()
1443 memcpy(&fsp->h_u.tcp_ip6_spec.ip6dst, in qede_get_cls_rule_entry()
1672 if ((fs->h_u.tcp_ip4_spec.ip4src & in qede_flow_spec_to_tuple_ipv4_common()
1673 fs->m_u.tcp_ip4_spec.ip4src) != fs->h_u.tcp_ip4_spec.ip4src) { in qede_flow_spec_to_tuple_ipv4_common()
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c210 struct ethtool_tcpip4_spec *l4_val = &fs->h_u.tcp_ip4_spec; in parse_tcp4()
223 struct ethtool_tcpip4_spec *l4_val = &fs->h_u.udp_ip4_spec; in parse_udp4()
236 struct ethtool_usrip4_spec *l3_val = &fs->h_u.usr_ip4_spec; in parse_ip4()
251 struct ethtool_usrip6_spec *l3_val = &fs->h_u.usr_ip6_spec; in parse_ip6()
266 struct ethtool_tcpip6_spec *l4_val = &fs->h_u.tcp_ip6_spec; in parse_tcp6()
279 struct ethtool_tcpip6_spec *l4_val = &fs->h_u.udp_ip6_spec; in parse_udp6()
292 struct ethhdr *eth_val = &fs->h_u.ether_spec; in parse_ether()
541 fs->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) in validate_ip4()
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/
Dethtool.c791 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in ef4_ethtool_get_class_rule()
793 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in ef4_ethtool_get_class_rule()
795 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec; in ef4_ethtool_get_class_rule()
797 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec; in ef4_ethtool_get_class_rule()
799 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in ef4_ethtool_get_class_rule()
1027 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in ef4_ethtool_set_class_rule()
1029 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in ef4_ethtool_set_class_rule()
1031 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec; in ef4_ethtool_set_class_rule()
1033 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec; in ef4_ethtool_set_class_rule()
1035 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in ef4_ethtool_set_class_rule()
/Linux-v4.19/drivers/net/dsa/
Dbcm_sf2_cfp.c340 v4_spec = &fs->h_u.tcp_ip4_spec; in bcm_sf2_cfp_ipv4_rule_set()
345 v4_spec = &fs->h_u.udp_ip4_spec; in bcm_sf2_cfp_ipv4_rule_set()
534 v6_spec = &fs->h_u.tcp_ip6_spec; in bcm_sf2_cfp_ipv6_rule_set()
539 v6_spec = &fs->h_u.udp_ip6_spec; in bcm_sf2_cfp_ipv6_rule_set()
950 v4_spec = &fs->h_u.tcp_ip4_spec; in bcm_sf2_cfp_ipv4_rule_get()
955 v4_spec = &fs->h_u.udp_ip4_spec; in bcm_sf2_cfp_ipv4_rule_get()
1064 v6_spec = &fs->h_u.tcp_ip6_spec; in bcm_sf2_cfp_ipv6_rule_get()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1350 cmd->fs.h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4 || in mlx4_en_validate_flow()
1455 cmd->fs.h_u. in add_ip_rule()
1460 spec_l3->ipv4.src_ip = cmd->fs.h_u.usr_ip4_spec.ip4src; in add_ip_rule()
1463 spec_l3->ipv4.dst_ip = cmd->fs.h_u.usr_ip4_spec.ip4dst; in add_ip_rule()
1499 cmd->fs.h_u. in add_tcp_udp_rule()
1504 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; in add_tcp_udp_rule()
1505 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; in add_tcp_udp_rule()
1506 spec_l4->tcp_udp.src_port = cmd->fs.h_u.tcp_ip4_spec.psrc; in add_tcp_udp_rule()
1507 spec_l4->tcp_udp.dst_port = cmd->fs.h_u.tcp_ip4_spec.pdst; in add_tcp_udp_rule()
1511 cmd->fs.h_u. in add_tcp_udp_rule()
[all …]
/Linux-v4.19/drivers/net/ethernet/sfc/
Dethtool.c814 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_get_class_rule()
816 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_get_class_rule()
818 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec; in efx_ethtool_get_class_rule()
820 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec; in efx_ethtool_get_class_rule()
822 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule()
1083 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
1085 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
1087 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec; in efx_ethtool_set_class_rule()
1089 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec; in efx_ethtool_set_class_rule()
1092 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_set_class_rule()
/Linux-v4.19/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c460 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys); in enic_grxclsrule()
463 fsp->h_u.tcp_ip4_spec.ip4dst = flow_get_u32_dst(&n->keys); in enic_grxclsrule()
466 fsp->h_u.tcp_ip4_spec.psrc = n->keys.ports.src; in enic_grxclsrule()
469 fsp->h_u.tcp_ip4_spec.pdst = n->keys.ports.dst; in enic_grxclsrule()
/Linux-v4.19/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1171 gfar_set_basic_ip(&rule->h_u.tcp_ip4_spec, in gfar_convert_to_filer()
1177 gfar_set_basic_ip(&rule->h_u.udp_ip4_spec, in gfar_convert_to_filer()
1184 gfar_set_basic_ip((struct ethtool_tcpip4_spec *)&rule->h_u, in gfar_convert_to_filer()
1191 gfar_set_user_ip((struct ethtool_usrip4_spec *) &rule->h_u, in gfar_convert_to_filer()
1198 gfar_set_ether((struct ethhdr *) &rule->h_u, in gfar_convert_to_filer()
1278 if (flow->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) in gfar_check_capability()
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c2874 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in i40e_get_ethtool_fdir_entry()
2875 fsp->h_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
2882 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry()
2883 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry()
2884 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip; in i40e_get_ethtool_fdir_entry()
2885 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip; in i40e_get_ethtool_fdir_entry()
4182 input->dst_ip = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool()
4183 input->src_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in i40e_add_fdir_ethtool()
4185 input->ip4_proto = fsp->h_u.usr_ip4_spec.proto; in i40e_add_fdir_ethtool()
4190 input->dst_port = fsp->h_u.tcp_ip4_spec.psrc; in i40e_add_fdir_ethtool()
[all …]
/Linux-v4.19/include/linux/
Dethtool.h24 union ethtool_flow_union h_u; member
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2443 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ixgbe_get_ethtool_fdir_entry()
2444 fsp->h_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry()
2451 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; in ixgbe_get_ethtool_fdir_entry()
2453 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2455 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2457 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2644 switch (fsp->h_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type()
2738 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
2740 input->filter.formatted.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
2742 input->filter.formatted.src_port = fsp->h_u.tcp_ip4_spec.psrc; in ixgbe_add_ethtool_fdir_entry()
[all …]
/Linux-v4.19/include/uapi/linux/
Dethtool.h881 union ethtool_flow_union h_u; member
1076 } h_u, m_u; member
/Linux-v4.19/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c1519 (!fsp->h_u.tcp_ip4_spec.ip4dst) || in mtk_hwlro_add_ipaddr()
1523 mac->hwlro_ip[fsp->location] = htonl(fsp->h_u.tcp_ip4_spec.ip4dst); in mtk_hwlro_add_ipaddr()
1580 fsp->h_u.tcp_ip4_spec.ip4dst = ntohl(mac->hwlro_ip[fsp->location]); in mtk_hwlro_get_fdir_entry()
1583 fsp->h_u.tcp_ip4_spec.ip4src = 0; in mtk_hwlro_get_fdir_entry()
1585 fsp->h_u.tcp_ip4_spec.psrc = 0; in mtk_hwlro_get_fdir_entry()
1587 fsp->h_u.tcp_ip4_spec.pdst = 0; in mtk_hwlro_get_fdir_entry()
1589 fsp->h_u.tcp_ip4_spec.tos = 0; in mtk_hwlro_get_fdir_entry()
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c662 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src; in bnxt_grxclsrule()
665 fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst; in bnxt_grxclsrule()
668 fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule()
671 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule()
683 *(struct in6_addr *)&fs->h_u.tcp_ip6_spec.ip6src[0] = in bnxt_grxclsrule()
685 *(struct in6_addr *)&fs->h_u.tcp_ip6_spec.ip6dst[0] = in bnxt_grxclsrule()
691 fs->h_u.tcp_ip6_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule()
694 fs->h_u.tcp_ip6_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule()
/Linux-v4.19/drivers/net/ethernet/cadence/
Dmacb_main.c2850 tp4sp_v = &(fs->h_u.tcp_ip4_spec); in gem_prog_cmp_regs()
2939 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_add_flow_filter()
2940 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_add_flow_filter()
2941 htons(fs->h_u.tcp_ip4_spec.psrc), htons(fs->h_u.tcp_ip4_spec.pdst)); in gem_add_flow_filter()
2993 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_del_flow_filter()
2994 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_del_flow_filter()
2995 htons(fs->h_u.tcp_ip4_spec.psrc), in gem_del_flow_filter()
2996 htons(fs->h_u.tcp_ip4_spec.pdst)); in gem_del_flow_filter()
/Linux-v4.19/drivers/net/ethernet/sun/
Dniu.c7085 fsp->h_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7088 fsp->h_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7096 fsp->h_u.tcp_ip4_spec.tos = (tp->key[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key()
7107 fsp->h_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key()
7111 fsp->h_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key()
7125 fsp->h_u.ah_ip4_spec.spi = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7134 fsp->h_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7140 fsp->h_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key()
7147 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in niu_get_ip4fs_from_tcam_key()
7353 sip = be32_to_cpu(fsp->h_u.tcp_ip4_spec.ip4src); in niu_get_tcamkey_from_ip4fs()
[all …]
/Linux-v4.19/drivers/net/ethernet/intel/igb/
Digb_ethtool.c2469 fsp->h_u.ether_spec.h_proto = rule->filter.etype; in igb_get_ethtool_nfc_entry()
2478 ether_addr_copy(fsp->h_u.ether_spec.h_dest, in igb_get_ethtool_nfc_entry()
2486 ether_addr_copy(fsp->h_u.ether_spec.h_source, in igb_get_ethtool_nfc_entry()
2945 input->filter.etype = fsp->h_u.ether_spec.h_proto; in igb_add_ethtool_nfc_entry()
2953 fsp->h_u.ether_spec.h_source); in igb_add_ethtool_nfc_entry()
2960 fsp->h_u.ether_spec.h_dest); in igb_add_ethtool_nfc_entry()