/linux-master/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_ethtool.c | 1076 memset(&fsp->m_u, 0, sizeof(fsp->m_u)); 1088 fsp->m_u.tcp_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; 1089 fsp->m_u.tcp_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; 1090 fsp->m_u.tcp_ip4_spec.psrc = rule->ip_mask.src_port; 1091 fsp->m_u.tcp_ip4_spec.pdst = rule->ip_mask.dst_port; 1092 fsp->m_u.tcp_ip4_spec.tos = rule->ip_mask.tos; 1100 fsp->m_u.ah_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; 1101 fsp->m_u.ah_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; 1102 fsp->m_u [all...] |
/linux-master/drivers/net/ethernet/intel/ice/ |
H A D | ice_ethtool_fdir.c | 136 memset(&fsp->m_u, 0, sizeof(fsp->m_u)); 147 fsp->m_u.usr_ip4_spec.ip4src = rule->mask.v4.src_ip; 148 fsp->m_u.usr_ip4_spec.ip4dst = rule->mask.v4.dst_ip; 149 fsp->m_u.usr_ip4_spec.ip_ver = 0xFF; 150 fsp->m_u.usr_ip4_spec.proto = 0; 151 fsp->m_u.usr_ip4_spec.l4_4_bytes = rule->mask.v4.l4_header; 152 fsp->m_u.usr_ip4_spec.tos = rule->mask.v4.tos; 161 fsp->m_u.tcp_ip4_spec.psrc = rule->mask.v4.src_port; 162 fsp->m_u [all...] |
H A D | ice_tc_lib.c | 194 memcpy(&list[i].m_u.tnl_hdr.vni, "\xff\xff\xff\x00", 4); 199 memcpy(&list[i].m_u.nvgre_hdr.tni_flow, 206 memcpy(&list[i].m_u.gtp_hdr.teid, 219 ether_addr_copy(list[i].m_u.eth_hdr.dst_addr, 231 memcpy(&list[i].m_u.gtp_hdr.pdu_type, "\xf0", 1); 236 memcpy(&list[i].m_u.gtp_hdr.qfi, "\x3f", 1); 248 list[i].m_u.ipv4_hdr.src_addr = hdr->l3_mask.src_ipv4; 252 list[i].m_u.ipv4_hdr.dst_addr = hdr->l3_mask.dst_ipv4; 265 memcpy(&list[i].m_u.ipv6_hdr.src_addr, 273 memcpy(&list[i].m_u [all...] |
H A D | ice_switch.h | 153 union ice_prot_hdr m_u; /* Mask of header values to match */ member in union:ice_adv_lkup_elem::__anon33
|
/linux-master/drivers/net/ethernet/engleder/ |
H A D | tsnep_rxnfc.c | 116 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; 212 !is_zero_ether_addr(fsp->m_u.ether_spec.h_dest) || 213 !is_zero_ether_addr(fsp->m_u.ether_spec.h_source) || 214 fsp->m_u.ether_spec.h_proto != ETHER_TYPE_FULL_MASK) {
|
/linux-master/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_ethtool.c | 1342 fs->m_u.tcp_ip4_spec.ip4src = entry->msk.sip4; 1343 fs->m_u.tcp_ip4_spec.ip4dst = entry->msk.dip4; 1344 fs->m_u.tcp_ip4_spec.psrc = entry->msk.sport; 1345 fs->m_u.tcp_ip4_spec.pdst = entry->msk.dport; 1353 fs->m_u.tcp_ip6_spec.ip6src[i] = entry->msk.sip6[i]; 1354 fs->m_u.tcp_ip6_spec.ip6dst[i] = entry->msk.dip6[i]; 1358 fs->m_u.tcp_ip6_spec.psrc = entry->msk.sport; 1359 fs->m_u.tcp_ip6_spec.pdst = entry->msk.dport; 1366 fs->m_u.usr_ip4_spec.ip4src = entry->msk.sip4; 1367 fs->m_u [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs_ethtool.c | 235 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; 248 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.udp_ip4_spec; 261 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; 276 struct ethtool_usrip6_spec *l3_mask = &fs->m_u.usr_ip6_spec; 291 struct ethtool_tcpip6_spec *l4_mask = &fs->m_u.tcp_ip6_spec; 304 struct ethtool_tcpip6_spec *l4_mask = &fs->m_u.udp_ip6_spec; 317 struct ethhdr *eth_mask = &fs->m_u.ether_spec; 560 struct ethhdr *eth_mask = &fs->m_u.ether_spec; 574 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; 594 struct ethtool_usrip4_spec *l3_mask = &fs->m_u [all...] |
/linux-master/drivers/net/ethernet/broadcom/asp2/ |
H A D | bcmasp.c | 426 &fs->m_u.ether_spec.h_dest, 430 &fs->m_u.ether_spec.h_source, 434 &fs->m_u.ether_spec.h_proto, 445 &fs->m_u.usr_ip4_spec.tos, 449 &fs->m_u.usr_ip4_spec.proto, 453 &fs->m_u.usr_ip4_spec.ip4src, 457 &fs->m_u.usr_ip4_spec.ip4dst, 459 if (!fs->m_u.usr_ip4_spec.l4_4_bytes) 470 &fs->m_u.usr_ip4_spec.l4_4_bytes, 478 &fs->m_u [all...] |
/linux-master/drivers/net/ethernet/sfc/ |
H A D | ethtool_common.c | 649 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; 651 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; 653 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; 655 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; 657 struct ethhdr *mac_mask = &rule->m_u.ether_spec; 921 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; 923 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; 925 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; 927 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; 930 struct ethhdr *mac_mask = &rule->m_u [all...] |
/linux-master/drivers/net/ethernet/sfc/falcon/ |
H A D | ethtool.c | 796 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; 798 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; 800 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; 802 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; 804 struct ethhdr *mac_mask = &rule->m_u.ether_spec; 1032 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; 1034 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; 1036 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; 1038 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; 1040 struct ethhdr *mac_mask = &rule->m_u [all...] |
/linux-master/drivers/net/ethernet/sfc/siena/ |
H A D | ethtool_common.c | 649 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; 651 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; 653 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; 655 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; 657 struct ethhdr *mac_mask = &rule->m_u.ether_spec; 922 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; 924 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; 926 struct ethtool_tcpip6_spec *ip6_mask = &rule->m_u.tcp_ip6_spec; 928 struct ethtool_usrip6_spec *uip6_mask = &rule->m_u.usr_ip6_spec; 931 struct ethhdr *mac_mask = &rule->m_u [all...] |
/linux-master/drivers/net/ethernet/cisco/enic/ |
H A D | enic_ethtool.c | 433 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; 436 fsp->m_u.tcp_ip4_spec.ip4dst = (__u32)~0; 439 fsp->m_u.tcp_ip4_spec.psrc = (__u16)~0; 442 fsp->m_u.tcp_ip4_spec.pdst = (__u16)~0;
|
/linux-master/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_ethtool.c | 1667 fs->m_u.tcp_ip6_spec.psrc = cpu_to_be16(dfs->mask.fport); 1669 fs->m_u.tcp_ip6_spec.pdst = cpu_to_be16(dfs->mask.lport); 1672 memcpy(&fs->m_u.tcp_ip6_spec.ip6src, &dfs->mask.fip[0], 1673 sizeof(fs->m_u.tcp_ip6_spec.ip6src)); 1676 memcpy(&fs->m_u.tcp_ip6_spec.ip6dst, &dfs->mask.lip[0], 1677 sizeof(fs->m_u.tcp_ip6_spec.ip6dst)); 1679 fs->m_u.tcp_ip6_spec.tclass = dfs->mask.tos; 1682 fs->m_u.tcp_ip4_spec.psrc = cpu_to_be16(dfs->mask.fport); 1684 fs->m_u.tcp_ip4_spec.pdst = cpu_to_be16(dfs->mask.lport); 1687 memcpy(&fs->m_u [all...] |
/linux-master/drivers/net/ethernet/freescale/ |
H A D | gianfar_ethtool.c | 1110 &rule->m_u.tcp_ip4_spec, tab); 1116 &rule->m_u.udp_ip4_spec, tab); 1123 (struct ethtool_tcpip4_spec *)&rule->m_u, 1130 (struct ethtool_usrip4_spec *) &rule->m_u, 1137 (struct ethhdr *) &rule->m_u, tab); 1267 for (i = 0; i < sizeof(flow->m_u); i++) 1268 flow->m_u.hdata[i] ^= 0xFF;
|
/linux-master/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-ethtool.c | 529 err = dpaa2_eth_prep_eth_rule(&fs->h_u.ether_spec, &fs->m_u.ether_spec, 534 &fs->m_u.usr_ip4_spec, key, mask, fields); 537 err = dpaa2_eth_prep_l4_rule(&fs->h_u.tcp_ip4_spec, &fs->m_u.tcp_ip4_spec, 541 err = dpaa2_eth_prep_l4_rule(&fs->h_u.udp_ip4_spec, &fs->m_u.udp_ip4_spec, 546 &fs->m_u.sctp_ip4_spec, key, mask,
|
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_flows.c | 532 struct ethtool_usrip4_spec *ipv4_usr_mask = &fsp->m_u.usr_ip4_spec; 534 struct ethtool_tcpip4_spec *ipv4_l4_mask = &fsp->m_u.tcp_ip4_spec; 537 struct ethtool_ah_espip4_spec *ah_esp_mask = &fsp->m_u.ah_ip4_spec; 691 struct ethtool_usrip6_spec *ipv6_usr_mask = &fsp->m_u.usr_ip6_spec; 693 struct ethtool_tcpip6_spec *ipv6_l4_mask = &fsp->m_u.tcp_ip6_spec; 696 struct ethtool_ah_espip6_spec *ah_esp_mask = &fsp->m_u.ah_ip6_spec; 816 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; 943 struct ethhdr *eth_mask = &fsp->m_u.ether_spec;
|
/linux-master/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_filters.c | 59 memcmp(&fsp1->m_u, &fsp2->m_u, sizeof(fsp2->m_u)) || 142 fsp->m_u.ether_spec.h_proto == 0U) {
|
/linux-master/drivers/net/dsa/ |
H A D | bcm_sf2_cfp.c | 614 ret |= memcmp(&rule->fs.m_u, &fs->m_u, fs_size); 1055 for (i = 0; i < sizeof(flow->m_u); i++) 1056 flow->m_u.hdata[i] ^= 0xff;
|
/linux-master/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_ethtool.c | 530 l4ip4_m = &fs->m_u.tcp_ip4_spec; 534 l4ip4_m = &fs->m_u.udp_ip4_spec; 538 l4ip4_m = &fs->m_u.sctp_ip4_spec; 555 l3ip4_m = &fs->m_u.usr_ip4_spec; 568 eth_m = &fs->m_u.ether_spec;
|
/linux-master/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ethtool.c | 1097 struct ethhdr *m_ether = &fs->m_u.ether_spec; 1142 fs->m_u.usr_ip4_spec.proto = BNXT_IP_PROTO_FULL_MASK; 1152 fs->m_u.tcp_ip4_spec.ip4src = fmasks->addrs.v4addrs.src; 1154 fs->m_u.tcp_ip4_spec.ip4dst = fmasks->addrs.v4addrs.dst; 1158 fs->m_u.tcp_ip4_spec.psrc = fmasks->ports.src; 1160 fs->m_u.tcp_ip4_spec.pdst = fmasks->ports.dst; 1170 fs->m_u.usr_ip6_spec.l4_proto = BNXT_IP_PROTO_FULL_MASK; 1181 *(struct in6_addr *)&fs->m_u.tcp_ip6_spec.ip6src[0] = 1185 *(struct in6_addr *)&fs->m_u.tcp_ip6_spec.ip6dst[0] = 1190 fs->m_u [all...] |
/linux-master/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ethtool.c | 3389 fsp->m_u.usr_ip4_spec.proto = 0; 3458 fsp->m_u.tcp_ip6_spec.ip6src[0] = htonl(0xFFFFFFFF); 3459 fsp->m_u.tcp_ip6_spec.ip6src[1] = htonl(0xFFFFFFFF); 3460 fsp->m_u.tcp_ip6_spec.ip6src[2] = htonl(0xFFFFFFFF); 3461 fsp->m_u.tcp_ip6_spec.ip6src[3] = htonl(0xFFFFFFFF); 3465 fsp->m_u.tcp_ip6_spec.ip6dst[0] = htonl(0xFFFFFFFF); 3466 fsp->m_u.tcp_ip6_spec.ip6dst[1] = htonl(0xFFFFFFFF); 3467 fsp->m_u.tcp_ip6_spec.ip6dst[2] = htonl(0xFFFFFFFF); 3468 fsp->m_u.tcp_ip6_spec.ip6dst[3] = htonl(0xFFFFFFFF); 3472 fsp->m_u [all...] |
/linux-master/drivers/net/ethernet/broadcom/genet/ |
H A D | bcmgenet.c | 616 &fs->m_u.ether_spec.h_dest, 620 &fs->m_u.ether_spec.h_source, 624 &fs->m_u.ether_spec.h_proto, 636 &fs->m_u.usr_ip4_spec.tos, 640 &fs->m_u.usr_ip4_spec.proto, 644 &fs->m_u.usr_ip4_spec.ip4src, 648 &fs->m_u.usr_ip4_spec.ip4dst, 650 if (!fs->m_u.usr_ip4_spec.l4_4_bytes) 663 &fs->m_u.usr_ip4_spec.l4_4_bytes, 1376 l4_mask = &cmd->fs.m_u [all...] |
/linux-master/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ethtool.c | 2572 fsp->m_u.usr_ip4_spec.proto = 0; 2579 fsp->m_u.tcp_ip4_spec.psrc = mask->formatted.src_port; 2581 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; 2583 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; 2585 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; 2791 if (!fsp->m_u.usr_ip4_spec.proto) { 2875 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; 2877 mask.formatted.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; 2879 mask.formatted.src_port = fsp->m_u.tcp_ip4_spec.psrc; 2881 mask.formatted.dst_port = fsp->m_u [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_ethtool.c | 1365 if (cmd->fs.m_u.tcp_ip4_spec.tos) 1367 l4_mask = &cmd->fs.m_u.tcp_ip4_spec; 1376 l3_mask = &cmd->fs.m_u.usr_ip4_spec; 1385 eth_mask = &cmd->fs.m_u.ether_spec; 1472 struct ethtool_usrip4_spec *l3_mask = &cmd->fs.m_u.usr_ip4_spec; 1511 struct ethtool_tcpip4_spec *l4_mask = &cmd->fs.m_u.tcp_ip4_spec;
|
/linux-master/drivers/net/ethernet/intel/igc/ |
H A D | igc_ethtool.c | 979 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; 997 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); 1003 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); 1230 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { 1238 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_source)) { 1244 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) {
|