Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/net/ethernet/intel/iavf/
Diavf_ethtool.c1079 memset(&fsp->m_u, 0, sizeof(fsp->m_u)); in iavf_get_ethtool_fdir_entry()
1091 fsp->m_u.tcp_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
1092 fsp->m_u.tcp_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
1093 fsp->m_u.tcp_ip4_spec.psrc = rule->ip_mask.src_port; in iavf_get_ethtool_fdir_entry()
1094 fsp->m_u.tcp_ip4_spec.pdst = rule->ip_mask.dst_port; in iavf_get_ethtool_fdir_entry()
1095 fsp->m_u.tcp_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry()
1103 fsp->m_u.ah_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
1104 fsp->m_u.ah_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
1105 fsp->m_u.ah_ip4_spec.spi = rule->ip_mask.spi; in iavf_get_ethtool_fdir_entry()
1106 fsp->m_u.ah_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry()
[all …]
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_ethtool_fdir.c136 memset(&fsp->m_u, 0, sizeof(fsp->m_u)); in ice_get_ethtool_fdir_entry()
147 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.ip4dst = rule->mask.v4.dst_ip; in ice_get_ethtool_fdir_entry()
149 fsp->m_u.usr_ip4_spec.ip_ver = 0xFF; in ice_get_ethtool_fdir_entry()
150 fsp->m_u.usr_ip4_spec.proto = 0; in ice_get_ethtool_fdir_entry()
151 fsp->m_u.usr_ip4_spec.l4_4_bytes = rule->mask.v4.l4_header; in ice_get_ethtool_fdir_entry()
152 fsp->m_u.usr_ip4_spec.tos = rule->mask.v4.tos; in ice_get_ethtool_fdir_entry()
161 fsp->m_u.tcp_ip4_spec.psrc = rule->mask.v4.src_port; in ice_get_ethtool_fdir_entry()
162 fsp->m_u.tcp_ip4_spec.pdst = rule->mask.v4.dst_port; in ice_get_ethtool_fdir_entry()
163 fsp->m_u.tcp_ip4_spec.ip4src = rule->mask.v4.src_ip; in ice_get_ethtool_fdir_entry()
[all …]
Dice_tc_lib.c192 memcpy(&list[i].m_u.tnl_hdr.vni, "\xff\xff\xff\x00", 4); in ice_tc_fill_tunnel_outer()
197 memcpy(&list[i].m_u.nvgre_hdr.tni_flow, in ice_tc_fill_tunnel_outer()
204 memcpy(&list[i].m_u.gtp_hdr.teid, in ice_tc_fill_tunnel_outer()
217 ether_addr_copy(list[i].m_u.eth_hdr.dst_addr, in ice_tc_fill_tunnel_outer()
229 memcpy(&list[i].m_u.gtp_hdr.pdu_type, "\xf0", 1); in ice_tc_fill_tunnel_outer()
234 memcpy(&list[i].m_u.gtp_hdr.qfi, "\x3f", 1); in ice_tc_fill_tunnel_outer()
246 list[i].m_u.ipv4_hdr.src_addr = hdr->l3_mask.src_ipv4; in ice_tc_fill_tunnel_outer()
250 list[i].m_u.ipv4_hdr.dst_addr = hdr->l3_mask.dst_ipv4; in ice_tc_fill_tunnel_outer()
263 memcpy(&list[i].m_u.ipv6_hdr.src_addr, in ice_tc_fill_tunnel_outer()
271 memcpy(&list[i].m_u.ipv6_hdr.dst_addr, in ice_tc_fill_tunnel_outer()
[all …]
Dice_eswitch_br.c116 list[1].m_u.vlan_hdr.vlan = cpu_to_be16(0xFFFF); in ice_eswitch_br_add_vlan_lkup()
157 eth_broadcast_addr(list[0].m_u.eth_hdr.dst_addr); in ice_eswitch_br_fwd_rule_create()
203 eth_broadcast_addr(list[0].m_u.eth_hdr.src_addr); in ice_eswitch_br_guard_rule_create()
/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()
248 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.udp_ip4_spec; in parse_udp4()
261 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in parse_ip4()
276 struct ethtool_usrip6_spec *l3_mask = &fs->m_u.usr_ip6_spec; in parse_ip6()
291 struct ethtool_tcpip6_spec *l4_mask = &fs->m_u.tcp_ip6_spec; in parse_tcp6()
304 struct ethtool_tcpip6_spec *l4_mask = &fs->m_u.udp_ip6_spec; in parse_udp6()
317 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in parse_ether()
560 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in validate_ethter()
574 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in validate_tcpudp4()
594 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in validate_ip4()
[all …]
/linux-6.6.21/drivers/net/ethernet/broadcom/asp2/
Dbcmasp.c409 &fs->m_u.ether_spec.h_dest, in bcmasp_netfilt_wr_to_hw()
413 &fs->m_u.ether_spec.h_source, in bcmasp_netfilt_wr_to_hw()
417 &fs->m_u.ether_spec.h_proto, in bcmasp_netfilt_wr_to_hw()
428 &fs->m_u.usr_ip4_spec.tos, in bcmasp_netfilt_wr_to_hw()
432 &fs->m_u.usr_ip4_spec.proto, in bcmasp_netfilt_wr_to_hw()
436 &fs->m_u.usr_ip4_spec.ip4src, in bcmasp_netfilt_wr_to_hw()
440 &fs->m_u.usr_ip4_spec.ip4dst, in bcmasp_netfilt_wr_to_hw()
442 if (!fs->m_u.usr_ip4_spec.l4_4_bytes) in bcmasp_netfilt_wr_to_hw()
453 &fs->m_u.usr_ip4_spec.l4_4_bytes, in bcmasp_netfilt_wr_to_hw()
461 &fs->m_u.tcp_ip4_spec, offset); in bcmasp_netfilt_wr_to_hw()
[all …]
/linux-6.6.21/drivers/net/ethernet/engleder/
Dtsnep_rxnfc.c116 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in tsnep_rxnfc_get_rule()
212 !is_zero_ether_addr(fsp->m_u.ether_spec.h_dest) || in tsnep_rxnfc_add_rule()
213 !is_zero_ether_addr(fsp->m_u.ether_spec.h_source) || in tsnep_rxnfc_add_rule()
214 fsp->m_u.ether_spec.h_proto != ETHER_TYPE_FULL_MASK) { in tsnep_rxnfc_add_rule()
/linux-6.6.21/drivers/net/ethernet/sfc/siena/
Dethtool_common.c649 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_get_class_rule()
651 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_get_class_rule()
653 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in efx_ethtool_get_class_rule()
655 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in efx_ethtool_get_class_rule()
657 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule()
922 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
924 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
926 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in efx_ethtool_set_class_rule()
928 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in efx_ethtool_set_class_rule()
931 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule()
/linux-6.6.21/drivers/net/ethernet/sfc/
Dethtool_common.c649 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_get_class_rule()
651 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_get_class_rule()
653 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in efx_ethtool_get_class_rule()
655 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in efx_ethtool_get_class_rule()
657 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule()
921 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
923 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
925 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in efx_ethtool_set_class_rule()
927 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in efx_ethtool_set_class_rule()
930 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule()
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/
Dethtool.c796 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_get_class_rule()
798 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_get_class_rule()
800 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in ef4_ethtool_get_class_rule()
802 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in ef4_ethtool_get_class_rule()
804 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_get_class_rule()
1032 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_set_class_rule()
1034 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_set_class_rule()
1036 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; in ef4_ethtool_set_class_rule()
1038 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; in ef4_ethtool_set_class_rule()
1040 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_set_class_rule()
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c1665 fs->m_u.tcp_ip6_spec.psrc = cpu_to_be16(dfs->mask.fport); in cxgb4_fill_filter_rule()
1667 fs->m_u.tcp_ip6_spec.pdst = cpu_to_be16(dfs->mask.lport); in cxgb4_fill_filter_rule()
1670 memcpy(&fs->m_u.tcp_ip6_spec.ip6src, &dfs->mask.fip[0], in cxgb4_fill_filter_rule()
1671 sizeof(fs->m_u.tcp_ip6_spec.ip6src)); in cxgb4_fill_filter_rule()
1674 memcpy(&fs->m_u.tcp_ip6_spec.ip6dst, &dfs->mask.lip[0], in cxgb4_fill_filter_rule()
1675 sizeof(fs->m_u.tcp_ip6_spec.ip6dst)); in cxgb4_fill_filter_rule()
1677 fs->m_u.tcp_ip6_spec.tclass = dfs->mask.tos; in cxgb4_fill_filter_rule()
1680 fs->m_u.tcp_ip4_spec.psrc = cpu_to_be16(dfs->mask.fport); in cxgb4_fill_filter_rule()
1682 fs->m_u.tcp_ip4_spec.pdst = cpu_to_be16(dfs->mask.lport); in cxgb4_fill_filter_rule()
1685 memcpy(&fs->m_u.tcp_ip4_spec.ip4src, &dfs->mask.fip[0], in cxgb4_fill_filter_rule()
[all …]
/linux-6.6.21/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c433 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule()
436 fsp->m_u.tcp_ip4_spec.ip4dst = (__u32)~0; in enic_grxclsrule()
439 fsp->m_u.tcp_ip4_spec.psrc = (__u16)~0; in enic_grxclsrule()
442 fsp->m_u.tcp_ip4_spec.pdst = (__u16)~0; in enic_grxclsrule()
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c529 err = dpaa2_eth_prep_eth_rule(&fs->h_u.ether_spec, &fs->m_u.ether_spec, in dpaa2_eth_prep_cls_rule()
534 &fs->m_u.usr_ip4_spec, key, mask, fields); in dpaa2_eth_prep_cls_rule()
537 err = dpaa2_eth_prep_l4_rule(&fs->h_u.tcp_ip4_spec, &fs->m_u.tcp_ip4_spec, in dpaa2_eth_prep_cls_rule()
541 err = dpaa2_eth_prep_l4_rule(&fs->h_u.udp_ip4_spec, &fs->m_u.udp_ip4_spec, in dpaa2_eth_prep_cls_rule()
546 &fs->m_u.sctp_ip4_spec, key, mask, in dpaa2_eth_prep_cls_rule()
/linux-6.6.21/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1110 &rule->m_u.tcp_ip4_spec, tab); in gfar_convert_to_filer()
1116 &rule->m_u.udp_ip4_spec, tab); in gfar_convert_to_filer()
1123 (struct ethtool_tcpip4_spec *)&rule->m_u, in gfar_convert_to_filer()
1130 (struct ethtool_usrip4_spec *) &rule->m_u, in gfar_convert_to_filer()
1137 (struct ethhdr *) &rule->m_u, tab); in gfar_convert_to_filer()
1267 for (i = 0; i < sizeof(flow->m_u); i++) in gfar_invert_masks()
1268 flow->m_u.hdata[i] ^= 0xFF; in gfar_invert_masks()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c532 struct ethtool_usrip4_spec *ipv4_usr_mask = &fsp->m_u.usr_ip4_spec; in otx2_prepare_ipv4_flow()
534 struct ethtool_tcpip4_spec *ipv4_l4_mask = &fsp->m_u.tcp_ip4_spec; in otx2_prepare_ipv4_flow()
537 struct ethtool_ah_espip4_spec *ah_esp_mask = &fsp->m_u.ah_ip4_spec; in otx2_prepare_ipv4_flow()
691 struct ethtool_usrip6_spec *ipv6_usr_mask = &fsp->m_u.usr_ip6_spec; in otx2_prepare_ipv6_flow()
693 struct ethtool_tcpip6_spec *ipv6_l4_mask = &fsp->m_u.tcp_ip6_spec; in otx2_prepare_ipv6_flow()
696 struct ethtool_ah_espip6_spec *ah_esp_mask = &fsp->m_u.ah_ip6_spec; in otx2_prepare_ipv6_flow()
816 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_prepare_flow_request()
943 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_is_flow_rule_dmacfilter()
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/
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-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3380 fsp->m_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
3449 fsp->m_u.tcp_ip6_spec.ip6src[0] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3450 fsp->m_u.tcp_ip6_spec.ip6src[1] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3451 fsp->m_u.tcp_ip6_spec.ip6src[2] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3452 fsp->m_u.tcp_ip6_spec.ip6src[3] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3456 fsp->m_u.tcp_ip6_spec.ip6dst[0] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3457 fsp->m_u.tcp_ip6_spec.ip6dst[1] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3458 fsp->m_u.tcp_ip6_spec.ip6dst[2] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3459 fsp->m_u.tcp_ip6_spec.ip6dst[3] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3463 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
[all …]
/linux-6.6.21/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c530 l4ip4_m = &fs->m_u.tcp_ip4_spec; in enetc_set_cls_entry()
534 l4ip4_m = &fs->m_u.udp_ip4_spec; in enetc_set_cls_entry()
538 l4ip4_m = &fs->m_u.sctp_ip4_spec; in enetc_set_cls_entry()
555 l3ip4_m = &fs->m_u.usr_ip4_spec; in enetc_set_cls_entry()
568 eth_m = &fs->m_u.ether_spec; in enetc_set_cls_entry()
/linux-6.6.21/drivers/net/dsa/
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-6.6.21/drivers/net/ethernet/intel/igc/
Digc_ethtool.c980 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igc_ethtool_get_nfc_rule()
998 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igc_ethtool_get_nfc_rule()
1004 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igc_ethtool_get_nfc_rule()
1231 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igc_ethtool_init_nfc_rule()
1239 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_source)) { in igc_ethtool_init_nfc_rule()
1245 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) { in igc_ethtool_init_nfc_rule()
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2571 fsp->m_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry()
2578 fsp->m_u.tcp_ip4_spec.psrc = mask->formatted.src_port; in ixgbe_get_ethtool_fdir_entry()
2580 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2582 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2584 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2790 if (!fsp->m_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type()
2874 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
2876 mask.formatted.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
2878 mask.formatted.src_port = fsp->m_u.tcp_ip4_spec.psrc; in ixgbe_add_ethtool_fdir_entry()
2880 mask.formatted.dst_port = fsp->m_u.tcp_ip4_spec.pdst; in ixgbe_add_ethtool_fdir_entry()
/linux-6.6.21/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c616 &fs->m_u.ether_spec.h_dest, in bcmgenet_hfb_create_rxnfc_filter()
620 &fs->m_u.ether_spec.h_source, in bcmgenet_hfb_create_rxnfc_filter()
624 &fs->m_u.ether_spec.h_proto, in bcmgenet_hfb_create_rxnfc_filter()
636 &fs->m_u.usr_ip4_spec.tos, in bcmgenet_hfb_create_rxnfc_filter()
640 &fs->m_u.usr_ip4_spec.proto, in bcmgenet_hfb_create_rxnfc_filter()
644 &fs->m_u.usr_ip4_spec.ip4src, in bcmgenet_hfb_create_rxnfc_filter()
648 &fs->m_u.usr_ip4_spec.ip4dst, in bcmgenet_hfb_create_rxnfc_filter()
650 if (!fs->m_u.usr_ip4_spec.l4_4_bytes) in bcmgenet_hfb_create_rxnfc_filter()
663 &fs->m_u.usr_ip4_spec.l4_4_bytes, in bcmgenet_hfb_create_rxnfc_filter()
1378 l4_mask = &cmd->fs.m_u.usr_ip4_spec; in bcmgenet_validate_flow()
[all …]
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1365 if (cmd->fs.m_u.tcp_ip4_spec.tos) in mlx4_en_validate_flow()
1367 l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in mlx4_en_validate_flow()
1376 l3_mask = &cmd->fs.m_u.usr_ip4_spec; in mlx4_en_validate_flow()
1385 eth_mask = &cmd->fs.m_u.ether_spec; in mlx4_en_validate_flow()
1472 struct ethtool_usrip4_spec *l3_mask = &cmd->fs.m_u.usr_ip4_spec; in add_ip_rule()
1511 struct ethtool_tcpip4_spec *l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in add_tcp_udp_rule()
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c6163 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple()
6168 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple()
6171 rule->tuples_mask.src_port = be16_to_cpu(fs->m_u.tcp_ip4_spec.psrc); in hclge_fd_get_tcpip4_tuple()
6174 rule->tuples_mask.dst_port = be16_to_cpu(fs->m_u.tcp_ip4_spec.pdst); in hclge_fd_get_tcpip4_tuple()
6177 rule->tuples_mask.ip_tos = fs->m_u.tcp_ip4_spec.tos; in hclge_fd_get_tcpip4_tuple()
6192 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple()
6197 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple()
6200 rule->tuples_mask.ip_tos = fs->m_u.usr_ip4_spec.tos; in hclge_fd_get_ip4_tuple()
6203 rule->tuples_mask.ip_proto = fs->m_u.usr_ip4_spec.proto; in hclge_fd_get_ip4_tuple()
6214 be32_to_cpu_array(rule->tuples_mask.src_ip, fs->m_u.tcp_ip6_spec.ip6src, in hclge_fd_get_tcpip6_tuple()
[all …]
/linux-6.6.21/include/uapi/linux/
Dethtool.h1128 union ethtool_flow_union m_u; member
1322 } h_u, m_u; member

12