/Linux-v5.15/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool_fdir.c | 156 fsp->h_u.tcp_ip4_spec.psrc = rule->ip.v4.src_port; in ice_get_ethtool_fdir_entry() 157 fsp->h_u.tcp_ip4_spec.pdst = rule->ip.v4.dst_port; in ice_get_ethtool_fdir_entry() 158 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip.v4.src_ip; in ice_get_ethtool_fdir_entry() 159 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip.v4.dst_ip; in ice_get_ethtool_fdir_entry() 160 fsp->m_u.tcp_ip4_spec.psrc = rule->mask.v4.src_port; in ice_get_ethtool_fdir_entry() 161 fsp->m_u.tcp_ip4_spec.pdst = rule->mask.v4.dst_port; in ice_get_ethtool_fdir_entry() 162 fsp->m_u.tcp_ip4_spec.ip4src = rule->mask.v4.src_ip; in ice_get_ethtool_fdir_entry() 163 fsp->m_u.tcp_ip4_spec.ip4dst = rule->mask.v4.dst_ip; in ice_get_ethtool_fdir_entry() 770 struct ethtool_tcpip4_spec *tcp_ip4_spec, in ice_set_fdir_ip4_seg() argument 776 if (!tcp_ip4_spec->psrc && !tcp_ip4_spec->ip4src && in ice_set_fdir_ip4_seg() [all …]
|
/Linux-v5.15/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 1034 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 1035 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1036 fsp->h_u.tcp_ip4_spec.psrc = rule->ip_data.src_port; in iavf_get_ethtool_fdir_entry() 1037 fsp->h_u.tcp_ip4_spec.pdst = rule->ip_data.dst_port; in iavf_get_ethtool_fdir_entry() 1038 fsp->h_u.tcp_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry() 1039 fsp->m_u.tcp_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 1040 fsp->m_u.tcp_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1041 fsp->m_u.tcp_ip4_spec.psrc = rule->ip_mask.src_port; in iavf_get_ethtool_fdir_entry() 1042 fsp->m_u.tcp_ip4_spec.pdst = rule->ip_mask.dst_port; in iavf_get_ethtool_fdir_entry() 1043 fsp->m_u.tcp_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry() [all …]
|
/Linux-v5.15/drivers/net/ethernet/cisco/enic/ |
D | enic_ethtool.c | 443 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys); in enic_grxclsrule() 444 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule() 446 fsp->h_u.tcp_ip4_spec.ip4dst = flow_get_u32_dst(&n->keys); in enic_grxclsrule() 447 fsp->m_u.tcp_ip4_spec.ip4dst = (__u32)~0; in enic_grxclsrule() 449 fsp->h_u.tcp_ip4_spec.psrc = n->keys.ports.src; in enic_grxclsrule() 450 fsp->m_u.tcp_ip4_spec.psrc = (__u16)~0; in enic_grxclsrule() 452 fsp->h_u.tcp_ip4_spec.pdst = n->keys.ports.dst; in enic_grxclsrule() 453 fsp->m_u.tcp_ip4_spec.pdst = (__u16)~0; in enic_grxclsrule()
|
/Linux-v5.15/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_ethtool.c | 1675 fs->h_u.tcp_ip4_spec.psrc = cpu_to_be16(dfs->val.fport); in cxgb4_fill_filter_rule() 1676 fs->m_u.tcp_ip4_spec.psrc = cpu_to_be16(dfs->mask.fport); in cxgb4_fill_filter_rule() 1677 fs->h_u.tcp_ip4_spec.pdst = cpu_to_be16(dfs->val.lport); in cxgb4_fill_filter_rule() 1678 fs->m_u.tcp_ip4_spec.pdst = cpu_to_be16(dfs->mask.lport); in cxgb4_fill_filter_rule() 1679 memcpy(&fs->h_u.tcp_ip4_spec.ip4src, &dfs->val.fip[0], in cxgb4_fill_filter_rule() 1680 sizeof(fs->h_u.tcp_ip4_spec.ip4src)); in cxgb4_fill_filter_rule() 1681 memcpy(&fs->m_u.tcp_ip4_spec.ip4src, &dfs->mask.fip[0], in cxgb4_fill_filter_rule() 1682 sizeof(fs->m_u.tcp_ip4_spec.ip4src)); in cxgb4_fill_filter_rule() 1683 memcpy(&fs->h_u.tcp_ip4_spec.ip4dst, &dfs->val.lip[0], in cxgb4_fill_filter_rule() 1684 sizeof(fs->h_u.tcp_ip4_spec.ip4dst)); in cxgb4_fill_filter_rule() [all …]
|
/Linux-v5.15/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 3287 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry() 3288 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry() 3289 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip; in i40e_get_ethtool_fdir_entry() 3290 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip; in i40e_get_ethtool_fdir_entry() 3348 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry() 3351 fsp->m_u.tcp_ip4_spec.ip4dst = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry() 3354 fsp->m_u.tcp_ip4_spec.psrc = htons(0xFFFF); in i40e_get_ethtool_fdir_entry() 3357 fsp->m_u.tcp_ip4_spec.pdst = htons(0xFFFF); in i40e_get_ethtool_fdir_entry() 4166 struct ethtool_tcpip4_spec *tcp_ip4_spec; in i40e_check_fdir_input_set() local 4235 tcp_ip4_spec = &fsp->m_u.tcp_ip4_spec; in i40e_check_fdir_input_set() [all …]
|
/Linux-v5.15/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_filters.c | 249 (fsp->h_u.tcp_ip4_spec.tos || in aq_rule_is_not_support() 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() 534 ntohs(fsp->h_u.tcp_ip4_spec.pdst); in aq_set_data_fl3l4() 536 ntohs(fsp->h_u.tcp_ip4_spec.psrc); in aq_set_data_fl3l4()
|
/Linux-v5.15/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 2545 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; in ixgbe_get_ethtool_fdir_entry() 2546 fsp->m_u.tcp_ip4_spec.psrc = mask->formatted.src_port; in ixgbe_get_ethtool_fdir_entry() 2547 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in ixgbe_get_ethtool_fdir_entry() 2548 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; in ixgbe_get_ethtool_fdir_entry() 2549 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2550 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2551 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2552 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2832 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry() 2833 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry() [all …]
|
/Linux-v5.15/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 1928 (!fsp->h_u.tcp_ip4_spec.ip4dst) || in mtk_hwlro_add_ipaddr() 1932 mac->hwlro_ip[fsp->location] = htonl(fsp->h_u.tcp_ip4_spec.ip4dst); in mtk_hwlro_add_ipaddr() 1989 fsp->h_u.tcp_ip4_spec.ip4dst = ntohl(mac->hwlro_ip[fsp->location]); in mtk_hwlro_get_fdir_entry() 1990 fsp->m_u.tcp_ip4_spec.ip4dst = 0; in mtk_hwlro_get_fdir_entry() 1992 fsp->h_u.tcp_ip4_spec.ip4src = 0; in mtk_hwlro_get_fdir_entry() 1993 fsp->m_u.tcp_ip4_spec.ip4src = 0xffffffff; in mtk_hwlro_get_fdir_entry() 1994 fsp->h_u.tcp_ip4_spec.psrc = 0; in mtk_hwlro_get_fdir_entry() 1995 fsp->m_u.tcp_ip4_spec.psrc = 0xffff; in mtk_hwlro_get_fdir_entry() 1996 fsp->h_u.tcp_ip4_spec.pdst = 0; in mtk_hwlro_get_fdir_entry() 1997 fsp->m_u.tcp_ip4_spec.pdst = 0xffff; in mtk_hwlro_get_fdir_entry() [all …]
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 1358 if (cmd->fs.m_u.tcp_ip4_spec.tos) in mlx4_en_validate_flow() 1360 l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in mlx4_en_validate_flow() 1504 struct ethtool_tcpip4_spec *l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in add_tcp_udp_rule() 1520 tcp_ip4_spec.ip4dst); in add_tcp_udp_rule() 1524 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; in add_tcp_udp_rule() 1525 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; in add_tcp_udp_rule() 1526 spec_l4->tcp_udp.src_port = cmd->fs.h_u.tcp_ip4_spec.psrc; in add_tcp_udp_rule() 1527 spec_l4->tcp_udp.dst_port = cmd->fs.h_u.tcp_ip4_spec.pdst; in add_tcp_udp_rule()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 222 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in parse_tcp4() 223 struct ethtool_tcpip4_spec *l4_val = &fs->h_u.tcp_ip4_spec; in parse_tcp4() 566 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in validate_tcpudp4()
|
/Linux-v5.15/drivers/net/ethernet/sfc/ |
D | ethtool_common.c | 653 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_get_class_rule() 654 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_get_class_rule() 925 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_set_class_rule() 926 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
|
/Linux-v5.15/drivers/net/ethernet/sfc/falcon/ |
D | ethtool.c | 789 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in ef4_ethtool_get_class_rule() 790 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_get_class_rule() 1025 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in ef4_ethtool_set_class_rule() 1026 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_set_class_rule()
|
/Linux-v5.15/include/uapi/linux/ |
D | ethtool.h | 955 struct ethtool_tcpip4_spec tcp_ip4_spec; member 1198 struct ethtool_tcpip4_spec tcp_ip4_spec; member
|
/Linux-v5.15/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 505 err = dpaa2_eth_prep_l4_rule(&fs->h_u.tcp_ip4_spec, &fs->m_u.tcp_ip4_spec, in dpaa2_eth_prep_cls_rule()
|
/Linux-v5.15/drivers/net/ethernet/cadence/ |
D | macb_main.c | 3245 tp4sp_m = &(fs->m_u.tcp_ip4_spec); in gem_enable_flow_filters() 3278 tp4sp_v = &(fs->h_u.tcp_ip4_spec); in gem_prog_cmp_regs() 3279 tp4sp_m = &(fs->m_u.tcp_ip4_spec); in gem_prog_cmp_regs() 3367 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_add_flow_filter() 3368 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_add_flow_filter() 3369 htons(fs->h_u.tcp_ip4_spec.psrc), htons(fs->h_u.tcp_ip4_spec.pdst)); in gem_add_flow_filter() 3420 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_del_flow_filter() 3421 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_del_flow_filter() 3422 htons(fs->h_u.tcp_ip4_spec.psrc), in gem_del_flow_filter() 3423 htons(fs->h_u.tcp_ip4_spec.pdst)); in gem_del_flow_filter()
|
/Linux-v5.15/drivers/net/ethernet/freescale/enetc/ |
D | enetc_ethtool.c | 351 l4ip4_h = &fs->h_u.tcp_ip4_spec; in enetc_set_cls_entry() 352 l4ip4_m = &fs->m_u.tcp_ip4_spec; in enetc_set_cls_entry()
|
/Linux-v5.15/drivers/net/ethernet/sun/ |
D | niu.c | 7081 fsp->h_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7084 fsp->h_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7087 fsp->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7090 fsp->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7092 fsp->h_u.tcp_ip4_spec.tos = (tp->key[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key() 7094 fsp->m_u.tcp_ip4_spec.tos = (tp->key_mask[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key() 7103 fsp->h_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7107 fsp->h_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7111 fsp->m_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7115 fsp->m_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() [all …]
|
/Linux-v5.15/drivers/net/ethernet/qlogic/qede/ |
D | qede_filter.c | 1357 fsp->h_u.tcp_ip4_spec.psrc = fltr->tuple.src_port; in qede_get_cls_rule_entry() 1358 fsp->h_u.tcp_ip4_spec.pdst = fltr->tuple.dst_port; in qede_get_cls_rule_entry() 1359 fsp->h_u.tcp_ip4_spec.ip4src = fltr->tuple.src_ipv4; in qede_get_cls_rule_entry() 1360 fsp->h_u.tcp_ip4_spec.ip4dst = fltr->tuple.dst_ipv4; in qede_get_cls_rule_entry()
|
/Linux-v5.15/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 1024 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src; in bnxt_grxclsrule() 1025 fs->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(~0); in bnxt_grxclsrule() 1027 fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst; in bnxt_grxclsrule() 1028 fs->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(~0); in bnxt_grxclsrule() 1030 fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule() 1031 fs->m_u.tcp_ip4_spec.psrc = cpu_to_be16(~0); in bnxt_grxclsrule() 1033 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule() 1034 fs->m_u.tcp_ip4_spec.pdst = cpu_to_be16(~0); in bnxt_grxclsrule()
|
/Linux-v5.15/drivers/net/ethernet/freescale/ |
D | gianfar_ethtool.c | 1103 gfar_set_basic_ip(&rule->h_u.tcp_ip4_spec, in gfar_convert_to_filer() 1104 &rule->m_u.tcp_ip4_spec, tab); in gfar_convert_to_filer()
|
/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 492 struct ethtool_tcpip4_spec *ipv4_l4_mask = &fsp->m_u.tcp_ip4_spec; in otx2_prepare_ipv4_flow() 493 struct ethtool_tcpip4_spec *ipv4_l4_hdr = &fsp->h_u.tcp_ip4_spec; in otx2_prepare_ipv4_flow()
|
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.c | 6311 ret = hclge_fd_check_tcpip4_tuple(&fs->h_u.tcp_ip4_spec, in hclge_fd_check_spec() 6361 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple() 6363 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple() 6366 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple() 6368 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple() 6370 rule->tuples.src_port = be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc); in hclge_fd_get_tcpip4_tuple() 6371 rule->tuples_mask.src_port = be16_to_cpu(fs->m_u.tcp_ip4_spec.psrc); in hclge_fd_get_tcpip4_tuple() 6373 rule->tuples.dst_port = be16_to_cpu(fs->h_u.tcp_ip4_spec.pdst); in hclge_fd_get_tcpip4_tuple() 6374 rule->tuples_mask.dst_port = be16_to_cpu(fs->m_u.tcp_ip4_spec.pdst); in hclge_fd_get_tcpip4_tuple() 6376 rule->tuples.ip_tos = fs->h_u.tcp_ip4_spec.tos; in hclge_fd_get_tcpip4_tuple() [all …]
|
/Linux-v5.15/net/ethtool/ |
D | ioctl.c | 3075 v4_spec = &fs->h_u.tcp_ip4_spec; in ethtool_rx_flow_rule_create() 3076 v4_m_spec = &fs->m_u.tcp_ip4_spec; in ethtool_rx_flow_rule_create()
|