Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/intel/iavf/
A Diavf_ethtool.c1073 memset(&fsp->m_u, 0, sizeof(fsp->m_u)); in iavf_get_ethtool_fdir_entry()
1089 fsp->m_u.tcp_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry()
1099 fsp->m_u.ah_ip4_spec.spi = rule->ip_mask.spi; in iavf_get_ethtool_fdir_entry()
1100 fsp->m_u.ah_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry()
1112 fsp->m_u.usr_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry()
1113 fsp->m_u.usr_ip4_spec.ip_ver = 0xFF; in iavf_get_ethtool_fdir_entry()
1146 fsp->m_u.ah_ip6_spec.spi = rule->ip_mask.spi; in iavf_get_ethtool_fdir_entry()
1277 fltr->ip_mask.tos = fsp->m_u.tcp_ip4_spec.tos; in iavf_add_fdir_fltr_info()
1287 fltr->ip_mask.spi = fsp->m_u.ah_ip4_spec.spi; in iavf_add_fdir_fltr_info()
1288 fltr->ip_mask.tos = fsp->m_u.ah_ip4_spec.tos; in iavf_add_fdir_fltr_info()
[all …]
/linux/drivers/net/ethernet/intel/ice/
A Dice_ethtool_fdir.c135 memset(&fsp->m_u, 0, sizeof(fsp->m_u)); in ice_get_ethtool_fdir_entry()
146 fsp->m_u.usr_ip4_spec.ip4src = rule->mask.v4.src_ip; in ice_get_ethtool_fdir_entry()
148 fsp->m_u.usr_ip4_spec.ip_ver = 0xFF; in ice_get_ethtool_fdir_entry()
149 fsp->m_u.usr_ip4_spec.proto = 0; in ice_get_ethtool_fdir_entry()
151 fsp->m_u.usr_ip4_spec.tos = rule->mask.v4.tos; in ice_get_ethtool_fdir_entry()
178 fsp->m_u.usr_ip6_spec.tclass = rule->mask.v6.tc; in ice_get_ethtool_fdir_entry()
190 memcpy(fsp->m_u.tcp_ip6_spec.ip6src, in ice_get_ethtool_fdir_entry()
193 memcpy(fsp->m_u.tcp_ip6_spec.ip6dst, in ice_get_ethtool_fdir_entry()
199 fsp->m_u.tcp_ip6_spec.tclass = rule->mask.v6.tc; in ice_get_ethtool_fdir_entry()
1552 input->mask.v4.tos = fsp->m_u.usr_ip4_spec.tos; in ice_set_fdir_input_set()
[all …]
A Dice_tc_lib.c171 memcpy(&list[i].m_u.ipv6_hdr.src_addr, in ice_tc_fill_tunnel_outer()
179 memcpy(&list[i].m_u.ipv6_hdr.dst_addr, in ice_tc_fill_tunnel_outer()
190 list[i].m_u.l4_hdr.dst_port = hdr->l4_mask.dst_port; in ice_tc_fill_tunnel_outer()
245 ether_addr_copy(list[i].m_u.eth_hdr.dst_addr, in ice_tc_fill_rules()
251 ether_addr_copy(list[i].m_u.eth_hdr.src_addr, in ice_tc_fill_rules()
261 list[i].m_u.vlan_hdr.vlan = cpu_to_be16(0xFFFF); in ice_tc_fill_rules()
275 list[i].m_u.ipv4_hdr.dst_addr = l3_mask->dst_ipv4; in ice_tc_fill_rules()
279 list[i].m_u.ipv4_hdr.src_addr = l3_mask->src_ipv4; in ice_tc_fill_rules()
289 ipv6_mask = &list[i].m_u.ipv6_hdr; in ice_tc_fill_rules()
319 list[i].m_u.l4_hdr.dst_port = l4_mask->dst_port; in ice_tc_fill_rules()
[all …]
A Dice_switch.h131 union ice_prot_hdr m_u; /* Mask of header values to match */ member
A Dice_switch.c3912 for (j = 0; j < sizeof(rule->m_u) / sizeof(u16); j++) in ice_fill_valid_words()
3913 if (((u16 *)&rule->m_u)[j] && in ice_fill_valid_words()
3923 be16_to_cpu(((__force __be16 *)&rule->m_u)[j]); in ice_fill_valid_words()
4761 lkups[i].m_u.ethertype.ethtype_id == in ice_find_dummy_packet()
4938 if (((u16 *)&lkups[i].m_u)[j]) in ice_fill_adv_dummy_packet()
4941 ~((u16 *)&lkups[i].m_u)[j]) | in ice_fill_adv_dummy_packet()
4943 ((u16 *)&lkups[i].m_u)[j]); in ice_fill_adv_dummy_packet()
5194 ptr = (u16 *)&lkups[i].m_u; in ice_add_adv_rule()
5195 for (j = 0; j < sizeof(lkups->m_u) / sizeof(u16); j++) in ice_add_adv_rule()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_fs_ethtool.c222 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in parse_tcp4()
235 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.udp_ip4_spec; in parse_udp4()
248 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in parse_ip4()
263 struct ethtool_usrip6_spec *l3_mask = &fs->m_u.usr_ip6_spec; in parse_ip6()
278 struct ethtool_tcpip6_spec *l4_mask = &fs->m_u.tcp_ip6_spec; in parse_tcp6()
291 struct ethtool_tcpip6_spec *l4_mask = &fs->m_u.udp_ip6_spec; in parse_udp6()
304 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in parse_ether()
552 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in validate_ethter()
566 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in validate_tcpudp4()
586 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in validate_ip4()
[all …]
/linux/drivers/net/ethernet/sfc/falcon/
A Dethtool.c790 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_get_class_rule()
792 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_get_class_rule()
794 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in ef4_ethtool_get_class_rule()
796 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in ef4_ethtool_get_class_rule()
798 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_get_class_rule()
1026 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_set_class_rule()
1028 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_set_class_rule()
1030 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in ef4_ethtool_set_class_rule()
1032 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in ef4_ethtool_set_class_rule()
1034 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_set_class_rule()
/linux/drivers/net/ethernet/sfc/
A Dethtool_common.c648 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_get_class_rule()
650 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_get_class_rule()
652 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in efx_ethtool_get_class_rule()
654 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in efx_ethtool_get_class_rule()
656 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule()
920 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
922 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
924 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in efx_ethtool_set_class_rule()
926 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in efx_ethtool_set_class_rule()
929 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule()
/linux/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_ethtool.c1661 fs->m_u.tcp_ip6_spec.psrc = cpu_to_be16(dfs->mask.fport); in cxgb4_fill_filter_rule()
1666 memcpy(&fs->m_u.tcp_ip6_spec.ip6src, &dfs->mask.fip[0], in cxgb4_fill_filter_rule()
1667 sizeof(fs->m_u.tcp_ip6_spec.ip6src)); in cxgb4_fill_filter_rule()
1670 memcpy(&fs->m_u.tcp_ip6_spec.ip6dst, &dfs->mask.lip[0], in cxgb4_fill_filter_rule()
1671 sizeof(fs->m_u.tcp_ip6_spec.ip6dst)); in cxgb4_fill_filter_rule()
1673 fs->m_u.tcp_ip6_spec.tclass = dfs->mask.tos; in cxgb4_fill_filter_rule()
1681 memcpy(&fs->m_u.tcp_ip4_spec.ip4src, &dfs->mask.fip[0], in cxgb4_fill_filter_rule()
1682 sizeof(fs->m_u.tcp_ip4_spec.ip4src)); in cxgb4_fill_filter_rule()
1685 memcpy(&fs->m_u.tcp_ip4_spec.ip4dst, &dfs->mask.lip[0], in cxgb4_fill_filter_rule()
1686 sizeof(fs->m_u.tcp_ip4_spec.ip4dst)); in cxgb4_fill_filter_rule()
[all …]
/linux/drivers/net/ethernet/cisco/enic/
A Denic_ethtool.c444 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule()
447 fsp->m_u.tcp_ip4_spec.ip4dst = (__u32)~0; in enic_grxclsrule()
450 fsp->m_u.tcp_ip4_spec.psrc = (__u16)~0; in enic_grxclsrule()
453 fsp->m_u.tcp_ip4_spec.pdst = (__u16)~0; in enic_grxclsrule()
/linux/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-ethtool.c497 err = dpaa2_eth_prep_eth_rule(&fs->h_u.ether_spec, &fs->m_u.ether_spec, in dpaa2_eth_prep_cls_rule()
502 &fs->m_u.usr_ip4_spec, key, mask, fields); in dpaa2_eth_prep_cls_rule()
505 err = dpaa2_eth_prep_l4_rule(&fs->h_u.tcp_ip4_spec, &fs->m_u.tcp_ip4_spec, in dpaa2_eth_prep_cls_rule()
509 err = dpaa2_eth_prep_l4_rule(&fs->h_u.udp_ip4_spec, &fs->m_u.udp_ip4_spec, in dpaa2_eth_prep_cls_rule()
514 &fs->m_u.sctp_ip4_spec, key, mask, in dpaa2_eth_prep_cls_rule()
/linux/drivers/net/ethernet/freescale/enetc/
A Denetc_ethtool.c352 l4ip4_m = &fs->m_u.tcp_ip4_spec; in enetc_set_cls_entry()
356 l4ip4_m = &fs->m_u.udp_ip4_spec; in enetc_set_cls_entry()
360 l4ip4_m = &fs->m_u.sctp_ip4_spec; in enetc_set_cls_entry()
377 l3ip4_m = &fs->m_u.usr_ip4_spec; in enetc_set_cls_entry()
390 eth_m = &fs->m_u.ether_spec; in enetc_set_cls_entry()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_flows.c490 struct ethtool_usrip4_spec *ipv4_usr_mask = &fsp->m_u.usr_ip4_spec; in otx2_prepare_ipv4_flow()
492 struct ethtool_tcpip4_spec *ipv4_l4_mask = &fsp->m_u.tcp_ip4_spec; in otx2_prepare_ipv4_flow()
495 struct ethtool_ah_espip4_spec *ah_esp_mask = &fsp->m_u.ah_ip4_spec; in otx2_prepare_ipv4_flow()
649 struct ethtool_usrip6_spec *ipv6_usr_mask = &fsp->m_u.usr_ip6_spec; in otx2_prepare_ipv6_flow()
651 struct ethtool_tcpip6_spec *ipv6_l4_mask = &fsp->m_u.tcp_ip6_spec; in otx2_prepare_ipv6_flow()
654 struct ethtool_ah_espip6_spec *ah_esp_mask = &fsp->m_u.ah_ip6_spec; in otx2_prepare_ipv6_flow()
769 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_prepare_flow_request()
876 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_is_flow_rule_dmacfilter()
/linux/drivers/net/ethernet/freescale/
A Dgianfar_ethtool.c1104 &rule->m_u.tcp_ip4_spec, tab); in gfar_convert_to_filer()
1110 &rule->m_u.udp_ip4_spec, tab); in gfar_convert_to_filer()
1117 (struct ethtool_tcpip4_spec *)&rule->m_u, in gfar_convert_to_filer()
1124 (struct ethtool_usrip4_spec *) &rule->m_u, in gfar_convert_to_filer()
1131 (struct ethhdr *) &rule->m_u, tab); in gfar_convert_to_filer()
1261 for (i = 0; i < sizeof(flow->m_u); i++) in gfar_invert_masks()
1262 flow->m_u.hdata[i] ^= 0xFF; in gfar_invert_masks()
/linux/drivers/net/ethernet/aquantia/atlantic/
A Daq_filters.c59 memcmp(&fsp1->m_u, &fsp2->m_u, sizeof(fsp2->m_u)) || in aq_match_filter()
142 fsp->m_u.ether_spec.h_proto == 0U) { in aq_check_approve_fl2()
/linux/drivers/net/ethernet/intel/i40e/
A Di40e_ethtool.c3265 fsp->m_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
3334 fsp->m_u.tcp_ip6_spec.ip6src[0] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3335 fsp->m_u.tcp_ip6_spec.ip6src[1] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3348 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3351 fsp->m_u.tcp_ip4_spec.ip4dst = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3354 fsp->m_u.tcp_ip4_spec.psrc = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
3357 fsp->m_u.tcp_ip4_spec.pdst = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
4235 tcp_ip4_spec = &fsp->m_u.tcp_ip4_spec; in i40e_check_fdir_input_set()
4279 tcp_ip6_spec = &fsp->m_u.tcp_ip6_spec; in i40e_check_fdir_input_set()
4322 usr_ip4_spec = &fsp->m_u.usr_ip4_spec; in i40e_check_fdir_input_set()
[all …]
/linux/drivers/net/dsa/
A Dbcm_sf2_cfp.c614 ret |= memcmp(&rule->fs.m_u, &fs->m_u, fs_size); in bcm_sf2_cfp_rule_cmp()
1055 for (i = 0; i < sizeof(flow->m_u); i++) in bcm_sf2_invert_masks()
1056 flow->m_u.hdata[i] ^= 0xff; in bcm_sf2_invert_masks()
/linux/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_ethtool.c2538 fsp->m_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry()
2545 fsp->m_u.tcp_ip4_spec.psrc = mask->formatted.src_port; in ixgbe_get_ethtool_fdir_entry()
2547 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2549 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2551 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2748 if (!fsp->m_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type()
2832 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
2834 mask.formatted.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
2836 mask.formatted.src_port = fsp->m_u.tcp_ip4_spec.psrc; in ixgbe_add_ethtool_fdir_entry()
2838 mask.formatted.dst_port = fsp->m_u.tcp_ip4_spec.pdst; in ixgbe_add_ethtool_fdir_entry()
/linux/drivers/net/ethernet/intel/igc/
A Digc_ethtool.c965 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igc_ethtool_get_nfc_rule()
977 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igc_ethtool_get_nfc_rule()
983 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igc_ethtool_get_nfc_rule()
1209 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igc_ethtool_init_nfc_rule()
1217 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_source)) { in igc_ethtool_init_nfc_rule()
1223 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) { in igc_ethtool_init_nfc_rule()
/linux/drivers/net/ethernet/broadcom/genet/
A Dbcmgenet.c634 &fs->m_u.ether_spec.h_dest, in bcmgenet_hfb_create_rxnfc_filter()
638 &fs->m_u.ether_spec.h_source, in bcmgenet_hfb_create_rxnfc_filter()
642 &fs->m_u.ether_spec.h_proto, in bcmgenet_hfb_create_rxnfc_filter()
654 &fs->m_u.usr_ip4_spec.tos, in bcmgenet_hfb_create_rxnfc_filter()
658 &fs->m_u.usr_ip4_spec.proto, in bcmgenet_hfb_create_rxnfc_filter()
662 &fs->m_u.usr_ip4_spec.ip4src, in bcmgenet_hfb_create_rxnfc_filter()
666 &fs->m_u.usr_ip4_spec.ip4dst, in bcmgenet_hfb_create_rxnfc_filter()
668 if (!fs->m_u.usr_ip4_spec.l4_4_bytes) in bcmgenet_hfb_create_rxnfc_filter()
681 &fs->m_u.usr_ip4_spec.l4_4_bytes, in bcmgenet_hfb_create_rxnfc_filter()
1398 l4_mask = &cmd->fs.m_u.usr_ip4_spec; in bcmgenet_validate_flow()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
A Den_ethtool.c1361 if (cmd->fs.m_u.tcp_ip4_spec.tos) in mlx4_en_validate_flow()
1363 l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in mlx4_en_validate_flow()
1372 l3_mask = &cmd->fs.m_u.usr_ip4_spec; in mlx4_en_validate_flow()
1381 eth_mask = &cmd->fs.m_u.ether_spec; in mlx4_en_validate_flow()
1468 struct ethtool_usrip4_spec *l3_mask = &cmd->fs.m_u.usr_ip4_spec; in add_ip_rule()
1507 struct ethtool_tcpip4_spec *l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in add_tcp_udp_rule()
/linux/include/uapi/linux/
A Dethtool.h1041 union ethtool_flow_union m_u; member
1235 } h_u, m_u; member
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A Dhclge_main.c6526 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple()
6531 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple()
6556 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple()
6561 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple()
7157 eth_zero_addr(fs->m_u.ether_spec.h_dest); in hclge_fd_get_ext_info()
7159 ether_addr_copy(fs->m_u.ether_spec.h_dest, in hclge_fd_get_ext_info()
7197 &fs->m_u.tcp_ip4_spec); in hclge_get_fd_rule_info()
7201 &fs->m_u.usr_ip4_spec); in hclge_get_fd_rule_info()
7207 &fs->m_u.tcp_ip6_spec); in hclge_get_fd_rule_info()
7211 &fs->m_u.usr_ip6_spec); in hclge_get_fd_rule_info()
[all …]
/linux/net/ethtool/
A Dioctl.c864 .m_u = crxnfc.fs.m_u, in ethtool_rxnfc_copy_from_compat()
903 .m_u = rxnfc->fs.m_u, in ethtool_rxnfc_copy_to_compat()
3122 ether_m_spec = &fs->m_u.ether_spec; in ethtool_rx_flow_rule_create()
3149 v4_m_spec = &fs->m_u.tcp_ip4_spec; in ethtool_rx_flow_rule_create()
3198 v6_m_spec = &fs->m_u.tcp_ip6_spec; in ethtool_rx_flow_rule_create()
/linux/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt_ethtool.c1027 fs->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(~0); in bnxt_grxclsrule()
1030 fs->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(~0); in bnxt_grxclsrule()
1033 fs->m_u.tcp_ip4_spec.psrc = cpu_to_be16(~0); in bnxt_grxclsrule()
1036 fs->m_u.tcp_ip4_spec.pdst = cpu_to_be16(~0); in bnxt_grxclsrule()
1052 fs->m_u.tcp_ip6_spec.ip6src[i] = cpu_to_be32(~0); in bnxt_grxclsrule()
1053 fs->m_u.tcp_ip6_spec.ip6dst[i] = cpu_to_be32(~0); in bnxt_grxclsrule()
1056 fs->m_u.tcp_ip6_spec.psrc = cpu_to_be16(~0); in bnxt_grxclsrule()
1059 fs->m_u.tcp_ip6_spec.pdst = cpu_to_be16(~0); in bnxt_grxclsrule()

Completed in 135 milliseconds

12