Searched refs:h_u (Results 1 - 25 of 37) sorted by relevance

12

/linux-master/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c1083 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip;
1084 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip;
1085 fsp->h_u.tcp_ip4_spec.psrc = rule->ip_data.src_port;
1086 fsp->h_u.tcp_ip4_spec.pdst = rule->ip_data.dst_port;
1087 fsp->h_u.tcp_ip4_spec.tos = rule->ip_data.tos;
1096 fsp->h_u.ah_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip;
1097 fsp->h_u.ah_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip;
1098 fsp->h_u.ah_ip4_spec.spi = rule->ip_data.spi;
1099 fsp->h_u.ah_ip4_spec.tos = rule->ip_data.tos;
1106 fsp->h_u
[all...]
/linux-master/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c141 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4;
142 fsp->h_u.usr_ip4_spec.proto = 0;
143 fsp->h_u.usr_ip4_spec.l4_4_bytes = rule->ip.v4.l4_header;
144 fsp->h_u.usr_ip4_spec.tos = rule->ip.v4.tos;
145 fsp->h_u.usr_ip4_spec.ip4src = rule->ip.v4.src_ip;
146 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip.v4.dst_ip;
157 fsp->h_u.tcp_ip4_spec.psrc = rule->ip.v4.src_port;
158 fsp->h_u.tcp_ip4_spec.pdst = rule->ip.v4.dst_port;
159 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip.v4.src_ip;
160 fsp->h_u
[all...]
H A Dice_tc_lib.c193 list[i].h_u.tnl_hdr.vni = cpu_to_be32(tenant_id);
198 list[i].h_u.nvgre_hdr.tni_flow = fltr->tenant_id;
205 list[i].h_u.gtp_hdr.teid = fltr->tenant_id;
217 ether_addr_copy(list[i].h_u.eth_hdr.dst_addr,
229 list[i].h_u.gtp_hdr.pdu_type =
235 list[i].h_u.gtp_hdr.qfi = fltr->gtp_pdu_info_keys.qfi;
247 list[i].h_u.ipv4_hdr.src_addr = hdr->l3_key.src_ipv4;
251 list[i].h_u.ipv4_hdr.dst_addr = hdr->l3_key.dst_ipv4;
262 memcpy(&list[i].h_u.ipv6_hdr.src_addr,
270 memcpy(&list[i].h_u
[all...]
H A Dice_switch.h148 union ice_prot_hdr h_u; /* Header values */ member in union:ice_adv_lkup_elem::__anon32
/linux-master/drivers/net/ethernet/aquantia/atlantic/
H A Daq_filters.c26 switch (fsp->h_u.usr_ip4_spec.proto) {
36 switch (fsp->h_u.usr_ip6_spec.l4_proto) {
57 memcmp(&fsp1->h_u, &fsp2->h_u, sizeof(fsp2->h_u)) ||
249 (fsp->h_u.tcp_ip4_spec.tos ||
250 fsp->h_u.tcp_ip6_spec.tclass)) {
323 data->ethertype = be16_to_cpu(fsp->h_u.ether_spec.h_proto);
514 ntohl(fsp->h_u.tcp_ip4_spec.ip4src);
516 ntohl(fsp->h_u
[all...]
/linux-master/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ethtool.c1338 fs->h_u.tcp_ip4_spec.ip4src = entry->key.sip4;
1339 fs->h_u.tcp_ip4_spec.ip4dst = entry->key.dip4;
1340 fs->h_u.tcp_ip4_spec.psrc = entry->key.sport;
1341 fs->h_u.tcp_ip4_spec.pdst = entry->key.dport;
1351 fs->h_u.tcp_ip6_spec.ip6src[i] = entry->key.sip6[i];
1352 fs->h_u.tcp_ip6_spec.ip6dst[i] = entry->key.dip6[i];
1356 fs->h_u.tcp_ip6_spec.psrc = entry->key.sport;
1357 fs->h_u.tcp_ip6_spec.pdst = entry->key.dport;
1362 fs->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4;
1363 fs->h_u
[all...]
/linux-master/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp.c425 &fs->h_u.ether_spec.h_dest,
427 sizeof(fs->h_u.ether_spec.h_dest));
429 &fs->h_u.ether_spec.h_source,
431 sizeof(fs->h_u.ether_spec.h_source));
433 &fs->h_u.ether_spec.h_proto,
435 sizeof(fs->h_u.ether_spec.h_proto));
444 &fs->h_u.usr_ip4_spec.tos,
446 sizeof(fs->h_u.usr_ip4_spec.tos));
448 &fs->h_u.usr_ip4_spec.proto,
450 sizeof(fs->h_u
[all...]
/linux-master/drivers/net/ethernet/engleder/
H A Dtsnep_rxnfc.c115 fsp->h_u.ether_spec.h_proto = htons(rule->filter.ether_type);
180 rule->filter.ether_type = ntohs(fsp->h_u.ether_spec.h_proto);
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c236 struct ethtool_tcpip4_spec *l4_val = &fs->h_u.tcp_ip4_spec;
249 struct ethtool_tcpip4_spec *l4_val = &fs->h_u.udp_ip4_spec;
262 struct ethtool_usrip4_spec *l3_val = &fs->h_u.usr_ip4_spec;
277 struct ethtool_usrip6_spec *l3_val = &fs->h_u.usr_ip6_spec;
292 struct ethtool_tcpip6_spec *l4_val = &fs->h_u.tcp_ip6_spec;
305 struct ethtool_tcpip6_spec *l4_val = &fs->h_u.udp_ip6_spec;
318 struct ethhdr *eth_val = &fs->h_u.ether_spec;
598 fs->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4)
/linux-master/drivers/net/ethernet/sfc/
H A Dethtool_common.c648 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
650 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec;
652 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec;
654 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec;
656 struct ethhdr *mac_entry = &rule->h_u.ether_spec;
920 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
922 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec;
924 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec;
926 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec;
929 struct ethhdr *mac_entry = &rule->h_u
[all...]
/linux-master/drivers/net/ethernet/sfc/falcon/
H A Dethtool.c795 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
797 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec;
799 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec;
801 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec;
803 struct ethhdr *mac_entry = &rule->h_u.ether_spec;
1031 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
1033 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec;
1035 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec;
1037 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec;
1039 struct ethhdr *mac_entry = &rule->h_u
[all...]
/linux-master/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.c648 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
650 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec;
652 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec;
654 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec;
656 struct ethhdr *mac_entry = &rule->h_u.ether_spec;
921 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec;
923 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec;
925 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec;
927 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec;
930 struct ethhdr *mac_entry = &rule->h_u
[all...]
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c533 struct ethtool_usrip4_spec *ipv4_usr_hdr = &fsp->h_u.usr_ip4_spec;
535 struct ethtool_tcpip4_spec *ipv4_l4_hdr = &fsp->h_u.tcp_ip4_spec;
536 struct ethtool_ah_espip4_spec *ah_esp_hdr = &fsp->h_u.ah_ip4_spec;
692 struct ethtool_usrip6_spec *ipv6_usr_hdr = &fsp->h_u.usr_ip6_spec;
694 struct ethtool_tcpip6_spec *ipv6_l4_hdr = &fsp->h_u.tcp_ip6_spec;
695 struct ethtool_ah_espip6_spec *ah_esp_hdr = &fsp->h_u.ah_ip6_spec;
817 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec;
944 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec;
1070 eth_hdr = &pf_mac->flow_spec.h_u.ether_spec;
1140 eth_hdr = &flow->flow_spec.h_u
[all...]
/linux-master/drivers/net/ethernet/cisco/enic/
H A Denic_ethtool.c432 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys);
435 fsp->h_u.tcp_ip4_spec.ip4dst = flow_get_u32_dst(&n->keys);
438 fsp->h_u.tcp_ip4_spec.psrc = n->keys.ports.src;
441 fsp->h_u.tcp_ip4_spec.pdst = n->keys.ports.dst;
/linux-master/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c1378 cmd->fs.h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4 ||
1482 cmd->fs.h_u.
1487 spec_l3->ipv4.src_ip = cmd->fs.h_u.usr_ip4_spec.ip4src;
1490 spec_l3->ipv4.dst_ip = cmd->fs.h_u.usr_ip4_spec.ip4dst;
1526 cmd->fs.h_u.
1531 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src;
1532 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst;
1533 spec_l4->tcp_udp.src_port = cmd->fs.h_u.tcp_ip4_spec.psrc;
1534 spec_l4->tcp_udp.dst_port = cmd->fs.h_u.tcp_ip4_spec.pdst;
1538 cmd->fs.h_u
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_ethtool.c1666 fs->h_u.tcp_ip6_spec.psrc = cpu_to_be16(dfs->val.fport);
1668 fs->h_u.tcp_ip6_spec.pdst = cpu_to_be16(dfs->val.lport);
1670 memcpy(&fs->h_u.tcp_ip6_spec.ip6src, &dfs->val.fip[0],
1671 sizeof(fs->h_u.tcp_ip6_spec.ip6src));
1674 memcpy(&fs->h_u.tcp_ip6_spec.ip6dst, &dfs->val.lip[0],
1675 sizeof(fs->h_u.tcp_ip6_spec.ip6dst));
1678 fs->h_u.tcp_ip6_spec.tclass = dfs->val.tos;
1681 fs->h_u.tcp_ip4_spec.psrc = cpu_to_be16(dfs->val.fport);
1683 fs->h_u.tcp_ip4_spec.pdst = cpu_to_be16(dfs->val.lport);
1685 memcpy(&fs->h_u
[all...]
/linux-master/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-ethtool.c529 err = dpaa2_eth_prep_eth_rule(&fs->h_u.ether_spec, &fs->m_u.ether_spec,
533 err = dpaa2_eth_prep_uip_rule(&fs->h_u.usr_ip4_spec,
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,
545 err = dpaa2_eth_prep_l4_rule(&fs->h_u.sctp_ip4_spec,
/linux-master/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c1109 gfar_set_basic_ip(&rule->h_u.tcp_ip4_spec,
1115 gfar_set_basic_ip(&rule->h_u.udp_ip4_spec,
1122 gfar_set_basic_ip((struct ethtool_tcpip4_spec *)&rule->h_u,
1129 gfar_set_user_ip((struct ethtool_usrip4_spec *) &rule->h_u,
1136 gfar_set_ether((struct ethhdr *) &rule->h_u,
1216 if (flow->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4)
/linux-master/drivers/net/ethernet/qlogic/qede/
H A Dqede_filter.c1348 fsp->h_u.tcp_ip4_spec.psrc = fltr->tuple.src_port;
1349 fsp->h_u.tcp_ip4_spec.pdst = fltr->tuple.dst_port;
1350 fsp->h_u.tcp_ip4_spec.ip4src = fltr->tuple.src_ipv4;
1351 fsp->h_u.tcp_ip4_spec.ip4dst = fltr->tuple.dst_ipv4;
1357 fsp->h_u.tcp_ip6_spec.psrc = fltr->tuple.src_port;
1358 fsp->h_u.tcp_ip6_spec.pdst = fltr->tuple.dst_port;
1359 memcpy(&fsp->h_u.tcp_ip6_spec.ip6src,
1361 memcpy(&fsp->h_u.tcp_ip6_spec.ip6dst,
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c3387 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4;
3388 fsp->h_u.usr_ip4_spec.proto = 0;
3400 fsp->h_u.tcp_ip6_spec.psrc = rule->dst_port;
3401 fsp->h_u.tcp_ip6_spec.pdst = rule->src_port;
3402 memcpy(fsp->h_u.tcp_ip6_spec.ip6dst, rule->src_ip6,
3404 memcpy(fsp->h_u.tcp_ip6_spec.ip6src, rule->dst_ip6,
3411 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port;
3412 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port;
3413 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip;
3414 fsp->h_u
[all...]
/linux-master/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c1096 struct ethhdr *h_ether = &fs->h_u.ether_spec;
1137 fs->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4;
1139 fs->h_u.usr_ip4_spec.proto = IPPROTO_ICMP;
1141 fs->h_u.usr_ip4_spec.proto = IPPROTO_RAW;
1151 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src;
1153 fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst;
1157 fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src;
1159 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst;
1167 fs->h_u.usr_ip6_spec.l4_proto = IPPROTO_ICMPV6;
1169 fs->h_u
[all...]
/linux-master/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c615 &fs->h_u.ether_spec.h_dest,
617 sizeof(fs->h_u.ether_spec.h_dest));
619 &fs->h_u.ether_spec.h_source,
621 sizeof(fs->h_u.ether_spec.h_source));
623 &fs->h_u.ether_spec.h_proto,
625 sizeof(fs->h_u.ether_spec.h_proto));
635 &fs->h_u.usr_ip4_spec.tos,
637 sizeof(fs->h_u.usr_ip4_spec.tos));
639 &fs->h_u.usr_ip4_spec.proto,
641 sizeof(fs->h_u
[all...]
/linux-master/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c529 l4ip4_h = &fs->h_u.tcp_ip4_spec;
533 l4ip4_h = &fs->h_u.udp_ip4_spec;
537 l4ip4_h = &fs->h_u.sctp_ip4_spec;
554 l3ip4_h = &fs->h_u.usr_ip4_spec;
567 eth_h = &fs->h_u.ether_spec;
/linux-master/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c2570 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4;
2571 fsp->h_u.usr_ip4_spec.proto = 0;
2578 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port;
2580 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port;
2582 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0];
2584 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0];
2780 switch (fsp->h_u.usr_ip4_spec.proto) {
2874 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src;
2876 input->filter.formatted.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst;
2878 input->filter.formatted.src_port = fsp->h_u
[all...]
/linux-master/drivers/net/ethernet/intel/igc/
H A Digc_ethtool.c978 fsp->h_u.ether_spec.h_proto = htons(rule->filter.etype);
995 ether_addr_copy(fsp->h_u.ether_spec.h_dest,
1001 ether_addr_copy(fsp->h_u.ether_spec.h_source,
1231 rule->filter.etype = ntohs(fsp->h_u.ether_spec.h_proto);
1241 fsp->h_u.ether_spec.h_source);
1247 fsp->h_u.ether_spec.h_dest);

Completed in 290 milliseconds

12