Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c211 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in parse_tcp4()
224 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.udp_ip4_spec; in parse_udp4()
237 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in parse_ip4()
252 struct ethtool_usrip6_spec *l3_mask = &fs->m_u.usr_ip6_spec; in parse_ip6()
267 struct ethtool_tcpip6_spec *l4_mask = &fs->m_u.tcp_ip6_spec; in parse_tcp6()
280 struct ethtool_tcpip6_spec *l4_mask = &fs->m_u.udp_ip6_spec; in parse_udp6()
293 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in parse_ether()
501 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in validate_ethter()
515 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in validate_tcpudp4()
535 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in validate_ip4()
[all …]
/Linux-v5.4/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c323 l4ip4_m = &fs->m_u.tcp_ip4_spec; in enetc_set_cls_entry()
327 l4ip4_m = &fs->m_u.udp_ip4_spec; in enetc_set_cls_entry()
331 l4ip4_m = &fs->m_u.sctp_ip4_spec; in enetc_set_cls_entry()
348 l3ip4_m = &fs->m_u.usr_ip4_spec; in enetc_set_cls_entry()
361 eth_m = &fs->m_u.ether_spec; in enetc_set_cls_entry()
/Linux-v5.4/drivers/net/ethernet/sfc/falcon/
Dethtool.c789 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_get_class_rule()
791 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_get_class_rule()
793 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in ef4_ethtool_get_class_rule()
795 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in ef4_ethtool_get_class_rule()
797 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_get_class_rule()
1025 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_set_class_rule()
1027 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_set_class_rule()
1029 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in ef4_ethtool_set_class_rule()
1031 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in ef4_ethtool_set_class_rule()
1033 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_set_class_rule()
/Linux-v5.4/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c451 err = prep_eth_rule(&fs->h_u.ether_spec, &fs->m_u.ether_spec, in prep_cls_rule()
456 &fs->m_u.usr_ip4_spec, key, mask, fields); in prep_cls_rule()
459 err = prep_l4_rule(&fs->h_u.tcp_ip4_spec, &fs->m_u.tcp_ip4_spec, in prep_cls_rule()
463 err = prep_l4_rule(&fs->h_u.udp_ip4_spec, &fs->m_u.udp_ip4_spec, in prep_cls_rule()
468 &fs->m_u.sctp_ip4_spec, key, mask, in prep_cls_rule()
/Linux-v5.4/drivers/net/ethernet/sfc/
Dethtool.c812 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_get_class_rule()
814 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_get_class_rule()
816 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in efx_ethtool_get_class_rule()
818 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in efx_ethtool_get_class_rule()
820 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule()
1081 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
1083 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
1085 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in efx_ethtool_set_class_rule()
1087 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in efx_ethtool_set_class_rule()
1090 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule()
/Linux-v5.4/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-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c5379 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tuple()
5384 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tuple()
5388 be16_to_cpu(fs->m_u.tcp_ip4_spec.psrc); in hclge_fd_get_tuple()
5392 be16_to_cpu(fs->m_u.tcp_ip4_spec.pdst); in hclge_fd_get_tuple()
5395 rule->tuples_mask.ip_tos = fs->m_u.tcp_ip4_spec.tos; in hclge_fd_get_tuple()
5405 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4src); in hclge_fd_get_tuple()
5410 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4dst); in hclge_fd_get_tuple()
5413 rule->tuples_mask.ip_tos = fs->m_u.usr_ip4_spec.tos; in hclge_fd_get_tuple()
5416 rule->tuples_mask.ip_proto = fs->m_u.usr_ip4_spec.proto; in hclge_fd_get_tuple()
5428 fs->m_u.tcp_ip6_spec.ip6src, IPV6_SIZE); in hclge_fd_get_tuple()
[all …]
/Linux-v5.4/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1133 &rule->m_u.tcp_ip4_spec, tab); in gfar_convert_to_filer()
1139 &rule->m_u.udp_ip4_spec, tab); in gfar_convert_to_filer()
1146 (struct ethtool_tcpip4_spec *)&rule->m_u, in gfar_convert_to_filer()
1153 (struct ethtool_usrip4_spec *) &rule->m_u, in gfar_convert_to_filer()
1160 (struct ethhdr *) &rule->m_u, tab); in gfar_convert_to_filer()
1290 for (i = 0; i < sizeof(flow->m_u); i++) in gfar_invert_masks()
1291 flow->m_u.hdata[i] ^= 0xFF; in gfar_invert_masks()
/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c59 memcmp(&fsp1->m_u, &fsp2->m_u, sizeof(fsp2->m_u)) || in aq_match_filter()
137 fsp->m_u.ether_spec.h_proto == 0U) { in aq_check_approve_fl2()
/Linux-v5.4/drivers/net/dsa/
Dbcm_sf2_cfp.c589 ret |= memcmp(&rule->fs.m_u, &fs->m_u, fs_size); in bcm_sf2_cfp_rule_cmp()
1002 for (i = 0; i < sizeof(flow->m_u); i++) in bcm_sf2_invert_masks()
1003 flow->m_u.hdata[i] ^= 0xff; in bcm_sf2_invert_masks()
/Linux-v5.4/include/linux/
Dethtool.h26 union ethtool_flow_union m_u; member
/Linux-v5.4/drivers/net/ethernet/intel/igc/
Digc_ethtool.c900 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igc_get_ethtool_nfc_entry()
913 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igc_get_ethtool_nfc_entry()
921 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igc_get_ethtool_nfc_entry()
1382 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igc_add_ethtool_nfc_entry()
1388 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_source)) { in igc_add_ethtool_nfc_entry()
1395 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) { in igc_add_ethtool_nfc_entry()
/Linux-v5.4/include/uapi/linux/
Dethtool.h909 union ethtool_flow_union m_u; member
1102 } h_u, m_u; member
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2448 fsp->m_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry()
2455 fsp->m_u.tcp_ip4_spec.psrc = mask->formatted.src_port; in ixgbe_get_ethtool_fdir_entry()
2457 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2459 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2461 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2658 if (!fsp->m_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type()
2742 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
2744 mask.formatted.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
2746 mask.formatted.src_port = fsp->m_u.tcp_ip4_spec.psrc; in ixgbe_add_ethtool_fdir_entry()
2748 mask.formatted.dst_port = fsp->m_u.tcp_ip4_spec.pdst; in ixgbe_add_ethtool_fdir_entry()
/Linux-v5.4/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-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c957 fs->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(~0); in bnxt_grxclsrule()
960 fs->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(~0); in bnxt_grxclsrule()
963 fs->m_u.tcp_ip4_spec.psrc = cpu_to_be16(~0); in bnxt_grxclsrule()
966 fs->m_u.tcp_ip4_spec.pdst = cpu_to_be16(~0); in bnxt_grxclsrule()
982 fs->m_u.tcp_ip6_spec.ip6src[i] = cpu_to_be32(~0); in bnxt_grxclsrule()
983 fs->m_u.tcp_ip6_spec.ip6dst[i] = cpu_to_be32(~0); in bnxt_grxclsrule()
986 fs->m_u.tcp_ip6_spec.psrc = cpu_to_be16(~0); in bnxt_grxclsrule()
989 fs->m_u.tcp_ip6_spec.pdst = cpu_to_be16(~0); in bnxt_grxclsrule()
/Linux-v5.4/drivers/net/ethernet/intel/igb/
Digb_ethtool.c2473 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igb_get_ethtool_nfc_entry()
2486 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igb_get_ethtool_nfc_entry()
2494 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igb_get_ethtool_nfc_entry()
2947 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igb_add_ethtool_nfc_entry()
2953 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_source)) { in igb_add_ethtool_nfc_entry()
2960 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) { in igb_add_ethtool_nfc_entry()
/Linux-v5.4/drivers/net/ethernet/sun/
Dniu.c7089 fsp->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7092 fsp->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7096 fsp->m_u.tcp_ip4_spec.tos = (tp->key_mask[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key()
7113 fsp->m_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key()
7117 fsp->m_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key()
7127 fsp->m_u.ah_ip4_spec.spi = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7136 fsp->m_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7141 fsp->m_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key()
7352 sipm = be32_to_cpu(fsp->m_u.tcp_ip4_spec.ip4src); in niu_get_tcamkey_from_ip4fs()
7354 dipm = be32_to_cpu(fsp->m_u.tcp_ip4_spec.ip4dst); in niu_get_tcamkey_from_ip4fs()
[all …]
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3218 fsp->m_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
3258 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3261 fsp->m_u.tcp_ip4_spec.ip4dst = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3264 fsp->m_u.tcp_ip4_spec.psrc = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
3267 fsp->m_u.tcp_ip4_spec.pdst = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
4107 tcp_ip4_spec = &fsp->m_u.tcp_ip4_spec; in i40e_check_fdir_input_set()
4147 usr_ip4_spec = &fsp->m_u.usr_ip4_spec; in i40e_check_fdir_input_set()
/Linux-v5.4/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c1916 fsp->m_u.tcp_ip4_spec.ip4dst = 0; in mtk_hwlro_get_fdir_entry()
1919 fsp->m_u.tcp_ip4_spec.ip4src = 0xffffffff; in mtk_hwlro_get_fdir_entry()
1921 fsp->m_u.tcp_ip4_spec.psrc = 0xffff; in mtk_hwlro_get_fdir_entry()
1923 fsp->m_u.tcp_ip4_spec.pdst = 0xffff; in mtk_hwlro_get_fdir_entry()
1925 fsp->m_u.tcp_ip4_spec.tos = 0xff; in mtk_hwlro_get_fdir_entry()
/Linux-v5.4/net/core/
Dethtool.c2898 ether_m_spec = &fs->m_u.ether_spec; in ethtool_rx_flow_rule_create()
2925 v4_m_spec = &fs->m_u.tcp_ip4_spec; in ethtool_rx_flow_rule_create()
2974 v6_m_spec = &fs->m_u.tcp_ip6_spec; in ethtool_rx_flow_rule_create()
/Linux-v5.4/drivers/net/ethernet/cadence/
Dmacb_main.c2881 tp4sp_m = &(fs->m_u.tcp_ip4_spec); in gem_enable_flow_filters()
2912 tp4sp_m = &(fs->m_u.tcp_ip4_spec); in gem_prog_cmp_regs()
/Linux-v5.4/drivers/net/dsa/mv88e6xxx/
Dchip.c1579 struct ethhdr *mac_mask = &fs->m_u.ether_spec; in mv88e6xxx_policy_insert()