Searched refs:tcp_ip4_spec (Results 1 - 8 of 8) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/cisco/enic/
H A Denic_ethtool.c363 fsp->h_u.tcp_ip4_spec.ip4src = n->keys.src; enic_grxclsrule()
364 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; enic_grxclsrule()
366 fsp->h_u.tcp_ip4_spec.ip4dst = n->keys.dst; enic_grxclsrule()
367 fsp->m_u.tcp_ip4_spec.ip4dst = (__u32)~0; enic_grxclsrule()
369 fsp->h_u.tcp_ip4_spec.psrc = n->keys.port16[0]; enic_grxclsrule()
370 fsp->m_u.tcp_ip4_spec.psrc = (__u16)~0; enic_grxclsrule()
372 fsp->h_u.tcp_ip4_spec.pdst = n->keys.port16[1]; enic_grxclsrule()
373 fsp->m_u.tcp_ip4_spec.pdst = (__u16)~0; enic_grxclsrule()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c2370 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; ixgbe_get_ethtool_fdir_entry()
2371 fsp->m_u.tcp_ip4_spec.psrc = mask->formatted.src_port; ixgbe_get_ethtool_fdir_entry()
2372 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; ixgbe_get_ethtool_fdir_entry()
2373 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; ixgbe_get_ethtool_fdir_entry()
2374 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; ixgbe_get_ethtool_fdir_entry()
2375 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; ixgbe_get_ethtool_fdir_entry()
2376 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; ixgbe_get_ethtool_fdir_entry()
2377 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; ixgbe_get_ethtool_fdir_entry()
2639 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; ixgbe_add_ethtool_fdir_entry()
2640 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; ixgbe_add_ethtool_fdir_entry()
2641 input->filter.formatted.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; ixgbe_add_ethtool_fdir_entry()
2642 mask.formatted.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; ixgbe_add_ethtool_fdir_entry()
2643 input->filter.formatted.src_port = fsp->h_u.tcp_ip4_spec.psrc; ixgbe_add_ethtool_fdir_entry()
2644 mask.formatted.src_port = fsp->m_u.tcp_ip4_spec.psrc; ixgbe_add_ethtool_fdir_entry()
2645 input->filter.formatted.dst_port = fsp->h_u.tcp_ip4_spec.pdst; ixgbe_add_ethtool_fdir_entry()
2646 mask.formatted.dst_port = fsp->m_u.tcp_ip4_spec.pdst; ixgbe_add_ethtool_fdir_entry()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c1228 if (cmd->fs.m_u.tcp_ip4_spec.tos) mlx4_en_validate_flow()
1230 l4_mask = &cmd->fs.m_u.tcp_ip4_spec; mlx4_en_validate_flow()
1375 struct ethtool_tcpip4_spec *l4_mask = &cmd->fs.m_u.tcp_ip4_spec; add_tcp_udp_rule()
1391 tcp_ip4_spec.ip4dst); add_tcp_udp_rule()
1395 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; add_tcp_udp_rule()
1396 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; add_tcp_udp_rule()
1397 spec_l4->tcp_udp.src_port = cmd->fs.h_u.tcp_ip4_spec.psrc; add_tcp_udp_rule()
1398 spec_l4->tcp_udp.dst_port = cmd->fs.h_u.tcp_ip4_spec.pdst; add_tcp_udp_rule()
/linux-4.1.27/drivers/net/ethernet/sfc/
H A Dethtool.c792 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; efx_ethtool_get_class_rule()
793 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; efx_ethtool_get_class_rule()
952 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; efx_ethtool_set_class_rule()
953 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; efx_ethtool_set_class_rule()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c1906 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; i40e_get_ethtool_fdir_entry()
1907 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port; i40e_get_ethtool_fdir_entry()
1908 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip[0]; i40e_get_ethtool_fdir_entry()
1909 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip[0]; i40e_get_ethtool_fdir_entry()
2275 input->dst_port = fsp->h_u.tcp_ip4_spec.psrc; i40e_add_fdir_ethtool()
2276 input->src_port = fsp->h_u.tcp_ip4_spec.pdst; i40e_add_fdir_ethtool()
2277 input->dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; i40e_add_fdir_ethtool()
2278 input->src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; i40e_add_fdir_ethtool()
/linux-4.1.27/drivers/net/ethernet/sun/
H A Dniu.c7109 fsp->h_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); niu_get_ip4fs_from_tcam_key()
7112 fsp->h_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); niu_get_ip4fs_from_tcam_key()
7115 fsp->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); niu_get_ip4fs_from_tcam_key()
7118 fsp->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); niu_get_ip4fs_from_tcam_key()
7120 fsp->h_u.tcp_ip4_spec.tos = (tp->key[2] & TCAM_V4KEY2_TOS) >> niu_get_ip4fs_from_tcam_key()
7122 fsp->m_u.tcp_ip4_spec.tos = (tp->key_mask[2] & TCAM_V4KEY2_TOS) >> niu_get_ip4fs_from_tcam_key()
7131 fsp->h_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); niu_get_ip4fs_from_tcam_key()
7135 fsp->h_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); niu_get_ip4fs_from_tcam_key()
7139 fsp->m_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); niu_get_ip4fs_from_tcam_key()
7143 fsp->m_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); niu_get_ip4fs_from_tcam_key()
7377 sip = be32_to_cpu(fsp->h_u.tcp_ip4_spec.ip4src); niu_get_tcamkey_from_ip4fs()
7378 sipm = be32_to_cpu(fsp->m_u.tcp_ip4_spec.ip4src); niu_get_tcamkey_from_ip4fs()
7379 dip = be32_to_cpu(fsp->h_u.tcp_ip4_spec.ip4dst); niu_get_tcamkey_from_ip4fs()
7380 dipm = be32_to_cpu(fsp->m_u.tcp_ip4_spec.ip4dst); niu_get_tcamkey_from_ip4fs()
7393 tp->key[2] |= ((u64)fsp->h_u.tcp_ip4_spec.tos << niu_get_tcamkey_from_ip4fs()
7395 tp->key_mask[2] |= ((u64)fsp->m_u.tcp_ip4_spec.tos << niu_get_tcamkey_from_ip4fs()
7401 sport = be16_to_cpu(fsp->h_u.tcp_ip4_spec.psrc); niu_get_tcamkey_from_ip4fs()
7402 spm = be16_to_cpu(fsp->m_u.tcp_ip4_spec.psrc); niu_get_tcamkey_from_ip4fs()
7403 dport = be16_to_cpu(fsp->h_u.tcp_ip4_spec.pdst); niu_get_tcamkey_from_ip4fs()
7404 dpm = be16_to_cpu(fsp->m_u.tcp_ip4_spec.pdst); niu_get_tcamkey_from_ip4fs()
/linux-4.1.27/include/uapi/linux/
H A Dethtool.h744 struct ethtool_tcpip4_spec tcp_ip4_spec; member in union:ethtool_flow_union
935 struct ethtool_tcpip4_spec tcp_ip4_spec; member in union:ethtool_rx_ntuple_flow_spec::__anon13241
1323 #define TCP_V4_FLOW 0x01 /* hash or spec (tcp_ip4_spec) */
/linux-4.1.27/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c1204 gfar_set_basic_ip(&rule->h_u.tcp_ip4_spec, gfar_convert_to_filer()
1205 &rule->m_u.tcp_ip4_spec, tab); gfar_convert_to_filer()

Completed in 859 milliseconds