Home
last modified time | relevance | path

Searched refs:tcp_ip4_spec (Results 1 – 19 of 19) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c460 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-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3224 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry()
3225 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry()
3226 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip; in i40e_get_ethtool_fdir_entry()
3227 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip; in i40e_get_ethtool_fdir_entry()
3258 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3261 fsp->m_u.tcp_ip4_spec.ip4dst = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3264 fsp->m_u.tcp_ip4_spec.psrc = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
3267 fsp->m_u.tcp_ip4_spec.pdst = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
4056 struct ethtool_tcpip4_spec *tcp_ip4_spec; in i40e_check_fdir_input_set() local
4107 tcp_ip4_spec = &fsp->m_u.tcp_ip4_spec; in i40e_check_fdir_input_set()
[all …]
/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c242 (fsp->h_u.tcp_ip4_spec.tos || in aq_rule_is_not_support()
506 ntohl(fsp->h_u.tcp_ip4_spec.ip4src); in aq_set_data_fl3l4()
508 ntohl(fsp->h_u.tcp_ip4_spec.ip4dst); in aq_set_data_fl3l4()
526 ntohs(fsp->h_u.tcp_ip4_spec.pdst); in aq_set_data_fl3l4()
528 ntohs(fsp->h_u.tcp_ip4_spec.psrc); in aq_set_data_fl3l4()
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2454 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; in ixgbe_get_ethtool_fdir_entry()
2455 fsp->m_u.tcp_ip4_spec.psrc = mask->formatted.src_port; in ixgbe_get_ethtool_fdir_entry()
2456 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2457 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2458 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2459 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2460 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2461 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2741 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
2742 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
[all …]
/Linux-v5.4/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c1854 (!fsp->h_u.tcp_ip4_spec.ip4dst) || in mtk_hwlro_add_ipaddr()
1858 mac->hwlro_ip[fsp->location] = htonl(fsp->h_u.tcp_ip4_spec.ip4dst); in mtk_hwlro_add_ipaddr()
1915 fsp->h_u.tcp_ip4_spec.ip4dst = ntohl(mac->hwlro_ip[fsp->location]); in mtk_hwlro_get_fdir_entry()
1916 fsp->m_u.tcp_ip4_spec.ip4dst = 0; in mtk_hwlro_get_fdir_entry()
1918 fsp->h_u.tcp_ip4_spec.ip4src = 0; in mtk_hwlro_get_fdir_entry()
1919 fsp->m_u.tcp_ip4_spec.ip4src = 0xffffffff; in mtk_hwlro_get_fdir_entry()
1920 fsp->h_u.tcp_ip4_spec.psrc = 0; in mtk_hwlro_get_fdir_entry()
1921 fsp->m_u.tcp_ip4_spec.psrc = 0xffff; in mtk_hwlro_get_fdir_entry()
1922 fsp->h_u.tcp_ip4_spec.pdst = 0; in mtk_hwlro_get_fdir_entry()
1923 fsp->m_u.tcp_ip4_spec.pdst = 0xffff; in mtk_hwlro_get_fdir_entry()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1337 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-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c5135 struct ethtool_tcpip4_spec *tcp_ip4_spec; in hclge_fd_check_spec() local
5157 tcp_ip4_spec = &fs->h_u.tcp_ip4_spec; in hclge_fd_check_spec()
5160 if (!tcp_ip4_spec->ip4src) in hclge_fd_check_spec()
5163 if (!tcp_ip4_spec->ip4dst) in hclge_fd_check_spec()
5166 if (!tcp_ip4_spec->psrc) in hclge_fd_check_spec()
5169 if (!tcp_ip4_spec->pdst) in hclge_fd_check_spec()
5172 if (!tcp_ip4_spec->tos) in hclge_fd_check_spec()
5377 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tuple()
5379 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tuple()
5382 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tuple()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c211 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in parse_tcp4()
212 struct ethtool_tcpip4_spec *l4_val = &fs->h_u.tcp_ip4_spec; in parse_tcp4()
515 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in validate_tcpudp4()
/Linux-v5.4/include/uapi/linux/
Dethtool.h853 struct ethtool_tcpip4_spec tcp_ip4_spec; member
1094 struct ethtool_tcpip4_spec tcp_ip4_spec; member
/Linux-v5.4/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c322 l4ip4_h = &fs->h_u.tcp_ip4_spec; in enetc_set_cls_entry()
323 l4ip4_m = &fs->m_u.tcp_ip4_spec; in enetc_set_cls_entry()
/Linux-v5.4/drivers/net/ethernet/sfc/falcon/
Dethtool.c788 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in ef4_ethtool_get_class_rule()
789 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_get_class_rule()
1024 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in ef4_ethtool_set_class_rule()
1025 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in ef4_ethtool_set_class_rule()
/Linux-v5.4/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c459 err = prep_l4_rule(&fs->h_u.tcp_ip4_spec, &fs->m_u.tcp_ip4_spec, in prep_cls_rule()
/Linux-v5.4/drivers/net/ethernet/sfc/
Dethtool.c811 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_get_class_rule()
812 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_get_class_rule()
1080 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
1081 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
/Linux-v5.4/drivers/net/ethernet/cadence/
Dmacb_main.c2881 tp4sp_m = &(fs->m_u.tcp_ip4_spec); in gem_enable_flow_filters()
2911 tp4sp_v = &(fs->h_u.tcp_ip4_spec); in gem_prog_cmp_regs()
2912 tp4sp_m = &(fs->m_u.tcp_ip4_spec); in gem_prog_cmp_regs()
3000 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_add_flow_filter()
3001 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_add_flow_filter()
3002 htons(fs->h_u.tcp_ip4_spec.psrc), htons(fs->h_u.tcp_ip4_spec.pdst)); in gem_add_flow_filter()
3053 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_del_flow_filter()
3054 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_del_flow_filter()
3055 htons(fs->h_u.tcp_ip4_spec.psrc), in gem_del_flow_filter()
3056 htons(fs->h_u.tcp_ip4_spec.pdst)); in gem_del_flow_filter()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c956 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src; in bnxt_grxclsrule()
957 fs->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(~0); in bnxt_grxclsrule()
959 fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst; in bnxt_grxclsrule()
960 fs->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(~0); in bnxt_grxclsrule()
962 fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule()
963 fs->m_u.tcp_ip4_spec.psrc = cpu_to_be16(~0); in bnxt_grxclsrule()
965 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule()
966 fs->m_u.tcp_ip4_spec.pdst = cpu_to_be16(~0); in bnxt_grxclsrule()
/Linux-v5.4/drivers/net/ethernet/sun/
Dniu.c7083 fsp->h_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7086 fsp->h_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7089 fsp->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7092 fsp->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7094 fsp->h_u.tcp_ip4_spec.tos = (tp->key[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key()
7096 fsp->m_u.tcp_ip4_spec.tos = (tp->key_mask[2] & TCAM_V4KEY2_TOS) >> in niu_get_ip4fs_from_tcam_key()
7105 fsp->h_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key()
7109 fsp->h_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key()
7113 fsp->m_u.tcp_ip4_spec.psrc = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key()
7117 fsp->m_u.tcp_ip4_spec.pdst = cpu_to_be16(prt); in niu_get_ip4fs_from_tcam_key()
[all …]
/Linux-v5.4/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c1430 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()
/Linux-v5.4/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1132 gfar_set_basic_ip(&rule->h_u.tcp_ip4_spec, in gfar_convert_to_filer()
1133 &rule->m_u.tcp_ip4_spec, tab); in gfar_convert_to_filer()
/Linux-v5.4/net/core/
Dethtool.c2924 v4_spec = &fs->h_u.tcp_ip4_spec; in ethtool_rx_flow_rule_create()
2925 v4_m_spec = &fs->m_u.tcp_ip4_spec; in ethtool_rx_flow_rule_create()