Home
last modified time | relevance | path

Searched refs:h_u (Results 1 – 25 of 32) sorted by relevance

12

/linux/drivers/net/ethernet/google/gve/
H A Dgve_flow_rule.c33 memset(&fsp->h_u, 0, sizeof(fsp->h_u)); in gve_fill_ethtool_flow_spec()
42 fsp->h_u.tcp_ip4_spec.ip4src = flow_rule->key.src_ip[0]; in gve_fill_ethtool_flow_spec()
43 fsp->h_u.tcp_ip4_spec.ip4dst = flow_rule->key.dst_ip[0]; in gve_fill_ethtool_flow_spec()
44 fsp->h_u.tcp_ip4_spec.psrc = flow_rule->key.src_port; in gve_fill_ethtool_flow_spec()
45 fsp->h_u.tcp_ip4_spec.pdst = flow_rule->key.dst_port; in gve_fill_ethtool_flow_spec()
46 fsp->h_u.tcp_ip4_spec.tos = flow_rule->key.tos; in gve_fill_ethtool_flow_spec()
55 fsp->h_u.ah_ip4_spec.ip4src = flow_rule->key.src_ip[0]; in gve_fill_ethtool_flow_spec()
56 fsp->h_u.ah_ip4_spec.ip4dst = flow_rule->key.dst_ip[0]; in gve_fill_ethtool_flow_spec()
57 fsp->h_u.ah_ip4_spec.spi = flow_rule->key.spi; in gve_fill_ethtool_flow_spec()
58 fsp->h_u.ah_ip4_spec.tos = flow_rule->key.tos; in gve_fill_ethtool_flow_spec()
[all …]
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c945 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
946 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
947 fsp->h_u.tcp_ip4_spec.psrc = rule->ip_data.src_port; in iavf_get_ethtool_fdir_entry()
948 fsp->h_u.tcp_ip4_spec.pdst = rule->ip_data.dst_port; in iavf_get_ethtool_fdir_entry()
949 fsp->h_u.tcp_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry()
958 fsp->h_u.ah_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
959 fsp->h_u.ah_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
960 fsp->h_u.ah_ip4_spec.spi = rule->ip_data.spi; in iavf_get_ethtool_fdir_entry()
961 fsp->h_u.ah_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry()
968 fsp->h_u.usr_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c145 fsp->h_u.ether_spec = rule->eth; in ice_get_ethtool_fdir_entry()
149 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ice_get_ethtool_fdir_entry()
150 fsp->h_u.usr_ip4_spec.proto = 0; in ice_get_ethtool_fdir_entry()
151 fsp->h_u.usr_ip4_spec.l4_4_bytes = rule->ip.v4.l4_header; in ice_get_ethtool_fdir_entry()
152 fsp->h_u.usr_ip4_spec.tos = rule->ip.v4.tos; in ice_get_ethtool_fdir_entry()
153 fsp->h_u.usr_ip4_spec.ip4src = rule->ip.v4.src_ip; in ice_get_ethtool_fdir_entry()
154 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip.v4.dst_ip; in ice_get_ethtool_fdir_entry()
165 fsp->h_u.tcp_ip4_spec.psrc = rule->ip.v4.src_port; in ice_get_ethtool_fdir_entry()
166 fsp->h_u.tcp_ip4_spec.pdst = rule->ip.v4.dst_port; in ice_get_ethtool_fdir_entry()
167 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip.v4.src_ip; in ice_get_ethtool_fdir_entry()
[all …]
H A Dice_tc_lib.c200 list[i].h_u.tnl_hdr.vni = cpu_to_be32(tenant_id); in ice_tc_fill_tunnel_outer()
205 list[i].h_u.nvgre_hdr.tni_flow = fltr->tenant_id; in ice_tc_fill_tunnel_outer()
212 list[i].h_u.gtp_hdr.teid = fltr->tenant_id; in ice_tc_fill_tunnel_outer()
224 ether_addr_copy(list[i].h_u.eth_hdr.dst_addr, in ice_tc_fill_tunnel_outer()
235 list[i].h_u.gtp_hdr.pdu_type = in ice_tc_fill_tunnel_outer()
241 list[i].h_u.gtp_hdr.qfi = fltr->gtp_pdu_info_keys.qfi; in ice_tc_fill_tunnel_outer()
251 hdr_h = &list[i].h_u.pfcp_hdr; in ice_tc_fill_tunnel_outer()
269 list[i].h_u.ipv4_hdr.src_addr = hdr->l3_key.src_ipv4; in ice_tc_fill_tunnel_outer()
273 list[i].h_u.ipv4_hdr.dst_addr = hdr->l3_key.dst_ipv4; in ice_tc_fill_tunnel_outer()
284 memcpy(&list[i].h_u.ipv6_hdr.src_addr, in ice_tc_fill_tunnel_outer()
[all …]
H A Dice_eswitch_br.c115 list[1].h_u.vlan_hdr.vlan = cpu_to_be16(vid & VLAN_VID_MASK); in ice_eswitch_br_add_vlan_lkup()
156 ether_addr_copy(list[0].h_u.eth_hdr.dst_addr, mac); in ice_eswitch_br_fwd_rule_create()
202 ether_addr_copy(list[0].h_u.eth_hdr.src_addr, mac); in ice_eswitch_br_guard_rule_create()
H A Dice_switch.h151 union ice_prot_hdr h_u; /* Header values */ member
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_filters.c26 switch (fsp->h_u.usr_ip4_spec.proto) { in aq_rule_is_approve()
36 switch (fsp->h_u.usr_ip6_spec.l4_proto) { in aq_rule_is_approve()
57 memcmp(&fsp1->h_u, &fsp2->h_u, sizeof(fsp2->h_u)) || in aq_match_filter()
249 (fsp->h_u.tcp_ip4_spec.tos || in aq_rule_is_not_support()
250 fsp->h_u.tcp_ip6_spec.tclass)) { in aq_rule_is_not_support()
323 data->ethertype = be16_to_cpu(fsp->h_u.ether_spec.h_proto); in aq_set_data_fl2()
514 ntohl(fsp->h_u.tcp_ip4_spec.ip4src); in aq_set_data_fl3l4()
516 ntohl(fsp->h_u.tcp_ip4_spec.ip4dst); in aq_set_data_fl3l4()
524 ntohl(fsp->h_u.tcp_ip6_spec.ip6dst[i]); in aq_set_data_fl3l4()
526 ntohl(fsp->h_u.tcp_ip6_spec.ip6src[i]); in aq_set_data_fl3l4()
[all …]
/linux/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_ethtool.c117 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in txgbe_get_ethtool_fdir_entry()
118 fsp->h_u.usr_ip4_spec.proto = 0; in txgbe_get_ethtool_fdir_entry()
125 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; in txgbe_get_ethtool_fdir_entry()
127 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in txgbe_get_ethtool_fdir_entry()
129 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in txgbe_get_ethtool_fdir_entry()
131 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in txgbe_get_ethtool_fdir_entry()
215 switch (fsp->h_u.usr_ip4_spec.proto) { in txgbe_flowspec_to_flow_type()
382 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in txgbe_add_ethtool_fdir_entry()
384 input->filter.formatted.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in txgbe_add_ethtool_fdir_entry()
386 input->filter.formatted.src_port = fsp->h_u.tcp_ip4_spec.psrc; in txgbe_add_ethtool_fdir_entry()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ethtool.c1338 fs->h_u.tcp_ip4_spec.ip4src = entry->key.sip4; in nfp_net_fs_to_ethtool()
1339 fs->h_u.tcp_ip4_spec.ip4dst = entry->key.dip4; in nfp_net_fs_to_ethtool()
1340 fs->h_u.tcp_ip4_spec.psrc = entry->key.sport; in nfp_net_fs_to_ethtool()
1341 fs->h_u.tcp_ip4_spec.pdst = entry->key.dport; in nfp_net_fs_to_ethtool()
1351 fs->h_u.tcp_ip6_spec.ip6src[i] = entry->key.sip6[i]; in nfp_net_fs_to_ethtool()
1352 fs->h_u.tcp_ip6_spec.ip6dst[i] = entry->key.dip6[i]; in nfp_net_fs_to_ethtool()
1356 fs->h_u.tcp_ip6_spec.psrc = entry->key.sport; in nfp_net_fs_to_ethtool()
1357 fs->h_u.tcp_ip6_spec.pdst = entry->key.dport; in nfp_net_fs_to_ethtool()
1362 fs->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in nfp_net_fs_to_ethtool()
1363 fs->h_u.usr_ip4_spec.ip4src = entry->key.sip4; in nfp_net_fs_to_ethtool()
[all …]
/linux/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp.c425 &fs->h_u.ether_spec.h_dest, in bcmasp_netfilt_wr_to_hw()
427 sizeof(fs->h_u.ether_spec.h_dest)); in bcmasp_netfilt_wr_to_hw()
429 &fs->h_u.ether_spec.h_source, in bcmasp_netfilt_wr_to_hw()
431 sizeof(fs->h_u.ether_spec.h_source)); in bcmasp_netfilt_wr_to_hw()
433 &fs->h_u.ether_spec.h_proto, in bcmasp_netfilt_wr_to_hw()
435 sizeof(fs->h_u.ether_spec.h_proto)); in bcmasp_netfilt_wr_to_hw()
444 &fs->h_u.usr_ip4_spec.tos, in bcmasp_netfilt_wr_to_hw()
446 sizeof(fs->h_u.usr_ip4_spec.tos)); in bcmasp_netfilt_wr_to_hw()
448 &fs->h_u.usr_ip4_spec.proto, in bcmasp_netfilt_wr_to_hw()
450 sizeof(fs->h_u.usr_ip4_spec.proto)); in bcmasp_netfilt_wr_to_hw()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.c642 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_get_class_rule()
644 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_get_class_rule()
646 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec; in efx_ethtool_get_class_rule()
648 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec; in efx_ethtool_get_class_rule()
650 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule()
902 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
904 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
906 struct ethtool_tcpip6_spec *ip6_entry = &rule->h_u.tcp_ip6_spec; in efx_ethtool_set_class_rule()
908 struct ethtool_usrip6_spec *uip6_entry = &rule->h_u.usr_ip6_spec; in efx_ethtool_set_class_rule()
911 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_set_class_rule()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c236 struct ethtool_tcpip4_spec *l4_val = &fs->h_u.tcp_ip4_spec; in parse_tcp4()
249 struct ethtool_tcpip4_spec *l4_val = &fs->h_u.udp_ip4_spec; in parse_udp4()
262 struct ethtool_usrip4_spec *l3_val = &fs->h_u.usr_ip4_spec; in parse_ip4()
277 struct ethtool_usrip6_spec *l3_val = &fs->h_u.usr_ip6_spec; in parse_ip6()
292 struct ethtool_tcpip6_spec *l4_val = &fs->h_u.tcp_ip6_spec; in parse_tcp6()
305 struct ethtool_tcpip6_spec *l4_val = &fs->h_u.udp_ip6_spec; in parse_udp6()
318 struct ethhdr *eth_val = &fs->h_u.ether_spec; in parse_ether()
598 fs->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) in validate_ip4()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c1359 cmd->fs.h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4 || in mlx4_en_validate_flow()
1463 cmd->fs.h_u. in add_ip_rule()
1468 spec_l3->ipv4.src_ip = cmd->fs.h_u.usr_ip4_spec.ip4src; in add_ip_rule()
1471 spec_l3->ipv4.dst_ip = cmd->fs.h_u.usr_ip4_spec.ip4dst; in add_ip_rule()
1507 cmd->fs.h_u. in add_tcp_udp_rule()
1512 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; in add_tcp_udp_rule()
1513 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; in add_tcp_udp_rule()
1514 spec_l4->tcp_udp.src_port = cmd->fs.h_u.tcp_ip4_spec.psrc; in add_tcp_udp_rule()
1515 spec_l4->tcp_udp.dst_port = cmd->fs.h_u.tcp_ip4_spec.pdst; in add_tcp_udp_rule()
1519 cmd->fs.h_u. in add_tcp_udp_rule()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_ethtool.c1661 fs->h_u.tcp_ip6_spec.psrc = cpu_to_be16(dfs->val.fport); in cxgb4_fill_filter_rule()
1663 fs->h_u.tcp_ip6_spec.pdst = cpu_to_be16(dfs->val.lport); in cxgb4_fill_filter_rule()
1665 memcpy(&fs->h_u.tcp_ip6_spec.ip6src, &dfs->val.fip[0], in cxgb4_fill_filter_rule()
1666 sizeof(fs->h_u.tcp_ip6_spec.ip6src)); in cxgb4_fill_filter_rule()
1669 memcpy(&fs->h_u.tcp_ip6_spec.ip6dst, &dfs->val.lip[0], in cxgb4_fill_filter_rule()
1670 sizeof(fs->h_u.tcp_ip6_spec.ip6dst)); in cxgb4_fill_filter_rule()
1673 fs->h_u.tcp_ip6_spec.tclass = dfs->val.tos; in cxgb4_fill_filter_rule()
1676 fs->h_u.tcp_ip4_spec.psrc = cpu_to_be16(dfs->val.fport); in cxgb4_fill_filter_rule()
1678 fs->h_u.tcp_ip4_spec.pdst = cpu_to_be16(dfs->val.lport); in cxgb4_fill_filter_rule()
1680 memcpy(&fs->h_u.tcp_ip4_spec.ip4src, &dfs->val.fip[0], in cxgb4_fill_filter_rule()
[all …]
/linux/drivers/net/ethernet/engleder/
H A Dtsnep_rxnfc.c115 fsp->h_u.ether_spec.h_proto = htons(rule->filter.ether_type); in tsnep_rxnfc_get_rule()
180 rule->filter.ether_type = ntohs(fsp->h_u.ether_spec.h_proto); in tsnep_rxnfc_init_rule()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c3381 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in i40e_get_ethtool_fdir_entry()
3382 fsp->h_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
3394 fsp->h_u.tcp_ip6_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry()
3395 fsp->h_u.tcp_ip6_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry()
3396 memcpy(fsp->h_u.tcp_ip6_spec.ip6dst, rule->src_ip6, in i40e_get_ethtool_fdir_entry()
3398 memcpy(fsp->h_u.tcp_ip6_spec.ip6src, rule->dst_ip6, in i40e_get_ethtool_fdir_entry()
3405 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry()
3406 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry()
3407 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip; in i40e_get_ethtool_fdir_entry()
3408 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip; in i40e_get_ethtool_fdir_entry()
[all …]
/linux/drivers/net/ethernet/cisco/enic/
H A Denic_ethtool.c514 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys); in enic_grxclsrule()
517 fsp->h_u.tcp_ip4_spec.ip4dst = flow_get_u32_dst(&n->keys); in enic_grxclsrule()
520 fsp->h_u.tcp_ip4_spec.psrc = n->keys.ports.src; in enic_grxclsrule()
523 fsp->h_u.tcp_ip4_spec.pdst = n->keys.ports.dst; in enic_grxclsrule()
/linux/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c1111 gfar_set_basic_ip(&rule->h_u.tcp_ip4_spec, in gfar_convert_to_filer()
1117 gfar_set_basic_ip(&rule->h_u.udp_ip4_spec, in gfar_convert_to_filer()
1124 gfar_set_basic_ip((struct ethtool_tcpip4_spec *)&rule->h_u, in gfar_convert_to_filer()
1131 gfar_set_user_ip((struct ethtool_usrip4_spec *) &rule->h_u, in gfar_convert_to_filer()
1138 gfar_set_ether((struct ethhdr *) &rule->h_u, in gfar_convert_to_filer()
1218 if (flow->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) in gfar_check_capability()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c1089 struct ethhdr *h_ether = &fs->h_u.ether_spec; in bnxt_grxclsrule()
1129 fs->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in bnxt_grxclsrule()
1130 fs->h_u.usr_ip4_spec.proto = BNXT_IP_PROTO_WILDCARD; in bnxt_grxclsrule()
1134 fs->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in bnxt_grxclsrule()
1135 fs->h_u.usr_ip4_spec.proto = IPPROTO_ICMP; in bnxt_grxclsrule()
1145 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src; in bnxt_grxclsrule()
1147 fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst; in bnxt_grxclsrule()
1151 fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule()
1153 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule()
1159 fs->h_u.usr_ip6_spec.l4_proto = BNXT_IP_PROTO_WILDCARD; in bnxt_grxclsrule()
[all …]
/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_filter.c1348 fsp->h_u.tcp_ip4_spec.psrc = fltr->tuple.src_port; in qede_get_cls_rule_entry()
1349 fsp->h_u.tcp_ip4_spec.pdst = fltr->tuple.dst_port; in qede_get_cls_rule_entry()
1350 fsp->h_u.tcp_ip4_spec.ip4src = fltr->tuple.src_ipv4; in qede_get_cls_rule_entry()
1351 fsp->h_u.tcp_ip4_spec.ip4dst = fltr->tuple.dst_ipv4; in qede_get_cls_rule_entry()
1357 fsp->h_u.tcp_ip6_spec.psrc = fltr->tuple.src_port; in qede_get_cls_rule_entry()
1358 fsp->h_u.tcp_ip6_spec.pdst = fltr->tuple.dst_port; in qede_get_cls_rule_entry()
1359 memcpy(&fsp->h_u.tcp_ip6_spec.ip6src, in qede_get_cls_rule_entry()
1361 memcpy(&fsp->h_u.tcp_ip6_spec.ip6dst, in qede_get_cls_rule_entry()
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c516 l4ip4_h = &fs->h_u.tcp_ip4_spec; in enetc_set_cls_entry()
520 l4ip4_h = &fs->h_u.udp_ip4_spec; in enetc_set_cls_entry()
524 l4ip4_h = &fs->h_u.sctp_ip4_spec; in enetc_set_cls_entry()
541 l3ip4_h = &fs->h_u.usr_ip4_spec; in enetc_set_cls_entry()
554 eth_h = &fs->h_u.ether_spec; in enetc_set_cls_entry()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c2570 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ixgbe_get_ethtool_fdir_entry()
2571 fsp->h_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry()
2578 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; in ixgbe_get_ethtool_fdir_entry()
2580 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2582 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2584 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2780 switch (fsp->h_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type()
2874 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
2876 input->filter.formatted.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
2878 input->filter.formatted.src_port = fsp->h_u.tcp_ip4_spec.psrc; in ixgbe_add_ethtool_fdir_entry()
[all …]
/linux/drivers/net/ethernet/intel/igc/
H A Digc_ethtool.c978 fsp->h_u.ether_spec.h_proto = htons(rule->filter.etype); in igc_ethtool_get_nfc_rule()
995 ether_addr_copy(fsp->h_u.ether_spec.h_dest, in igc_ethtool_get_nfc_rule()
1001 ether_addr_copy(fsp->h_u.ether_spec.h_source, in igc_ethtool_get_nfc_rule()
1231 rule->filter.etype = ntohs(fsp->h_u.ether_spec.h_proto); in igc_ethtool_init_nfc_rule()
1241 fsp->h_u.ether_spec.h_source); in igc_ethtool_init_nfc_rule()
1247 fsp->h_u.ether_spec.h_dest); in igc_ethtool_init_nfc_rule()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c6184 ret = hclge_fd_check_tcpip4_tuple(&fs->h_u.tcp_ip4_spec, in hclge_fd_check_spec()
6188 ret = hclge_fd_check_ip4_tuple(&fs->h_u.usr_ip4_spec, in hclge_fd_check_spec()
6194 ret = hclge_fd_check_tcpip6_tuple(&fs->h_u.tcp_ip6_spec, in hclge_fd_check_spec()
6198 ret = hclge_fd_check_ip6_tuple(&fs->h_u.usr_ip6_spec, in hclge_fd_check_spec()
6209 ret = hclge_fd_check_ether_tuple(&fs->h_u.ether_spec, in hclge_fd_check_spec()
6233 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple()
6238 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple()
6242 rule->tuples.src_port = be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc); in hclge_fd_get_tcpip4_tuple()
6245 rule->tuples.dst_port = be16_to_cpu(fs->h_u.tcp_ip4_spec.pdst); in hclge_fd_get_tcpip4_tuple()
6248 rule->tuples.ip_tos = fs->h_u.tcp_ip4_spec.tos; in hclge_fd_get_tcpip4_tuple()
[all …]
/linux/include/uapi/linux/
H A Dethtool.h1390 union ethtool_flow_union h_u; member
1589 } h_u, m_u; member

12