Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1256 cmd->fs.h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4 || in mlx4_en_validate_flow()
1361 cmd->fs.h_u. in add_ip_rule()
1366 spec_l3->ipv4.src_ip = cmd->fs.h_u.usr_ip4_spec.ip4src; in add_ip_rule()
1369 spec_l3->ipv4.dst_ip = cmd->fs.h_u.usr_ip4_spec.ip4dst; in add_ip_rule()
1405 cmd->fs.h_u. in add_tcp_udp_rule()
1410 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; in add_tcp_udp_rule()
1411 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; in add_tcp_udp_rule()
1412 spec_l4->tcp_udp.src_port = cmd->fs.h_u.tcp_ip4_spec.psrc; in add_tcp_udp_rule()
1413 spec_l4->tcp_udp.dst_port = cmd->fs.h_u.tcp_ip4_spec.pdst; in add_tcp_udp_rule()
1417 cmd->fs.h_u. in add_tcp_udp_rule()
[all …]
/linux-4.4.14/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c380 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys); in enic_grxclsrule()
383 fsp->h_u.tcp_ip4_spec.ip4dst = flow_get_u32_dst(&n->keys); in enic_grxclsrule()
386 fsp->h_u.tcp_ip4_spec.psrc = n->keys.ports.src; in enic_grxclsrule()
389 fsp->h_u.tcp_ip4_spec.pdst = n->keys.ports.dst; in enic_grxclsrule()
/linux-4.4.14/include/linux/
Dethtool.h22 union ethtool_flow_union h_u; member
/linux-4.4.14/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c2065 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in i40e_get_ethtool_fdir_entry()
2066 fsp->h_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
2073 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry()
2074 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry()
2075 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip[0]; in i40e_get_ethtool_fdir_entry()
2076 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip[0]; in i40e_get_ethtool_fdir_entry()
2437 input->ip4_proto = fsp->h_u.usr_ip4_spec.proto; in i40e_add_fdir_ethtool()
2442 input->dst_port = fsp->h_u.tcp_ip4_spec.psrc; in i40e_add_fdir_ethtool()
2443 input->src_port = fsp->h_u.tcp_ip4_spec.pdst; in i40e_add_fdir_ethtool()
2444 input->dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool()
[all …]
/linux-4.4.14/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1201 gfar_set_basic_ip(&rule->h_u.tcp_ip4_spec, in gfar_convert_to_filer()
1207 gfar_set_basic_ip(&rule->h_u.udp_ip4_spec, in gfar_convert_to_filer()
1214 gfar_set_basic_ip((struct ethtool_tcpip4_spec *)&rule->h_u, in gfar_convert_to_filer()
1221 gfar_set_user_ip((struct ethtool_usrip4_spec *) &rule->h_u, in gfar_convert_to_filer()
1228 gfar_set_ether((struct ethhdr *) &rule->h_u, in gfar_convert_to_filer()
1308 if (flow->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) in gfar_check_capability()
/linux-4.4.14/include/uapi/linux/
Dethtool.h797 union ethtool_flow_union h_u; member
974 } h_u, m_u; member
/linux-4.4.14/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2367 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ixgbe_get_ethtool_fdir_entry()
2368 fsp->h_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry()
2375 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; in ixgbe_get_ethtool_fdir_entry()
2377 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2379 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2381 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2568 switch (fsp->h_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type()
2661 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
2663 input->filter.formatted.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
2665 input->filter.formatted.src_port = fsp->h_u.tcp_ip4_spec.psrc; in ixgbe_add_ethtool_fdir_entry()
[all …]
/linux-4.4.14/drivers/net/ethernet/sfc/
Dethtool.c792 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_get_class_rule()
794 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule()
952 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
954 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_set_class_rule()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c340 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src; in bnxt_grxclsrule()
343 fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst; in bnxt_grxclsrule()
346 fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule()
349 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule()
/linux-4.4.14/drivers/net/ethernet/sun/
Dniu.c7107 fsp->h_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7110 fsp->h_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7118 fsp->h_u.tcp_ip4_spec.tos = (tp->key[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key()
7129 fsp->h_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key()
7133 fsp->h_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key()
7147 fsp->h_u.ah_ip4_spec.spi = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7156 fsp->h_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7162 fsp->h_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key()
7169 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in niu_get_ip4fs_from_tcam_key()
7375 sip = be32_to_cpu(fsp->h_u.tcp_ip4_spec.ip4src); in niu_get_tcamkey_from_ip4fs()
[all …]