/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ethtool_fdir.c | 922 if (!tcp_ip4_spec->psrc && !tcp_ip4_spec->ip4src && in ice_set_fdir_ip4_seg() 923 !tcp_ip4_spec->pdst && !tcp_ip4_spec->ip4dst) in ice_set_fdir_ip4_seg() 927 if (tcp_ip4_spec->tos) in ice_set_fdir_ip4_seg() 947 if (tcp_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in ice_set_fdir_ip4_seg() 951 else if (!tcp_ip4_spec->ip4src) in ice_set_fdir_ip4_seg() 957 if (tcp_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in ice_set_fdir_ip4_seg() 961 else if (!tcp_ip4_spec->ip4dst) in ice_set_fdir_ip4_seg() 967 if (tcp_ip4_spec->psrc == htons(0xFFFF)) in ice_set_fdir_ip4_seg() 971 else if (!tcp_ip4_spec->psrc) in ice_set_fdir_ip4_seg() 977 if (tcp_ip4_spec->pdst == htons(0xFFFF)) in ice_set_fdir_ip4_seg() [all …]
|
/openbmc/linux/drivers/net/ethernet/cisco/enic/ |
H A D | enic_ethtool.c | 432 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys); in enic_grxclsrule() 433 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule() 435 fsp->h_u.tcp_ip4_spec.ip4dst = flow_get_u32_dst(&n->keys); in enic_grxclsrule() 436 fsp->m_u.tcp_ip4_spec.ip4dst = (__u32)~0; in enic_grxclsrule() 438 fsp->h_u.tcp_ip4_spec.psrc = n->keys.ports.src; in enic_grxclsrule() 439 fsp->m_u.tcp_ip4_spec.psrc = (__u16)~0; in enic_grxclsrule() 441 fsp->h_u.tcp_ip4_spec.pdst = n->keys.ports.dst; in enic_grxclsrule() 442 fsp->m_u.tcp_ip4_spec.pdst = (__u16)~0; in enic_grxclsrule()
|
/openbmc/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_ethtool.c | 1089 fsp->h_u.tcp_ip4_spec.psrc = rule->ip_data.src_port; in iavf_get_ethtool_fdir_entry() 1090 fsp->h_u.tcp_ip4_spec.pdst = rule->ip_data.dst_port; in iavf_get_ethtool_fdir_entry() 1091 fsp->h_u.tcp_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry() 1094 fsp->m_u.tcp_ip4_spec.psrc = rule->ip_mask.src_port; in iavf_get_ethtool_fdir_entry() 1095 fsp->m_u.tcp_ip4_spec.pdst = rule->ip_mask.dst_port; in iavf_get_ethtool_fdir_entry() 1096 fsp->m_u.tcp_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry() 1277 fltr->ip_data.src_port = fsp->h_u.tcp_ip4_spec.psrc; in iavf_add_fdir_fltr_info() 1278 fltr->ip_data.dst_port = fsp->h_u.tcp_ip4_spec.pdst; in iavf_add_fdir_fltr_info() 1279 fltr->ip_data.tos = fsp->h_u.tcp_ip4_spec.tos; in iavf_add_fdir_fltr_info() 1282 fltr->ip_mask.src_port = fsp->m_u.tcp_ip4_spec.psrc; in iavf_add_fdir_fltr_info() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_ethtool.c | 1679 fs->h_u.tcp_ip4_spec.psrc = cpu_to_be16(dfs->val.fport); in cxgb4_fill_filter_rule() 1683 memcpy(&fs->h_u.tcp_ip4_spec.ip4src, &dfs->val.fip[0], in cxgb4_fill_filter_rule() 1684 sizeof(fs->h_u.tcp_ip4_spec.ip4src)); in cxgb4_fill_filter_rule() 1685 memcpy(&fs->m_u.tcp_ip4_spec.ip4src, &dfs->mask.fip[0], in cxgb4_fill_filter_rule() 1686 sizeof(fs->m_u.tcp_ip4_spec.ip4src)); in cxgb4_fill_filter_rule() 1687 memcpy(&fs->h_u.tcp_ip4_spec.ip4dst, &dfs->val.lip[0], in cxgb4_fill_filter_rule() 1688 sizeof(fs->h_u.tcp_ip4_spec.ip4dst)); in cxgb4_fill_filter_rule() 1689 memcpy(&fs->m_u.tcp_ip4_spec.ip4dst, &dfs->mask.lip[0], in cxgb4_fill_filter_rule() 1690 sizeof(fs->m_u.tcp_ip4_spec.ip4dst)); in cxgb4_fill_filter_rule() 1691 fs->h_u.tcp_ip4_spec.tos = dfs->val.tos; in cxgb4_fill_filter_rule() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ethtool.c | 3470 fsp->m_u.tcp_ip4_spec.psrc = htons(0xFFFF); in i40e_get_ethtool_fdir_entry() 3473 fsp->m_u.tcp_ip4_spec.pdst = htons(0xFFFF); in i40e_get_ethtool_fdir_entry() 4295 struct ethtool_tcpip4_spec *tcp_ip4_spec; in i40e_check_fdir_input_set() local 4364 tcp_ip4_spec = &fsp->m_u.tcp_ip4_spec; in i40e_check_fdir_input_set() 4369 else if (!tcp_ip4_spec->ip4src) in i40e_check_fdir_input_set() 4377 else if (!tcp_ip4_spec->ip4dst) in i40e_check_fdir_input_set() 4383 if (tcp_ip4_spec->psrc == htons(0xFFFF)) in i40e_check_fdir_input_set() 4385 else if (!tcp_ip4_spec->psrc) in i40e_check_fdir_input_set() 4391 if (tcp_ip4_spec->pdst == htons(0xFFFF)) in i40e_check_fdir_input_set() 4393 else if (!tcp_ip4_spec->pdst) in i40e_check_fdir_input_set() [all …]
|
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A 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()
|
/openbmc/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ethtool.c | 2577 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; in ixgbe_get_ethtool_fdir_entry() 2578 fsp->m_u.tcp_ip4_spec.psrc = mask->formatted.src_port; in ixgbe_get_ethtool_fdir_entry() 2579 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in ixgbe_get_ethtool_fdir_entry() 2580 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; in ixgbe_get_ethtool_fdir_entry() 2582 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2584 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2874 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry() 2876 mask.formatted.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry() 2877 input->filter.formatted.src_port = fsp->h_u.tcp_ip4_spec.psrc; in ixgbe_add_ethtool_fdir_entry() 2878 mask.formatted.src_port = fsp->m_u.tcp_ip4_spec.psrc; in ixgbe_add_ethtool_fdir_entry() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_ethtool.c | 1365 if (cmd->fs.m_u.tcp_ip4_spec.tos) in mlx4_en_validate_flow() 1367 l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in mlx4_en_validate_flow() 1511 struct ethtool_tcpip4_spec *l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in add_tcp_udp_rule() 1527 tcp_ip4_spec.ip4dst); in add_tcp_udp_rule() 1531 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; in add_tcp_udp_rule() 1532 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; in add_tcp_udp_rule() 1533 spec_l4->tcp_udp.src_port = cmd->fs.h_u.tcp_ip4_spec.psrc; in add_tcp_udp_rule() 1534 spec_l4->tcp_udp.dst_port = cmd->fs.h_u.tcp_ip4_spec.pdst; in add_tcp_udp_rule()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs_ethtool.c | 235 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in parse_tcp4() 236 struct ethtool_tcpip4_spec *l4_val = &fs->h_u.tcp_ip4_spec; in parse_tcp4() 574 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in validate_tcpudp4()
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | ethtool_common.c | 648 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_get_class_rule() 649 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_get_class_rule() 920 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_set_class_rule() 921 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
|
/openbmc/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | ethtool.c | 795 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in ef4_ethtool_get_class_rule() 796 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_get_class_rule() 1031 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in ef4_ethtool_set_class_rule() 1032 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_set_class_rule()
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | ethtool_common.c | 648 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_get_class_rule() 649 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_get_class_rule() 921 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_set_class_rule() 922 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
|
/openbmc/linux/include/uapi/linux/ |
H A D | ethtool.h | 1071 struct ethtool_tcpip4_spec tcp_ip4_spec; member 1314 struct ethtool_tcpip4_spec tcp_ip4_spec; member
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | ethtool.h | 1126 struct ethtool_tcpip4_spec tcp_ip4_spec; member 1372 struct ethtool_tcpip4_spec tcp_ip4_spec; member
|
/openbmc/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_eth_soc.c | 2909 (!fsp->h_u.tcp_ip4_spec.ip4dst) || in mtk_hwlro_add_ipaddr() 2913 mac->hwlro_ip[fsp->location] = htonl(fsp->h_u.tcp_ip4_spec.ip4dst); in mtk_hwlro_add_ipaddr() 2974 fsp->m_u.tcp_ip4_spec.ip4dst = 0; in mtk_hwlro_get_fdir_entry() 2976 fsp->h_u.tcp_ip4_spec.ip4src = 0; in mtk_hwlro_get_fdir_entry() 2977 fsp->m_u.tcp_ip4_spec.ip4src = 0xffffffff; in mtk_hwlro_get_fdir_entry() 2978 fsp->h_u.tcp_ip4_spec.psrc = 0; in mtk_hwlro_get_fdir_entry() 2979 fsp->m_u.tcp_ip4_spec.psrc = 0xffff; in mtk_hwlro_get_fdir_entry() 2980 fsp->h_u.tcp_ip4_spec.pdst = 0; in mtk_hwlro_get_fdir_entry() 2981 fsp->m_u.tcp_ip4_spec.pdst = 0xffff; in mtk_hwlro_get_fdir_entry() 2982 fsp->h_u.tcp_ip4_spec.tos = 0; in mtk_hwlro_get_fdir_entry() [all …]
|
/openbmc/linux/drivers/net/ethernet/sun/ |
H A D | niu.c | 7099 fsp->h_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7102 fsp->h_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7105 fsp->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7108 fsp->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7121 fsp->h_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7125 fsp->h_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7129 fsp->m_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7133 fsp->m_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key() 7367 sip = be32_to_cpu(fsp->h_u.tcp_ip4_spec.ip4src); in niu_get_tcamkey_from_ip4fs() 7392 spm = be16_to_cpu(fsp->m_u.tcp_ip4_spec.psrc); in niu_get_tcamkey_from_ip4fs() [all …]
|
/openbmc/linux/drivers/net/ethernet/cadence/ |
H A D | macb_main.c | 3463 tp4sp_m = &(fs->m_u.tcp_ip4_spec); in gem_enable_flow_filters() 3496 tp4sp_v = &(fs->h_u.tcp_ip4_spec); in gem_prog_cmp_regs() 3497 tp4sp_m = &(fs->m_u.tcp_ip4_spec); in gem_prog_cmp_regs() 3585 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_add_flow_filter() 3586 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_add_flow_filter() 3587 be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc), in gem_add_flow_filter() 3588 be16_to_cpu(fs->h_u.tcp_ip4_spec.pdst)); in gem_add_flow_filter() 3639 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_del_flow_filter() 3640 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_del_flow_filter() 3641 be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc), in gem_del_flow_filter() [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-ethtool.c | 537 err = dpaa2_eth_prep_l4_rule(&fs->h_u.tcp_ip4_spec, &fs->m_u.tcp_ip4_spec, in dpaa2_eth_prep_cls_rule()
|
/openbmc/linux/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_filter.c | 1348 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()
|
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ethtool.c | 1053 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src; in bnxt_grxclsrule() 1054 fs->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(~0); in bnxt_grxclsrule() 1056 fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst; in bnxt_grxclsrule() 1057 fs->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(~0); in bnxt_grxclsrule() 1059 fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule() 1060 fs->m_u.tcp_ip4_spec.psrc = cpu_to_be16(~0); in bnxt_grxclsrule() 1062 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule() 1063 fs->m_u.tcp_ip4_spec.pdst = cpu_to_be16(~0); in bnxt_grxclsrule()
|
/openbmc/linux/drivers/net/ethernet/freescale/ |
H A D | gianfar_ethtool.c | 1109 gfar_set_basic_ip(&rule->h_u.tcp_ip4_spec, in gfar_convert_to_filer() 1110 &rule->m_u.tcp_ip4_spec, tab); in gfar_convert_to_filer()
|
/openbmc/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_ethtool.c | 529 l4ip4_h = &fs->h_u.tcp_ip4_spec; in enetc_set_cls_entry() 530 l4ip4_m = &fs->m_u.tcp_ip4_spec; in enetc_set_cls_entry()
|
/openbmc/linux/drivers/net/ethernet/broadcom/asp2/ |
H A D | bcmasp.c | 460 bcmasp_netfilt_tcpip4_wr(priv, nfilt, &fs->h_u.tcp_ip4_spec, in bcmasp_netfilt_wr_to_hw() 461 &fs->m_u.tcp_ip4_spec, offset); in bcmasp_netfilt_wr_to_hw()
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_flows.c | 534 struct ethtool_tcpip4_spec *ipv4_l4_mask = &fsp->m_u.tcp_ip4_spec; in otx2_prepare_ipv4_flow() 535 struct ethtool_tcpip4_spec *ipv4_l4_hdr = &fsp->h_u.tcp_ip4_spec; in otx2_prepare_ipv4_flow()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.c | 6137 ret = hclge_fd_check_tcpip4_tuple(&fs->h_u.tcp_ip4_spec, in hclge_fd_check_spec() 6186 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple() 6188 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple() 6191 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple() 6193 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple() 6195 rule->tuples.src_port = be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc); in hclge_fd_get_tcpip4_tuple() 6198 rule->tuples.dst_port = be16_to_cpu(fs->h_u.tcp_ip4_spec.pdst); in hclge_fd_get_tcpip4_tuple() 6201 rule->tuples.ip_tos = fs->h_u.tcp_ip4_spec.tos; in hclge_fd_get_tcpip4_tuple() 6202 rule->tuples_mask.ip_tos = fs->m_u.tcp_ip4_spec.tos; in hclge_fd_get_tcpip4_tuple() 6878 hclge_fd_get_tcpip4_info(rule, &fs->h_u.tcp_ip4_spec, in hclge_get_fd_rule_info() [all …]
|