| /Linux-v4.19/drivers/net/ethernet/cisco/enic/ |
| D | enic_ethtool.c | 460 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys); in enic_grxclsrule() 461 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule() 463 fsp->h_u.tcp_ip4_spec.ip4dst = flow_get_u32_dst(&n->keys); in enic_grxclsrule() 464 fsp->m_u.tcp_ip4_spec.ip4dst = (__u32)~0; in enic_grxclsrule() 466 fsp->h_u.tcp_ip4_spec.psrc = n->keys.ports.src; in enic_grxclsrule() 467 fsp->m_u.tcp_ip4_spec.psrc = (__u16)~0; in enic_grxclsrule() 469 fsp->h_u.tcp_ip4_spec.pdst = n->keys.ports.dst; in enic_grxclsrule() 470 fsp->m_u.tcp_ip4_spec.pdst = (__u16)~0; in enic_grxclsrule()
|
| /Linux-v4.19/drivers/net/ethernet/qlogic/qede/ |
| D | qede_filter.c | 1430 fsp->h_u.tcp_ip4_spec.psrc = fltr->tuple.src_port; in qede_get_cls_rule_entry() 1431 fsp->h_u.tcp_ip4_spec.pdst = fltr->tuple.dst_port; in qede_get_cls_rule_entry() 1432 fsp->h_u.tcp_ip4_spec.ip4src = fltr->tuple.src_ipv4; in qede_get_cls_rule_entry() 1433 fsp->h_u.tcp_ip4_spec.ip4dst = fltr->tuple.dst_ipv4; in qede_get_cls_rule_entry() 1672 if ((fs->h_u.tcp_ip4_spec.ip4src & in qede_flow_spec_to_tuple_ipv4_common() 1673 fs->m_u.tcp_ip4_spec.ip4src) != fs->h_u.tcp_ip4_spec.ip4src) { in qede_flow_spec_to_tuple_ipv4_common() 1678 if ((fs->h_u.tcp_ip4_spec.ip4dst & in qede_flow_spec_to_tuple_ipv4_common() 1679 fs->m_u.tcp_ip4_spec.ip4dst) != fs->h_u.tcp_ip4_spec.ip4dst) { in qede_flow_spec_to_tuple_ipv4_common() 1684 if ((fs->h_u.tcp_ip4_spec.psrc & in qede_flow_spec_to_tuple_ipv4_common() 1685 fs->m_u.tcp_ip4_spec.psrc) != fs->h_u.tcp_ip4_spec.psrc) { in qede_flow_spec_to_tuple_ipv4_common() [all …]
|
| /Linux-v4.19/drivers/net/ethernet/intel/i40e/ |
| D | i40e_ethtool.c | 2882 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry() 2883 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry() 2884 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip; in i40e_get_ethtool_fdir_entry() 2885 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip; in i40e_get_ethtool_fdir_entry() 2916 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry() 2919 fsp->m_u.tcp_ip4_spec.ip4dst = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry() 2922 fsp->m_u.tcp_ip4_spec.psrc = htons(0xFFFF); in i40e_get_ethtool_fdir_entry() 2925 fsp->m_u.tcp_ip4_spec.pdst = htons(0xFFFF); in i40e_get_ethtool_fdir_entry() 3714 struct ethtool_tcpip4_spec *tcp_ip4_spec; in i40e_check_fdir_input_set() local 3765 tcp_ip4_spec = &fsp->m_u.tcp_ip4_spec; in i40e_check_fdir_input_set() [all …]
|
| /Linux-v4.19/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_ethtool.c | 2451 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; in ixgbe_get_ethtool_fdir_entry() 2452 fsp->m_u.tcp_ip4_spec.psrc = mask->formatted.src_port; in ixgbe_get_ethtool_fdir_entry() 2453 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in ixgbe_get_ethtool_fdir_entry() 2454 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; in ixgbe_get_ethtool_fdir_entry() 2455 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2456 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2457 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2458 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2738 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry() 2739 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry() [all …]
|
| /Linux-v4.19/drivers/net/ethernet/mediatek/ |
| D | mtk_eth_soc.c | 1519 (!fsp->h_u.tcp_ip4_spec.ip4dst) || in mtk_hwlro_add_ipaddr() 1523 mac->hwlro_ip[fsp->location] = htonl(fsp->h_u.tcp_ip4_spec.ip4dst); in mtk_hwlro_add_ipaddr() 1580 fsp->h_u.tcp_ip4_spec.ip4dst = ntohl(mac->hwlro_ip[fsp->location]); in mtk_hwlro_get_fdir_entry() 1581 fsp->m_u.tcp_ip4_spec.ip4dst = 0; in mtk_hwlro_get_fdir_entry() 1583 fsp->h_u.tcp_ip4_spec.ip4src = 0; in mtk_hwlro_get_fdir_entry() 1584 fsp->m_u.tcp_ip4_spec.ip4src = 0xffffffff; in mtk_hwlro_get_fdir_entry() 1585 fsp->h_u.tcp_ip4_spec.psrc = 0; in mtk_hwlro_get_fdir_entry() 1586 fsp->m_u.tcp_ip4_spec.psrc = 0xffff; in mtk_hwlro_get_fdir_entry() 1587 fsp->h_u.tcp_ip4_spec.pdst = 0; in mtk_hwlro_get_fdir_entry() 1588 fsp->m_u.tcp_ip4_spec.pdst = 0xffff; in mtk_hwlro_get_fdir_entry() [all …]
|
| /Linux-v4.19/drivers/net/dsa/ |
| D | bcm_sf2_cfp.c | 340 v4_spec = &fs->h_u.tcp_ip4_spec; in bcm_sf2_cfp_ipv4_rule_set() 341 v4_m_spec = &fs->m_u.tcp_ip4_spec; in bcm_sf2_cfp_ipv4_rule_set() 950 v4_spec = &fs->h_u.tcp_ip4_spec; in bcm_sf2_cfp_ipv4_rule_get() 951 v4_m_spec = &fs->m_u.tcp_ip4_spec; in bcm_sf2_cfp_ipv4_rule_get()
|
| /Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/ |
| D | en_ethtool.c | 1337 if (cmd->fs.m_u.tcp_ip4_spec.tos) in mlx4_en_validate_flow() 1339 l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in mlx4_en_validate_flow() 1484 struct ethtool_tcpip4_spec *l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in add_tcp_udp_rule() 1500 tcp_ip4_spec.ip4dst); in add_tcp_udp_rule() 1504 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; in add_tcp_udp_rule() 1505 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; in add_tcp_udp_rule() 1506 spec_l4->tcp_udp.src_port = cmd->fs.h_u.tcp_ip4_spec.psrc; in add_tcp_udp_rule() 1507 spec_l4->tcp_udp.dst_port = cmd->fs.h_u.tcp_ip4_spec.pdst; in add_tcp_udp_rule()
|
| /Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
| D | en_fs_ethtool.c | 209 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in parse_tcp4() 210 struct ethtool_tcpip4_spec *l4_val = &fs->h_u.tcp_ip4_spec; in parse_tcp4() 505 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in validate_tcpudp4()
|
| /Linux-v4.19/include/uapi/linux/ |
| D | ethtool.h | 827 struct ethtool_tcpip4_spec tcp_ip4_spec; member 1068 struct ethtool_tcpip4_spec tcp_ip4_spec; member
|
| /Linux-v4.19/drivers/net/ethernet/sfc/falcon/ |
| D | ethtool.c | 791 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in ef4_ethtool_get_class_rule() 792 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_get_class_rule() 1027 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in ef4_ethtool_set_class_rule() 1028 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_set_class_rule()
|
| /Linux-v4.19/drivers/net/ethernet/cadence/ |
| D | macb_main.c | 2820 tp4sp_m = &(fs->m_u.tcp_ip4_spec); in gem_enable_flow_filters() 2850 tp4sp_v = &(fs->h_u.tcp_ip4_spec); in gem_prog_cmp_regs() 2851 tp4sp_m = &(fs->m_u.tcp_ip4_spec); in gem_prog_cmp_regs() 2939 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_add_flow_filter() 2940 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_add_flow_filter() 2941 htons(fs->h_u.tcp_ip4_spec.psrc), htons(fs->h_u.tcp_ip4_spec.pdst)); in gem_add_flow_filter() 2993 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_del_flow_filter() 2994 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_del_flow_filter() 2995 htons(fs->h_u.tcp_ip4_spec.psrc), in gem_del_flow_filter() 2996 htons(fs->h_u.tcp_ip4_spec.pdst)); in gem_del_flow_filter()
|
| /Linux-v4.19/drivers/net/ethernet/sfc/ |
| D | ethtool.c | 814 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_get_class_rule() 815 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_get_class_rule() 1083 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_set_class_rule() 1084 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
|
| /Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/ |
| D | bnxt_ethtool.c | 662 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src; in bnxt_grxclsrule() 663 fs->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(~0); in bnxt_grxclsrule() 665 fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst; in bnxt_grxclsrule() 666 fs->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(~0); in bnxt_grxclsrule() 668 fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule() 669 fs->m_u.tcp_ip4_spec.psrc = cpu_to_be16(~0); in bnxt_grxclsrule() 671 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule() 672 fs->m_u.tcp_ip4_spec.pdst = cpu_to_be16(~0); in bnxt_grxclsrule()
|
| /Linux-v4.19/drivers/net/ethernet/sun/ |
| D | niu.c | 7085 fsp->h_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7088 fsp->h_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7091 fsp->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7094 fsp->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7096 fsp->h_u.tcp_ip4_spec.tos = (tp->key[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key() 7098 fsp->m_u.tcp_ip4_spec.tos = (tp->key_mask[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key() 7107 fsp->h_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7111 fsp->h_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7115 fsp->m_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7119 fsp->m_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() [all …]
|
| /Linux-v4.19/drivers/net/ethernet/freescale/ |
| D | gianfar_ethtool.c | 1171 gfar_set_basic_ip(&rule->h_u.tcp_ip4_spec, in gfar_convert_to_filer() 1172 &rule->m_u.tcp_ip4_spec, tab); in gfar_convert_to_filer()
|