Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c209 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in parse_tcp4()
222 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.udp_ip4_spec; in parse_udp4()
235 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in parse_ip4()
250 struct ethtool_usrip6_spec *l3_mask = &fs->m_u.usr_ip6_spec; in parse_ip6()
265 struct ethtool_tcpip6_spec *l4_mask = &fs->m_u.tcp_ip6_spec; in parse_tcp6()
278 struct ethtool_tcpip6_spec *l4_mask = &fs->m_u.udp_ip6_spec; in parse_udp6()
291 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in parse_ether()
491 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in validate_ethter()
505 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in validate_tcpudp4()
537 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in validate_ip4()
[all …]
/Linux-v4.19/drivers/net/dsa/
Dbcm_sf2_cfp.c341 v4_m_spec = &fs->m_u.tcp_ip4_spec; in bcm_sf2_cfp_ipv4_rule_set()
346 v4_m_spec = &fs->m_u.udp_ip4_spec; in bcm_sf2_cfp_ipv4_rule_set()
535 v6_m_spec = &fs->m_u.tcp_ip6_spec; in bcm_sf2_cfp_ipv6_rule_set()
540 v6_m_spec = &fs->m_u.udp_ip6_spec; in bcm_sf2_cfp_ipv6_rule_set()
861 for (i = 0; i < sizeof(flow->m_u); i++) in bcm_sf2_invert_masks()
862 flow->m_u.hdata[i] ^= 0xff; in bcm_sf2_invert_masks()
951 v4_m_spec = &fs->m_u.tcp_ip4_spec; in bcm_sf2_cfp_ipv4_rule_get()
956 v4_m_spec = &fs->m_u.udp_ip4_spec; in bcm_sf2_cfp_ipv4_rule_get()
1065 v6_m_spec = &fs->m_u.tcp_ip6_spec; in bcm_sf2_cfp_ipv6_rule_get()
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/
Dethtool.c792 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_get_class_rule()
794 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_get_class_rule()
796 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in ef4_ethtool_get_class_rule()
798 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in ef4_ethtool_get_class_rule()
800 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_get_class_rule()
1028 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_set_class_rule()
1030 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_set_class_rule()
1032 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in ef4_ethtool_set_class_rule()
1034 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in ef4_ethtool_set_class_rule()
1036 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_set_class_rule()
/Linux-v4.19/drivers/net/ethernet/sfc/
Dethtool.c815 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_get_class_rule()
817 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_get_class_rule()
819 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in efx_ethtool_get_class_rule()
821 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in efx_ethtool_get_class_rule()
823 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule()
1084 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
1086 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
1088 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in efx_ethtool_set_class_rule()
1090 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in efx_ethtool_set_class_rule()
1093 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule()
/Linux-v4.19/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c461 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule()
464 fsp->m_u.tcp_ip4_spec.ip4dst = (__u32)~0; in enic_grxclsrule()
467 fsp->m_u.tcp_ip4_spec.psrc = (__u16)~0; in enic_grxclsrule()
470 fsp->m_u.tcp_ip4_spec.pdst = (__u16)~0; in enic_grxclsrule()
/Linux-v4.19/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1172 &rule->m_u.tcp_ip4_spec, tab); in gfar_convert_to_filer()
1178 &rule->m_u.udp_ip4_spec, tab); in gfar_convert_to_filer()
1185 (struct ethtool_tcpip4_spec *)&rule->m_u, in gfar_convert_to_filer()
1192 (struct ethtool_usrip4_spec *) &rule->m_u, in gfar_convert_to_filer()
1199 (struct ethhdr *) &rule->m_u, tab); in gfar_convert_to_filer()
1329 for (i = 0; i < sizeof(flow->m_u); i++) in gfar_invert_masks()
1330 flow->m_u.hdata[i] ^= 0xFF; in gfar_invert_masks()
/Linux-v4.19/include/linux/
Dethtool.h26 union ethtool_flow_union m_u; member
/Linux-v4.19/include/uapi/linux/
Dethtool.h883 union ethtool_flow_union m_u; member
1076 } h_u, m_u; member
/Linux-v4.19/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c1673 fs->m_u.tcp_ip4_spec.ip4src) != fs->h_u.tcp_ip4_spec.ip4src) { in qede_flow_spec_to_tuple_ipv4_common()
1679 fs->m_u.tcp_ip4_spec.ip4dst) != fs->h_u.tcp_ip4_spec.ip4dst) { in qede_flow_spec_to_tuple_ipv4_common()
1685 fs->m_u.tcp_ip4_spec.psrc) != fs->h_u.tcp_ip4_spec.psrc) { in qede_flow_spec_to_tuple_ipv4_common()
1691 fs->m_u.tcp_ip4_spec.pdst) != fs->h_u.tcp_ip4_spec.pdst) { in qede_flow_spec_to_tuple_ipv4_common()
1743 fs->m_u.tcp_ip6_spec.psrc) != fs->h_u.tcp_ip6_spec.psrc) { in qede_flow_spec_to_tuple_ipv6_common()
1749 fs->m_u.tcp_ip6_spec.pdst) != fs->h_u.tcp_ip6_spec.pdst) { in qede_flow_spec_to_tuple_ipv6_common()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2445 fsp->m_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry()
2452 fsp->m_u.tcp_ip4_spec.psrc = mask->formatted.src_port; in ixgbe_get_ethtool_fdir_entry()
2454 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2456 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2458 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2655 if (!fsp->m_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type()
2739 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
2741 mask.formatted.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
2743 mask.formatted.src_port = fsp->m_u.tcp_ip4_spec.psrc; in ixgbe_add_ethtool_fdir_entry()
2745 mask.formatted.dst_port = fsp->m_u.tcp_ip4_spec.pdst; in ixgbe_add_ethtool_fdir_entry()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1337 if (cmd->fs.m_u.tcp_ip4_spec.tos) in mlx4_en_validate_flow()
1339 l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in mlx4_en_validate_flow()
1348 l3_mask = &cmd->fs.m_u.usr_ip4_spec; in mlx4_en_validate_flow()
1357 eth_mask = &cmd->fs.m_u.ether_spec; in mlx4_en_validate_flow()
1445 struct ethtool_usrip4_spec *l3_mask = &cmd->fs.m_u.usr_ip4_spec; in add_ip_rule()
1484 struct ethtool_tcpip4_spec *l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in add_tcp_udp_rule()
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c663 fs->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(~0); in bnxt_grxclsrule()
666 fs->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(~0); in bnxt_grxclsrule()
669 fs->m_u.tcp_ip4_spec.psrc = cpu_to_be16(~0); in bnxt_grxclsrule()
672 fs->m_u.tcp_ip4_spec.pdst = cpu_to_be16(~0); in bnxt_grxclsrule()
688 fs->m_u.tcp_ip6_spec.ip6src[i] = cpu_to_be32(~0); in bnxt_grxclsrule()
689 fs->m_u.tcp_ip6_spec.ip6dst[i] = cpu_to_be32(~0); in bnxt_grxclsrule()
692 fs->m_u.tcp_ip6_spec.psrc = cpu_to_be16(~0); in bnxt_grxclsrule()
695 fs->m_u.tcp_ip6_spec.pdst = cpu_to_be16(~0); in bnxt_grxclsrule()
/Linux-v4.19/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c1581 fsp->m_u.tcp_ip4_spec.ip4dst = 0; in mtk_hwlro_get_fdir_entry()
1584 fsp->m_u.tcp_ip4_spec.ip4src = 0xffffffff; in mtk_hwlro_get_fdir_entry()
1586 fsp->m_u.tcp_ip4_spec.psrc = 0xffff; in mtk_hwlro_get_fdir_entry()
1588 fsp->m_u.tcp_ip4_spec.pdst = 0xffff; in mtk_hwlro_get_fdir_entry()
1590 fsp->m_u.tcp_ip4_spec.tos = 0xff; in mtk_hwlro_get_fdir_entry()
/Linux-v4.19/drivers/net/ethernet/intel/igb/
Digb_ethtool.c2470 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igb_get_ethtool_nfc_entry()
2483 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igb_get_ethtool_nfc_entry()
2491 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igb_get_ethtool_nfc_entry()
2944 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igb_add_ethtool_nfc_entry()
2950 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_source)) { in igb_add_ethtool_nfc_entry()
2957 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) { in igb_add_ethtool_nfc_entry()
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c2876 fsp->m_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
2916 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
2919 fsp->m_u.tcp_ip4_spec.ip4dst = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
2922 fsp->m_u.tcp_ip4_spec.psrc = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
2925 fsp->m_u.tcp_ip4_spec.pdst = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
3765 tcp_ip4_spec = &fsp->m_u.tcp_ip4_spec; in i40e_check_fdir_input_set()
3805 usr_ip4_spec = &fsp->m_u.usr_ip4_spec; in i40e_check_fdir_input_set()
/Linux-v4.19/drivers/net/ethernet/sun/
Dniu.c7091 fsp->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7094 fsp->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7098 fsp->m_u.tcp_ip4_spec.tos = (tp->key_mask[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key()
7115 fsp->m_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key()
7119 fsp->m_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key()
7129 fsp->m_u.ah_ip4_spec.spi = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7138 fsp->m_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7143 fsp->m_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key()
7354 sipm = be32_to_cpu(fsp->m_u.tcp_ip4_spec.ip4src); in niu_get_tcamkey_from_ip4fs()
7356 dipm = be32_to_cpu(fsp->m_u.tcp_ip4_spec.ip4dst); in niu_get_tcamkey_from_ip4fs()
[all …]
/Linux-v4.19/drivers/net/ethernet/cadence/
Dmacb_main.c2820 tp4sp_m = &(fs->m_u.tcp_ip4_spec); in gem_enable_flow_filters()
2851 tp4sp_m = &(fs->m_u.tcp_ip4_spec); in gem_prog_cmp_regs()