Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/google/gve/
H A Dgve_flow_rule.c42 fsp->h_u.tcp_ip4_spec.ip4src = flow_rule->key.src_ip[0]; in gve_fill_ethtool_flow_spec()
43 fsp->h_u.tcp_ip4_spec.ip4dst = flow_rule->key.dst_ip[0]; in gve_fill_ethtool_flow_spec()
44 fsp->h_u.tcp_ip4_spec.psrc = flow_rule->key.src_port; in gve_fill_ethtool_flow_spec()
45 fsp->h_u.tcp_ip4_spec.pdst = flow_rule->key.dst_port; in gve_fill_ethtool_flow_spec()
46 fsp->h_u.tcp_ip4_spec.tos = flow_rule->key.tos; in gve_fill_ethtool_flow_spec()
47 fsp->m_u.tcp_ip4_spec.ip4src = flow_rule->mask.src_ip[0]; in gve_fill_ethtool_flow_spec()
48 fsp->m_u.tcp_ip4_spec.ip4dst = flow_rule->mask.dst_ip[0]; in gve_fill_ethtool_flow_spec()
49 fsp->m_u.tcp_ip4_spec.psrc = flow_rule->mask.src_port; in gve_fill_ethtool_flow_spec()
50 fsp->m_u.tcp_ip4_spec.pdst = flow_rule->mask.dst_port; in gve_fill_ethtool_flow_spec()
51 fsp->m_u.tcp_ip4_spec.tos = flow_rule->mask.tos; in gve_fill_ethtool_flow_spec()
[all …]
/linux/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_ethtool.c125 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; in txgbe_get_ethtool_fdir_entry()
126 fsp->m_u.tcp_ip4_spec.psrc = mask->formatted.src_port; in txgbe_get_ethtool_fdir_entry()
127 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in txgbe_get_ethtool_fdir_entry()
128 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; in txgbe_get_ethtool_fdir_entry()
129 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in txgbe_get_ethtool_fdir_entry()
130 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in txgbe_get_ethtool_fdir_entry()
131 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in txgbe_get_ethtool_fdir_entry()
132 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; in txgbe_get_ethtool_fdir_entry()
382 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in txgbe_add_ethtool_fdir_entry()
383 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in txgbe_add_ethtool_fdir_entry()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c165 fsp->h_u.tcp_ip4_spec.psrc = rule->ip.v4.src_port; in ice_get_ethtool_fdir_entry()
166 fsp->h_u.tcp_ip4_spec.pdst = rule->ip.v4.dst_port; in ice_get_ethtool_fdir_entry()
167 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip.v4.src_ip; in ice_get_ethtool_fdir_entry()
168 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip.v4.dst_ip; in ice_get_ethtool_fdir_entry()
169 fsp->m_u.tcp_ip4_spec.psrc = rule->mask.v4.src_port; in ice_get_ethtool_fdir_entry()
170 fsp->m_u.tcp_ip4_spec.pdst = rule->mask.v4.dst_port; in ice_get_ethtool_fdir_entry()
171 fsp->m_u.tcp_ip4_spec.ip4src = rule->mask.v4.src_ip; in ice_get_ethtool_fdir_entry()
172 fsp->m_u.tcp_ip4_spec.ip4dst = rule->mask.v4.dst_ip; in ice_get_ethtool_fdir_entry()
926 struct ethtool_tcpip4_spec *tcp_ip4_spec, in ice_set_fdir_ip4_seg() argument
932 if (!tcp_ip4_spec->psrc && !tcp_ip4_spec->ip4src && in ice_set_fdir_ip4_seg()
[all …]
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c945 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
946 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
947 fsp->h_u.tcp_ip4_spec.psrc = rule->ip_data.src_port; in iavf_get_ethtool_fdir_entry()
948 fsp->h_u.tcp_ip4_spec.pdst = rule->ip_data.dst_port; in iavf_get_ethtool_fdir_entry()
949 fsp->h_u.tcp_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry()
950 fsp->m_u.tcp_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
951 fsp->m_u.tcp_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
952 fsp->m_u.tcp_ip4_spec.psrc = rule->ip_mask.src_port; in iavf_get_ethtool_fdir_entry()
953 fsp->m_u.tcp_ip4_spec.pdst = rule->ip_mask.dst_port; in iavf_get_ethtool_fdir_entry()
954 fsp->m_u.tcp_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry()
[all …]
/linux/drivers/net/ethernet/cisco/enic/
H A Denic_ethtool.c514 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys); in enic_grxclsrule()
515 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule()
517 fsp->h_u.tcp_ip4_spec.ip4dst = flow_get_u32_dst(&n->keys); in enic_grxclsrule()
518 fsp->m_u.tcp_ip4_spec.ip4dst = (__u32)~0; in enic_grxclsrule()
520 fsp->h_u.tcp_ip4_spec.psrc = n->keys.ports.src; in enic_grxclsrule()
521 fsp->m_u.tcp_ip4_spec.psrc = (__u16)~0; in enic_grxclsrule()
523 fsp->h_u.tcp_ip4_spec.pdst = n->keys.ports.dst; in enic_grxclsrule()
524 fsp->m_u.tcp_ip4_spec.pdst = (__u16)~0; in enic_grxclsrule()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ethtool.c1338 fs->h_u.tcp_ip4_spec.ip4src = entry->key.sip4; in nfp_net_fs_to_ethtool()
1339 fs->h_u.tcp_ip4_spec.ip4dst = entry->key.dip4; in nfp_net_fs_to_ethtool()
1340 fs->h_u.tcp_ip4_spec.psrc = entry->key.sport; in nfp_net_fs_to_ethtool()
1341 fs->h_u.tcp_ip4_spec.pdst = entry->key.dport; in nfp_net_fs_to_ethtool()
1342 fs->m_u.tcp_ip4_spec.ip4src = entry->msk.sip4; in nfp_net_fs_to_ethtool()
1343 fs->m_u.tcp_ip4_spec.ip4dst = entry->msk.dip4; in nfp_net_fs_to_ethtool()
1344 fs->m_u.tcp_ip4_spec.psrc = entry->msk.sport; in nfp_net_fs_to_ethtool()
1345 fs->m_u.tcp_ip4_spec.pdst = entry->msk.dport; in nfp_net_fs_to_ethtool()
1522 entry->msk.sip4 = fs->m_u.tcp_ip4_spec.ip4src; in nfp_net_fs_from_ethtool()
1523 entry->msk.dip4 = fs->m_u.tcp_ip4_spec.ip4dst; in nfp_net_fs_from_ethtool()
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_ethtool.c1676 fs->h_u.tcp_ip4_spec.psrc = cpu_to_be16(dfs->val.fport); in cxgb4_fill_filter_rule()
1677 fs->m_u.tcp_ip4_spec.psrc = cpu_to_be16(dfs->mask.fport); in cxgb4_fill_filter_rule()
1678 fs->h_u.tcp_ip4_spec.pdst = cpu_to_be16(dfs->val.lport); in cxgb4_fill_filter_rule()
1679 fs->m_u.tcp_ip4_spec.pdst = cpu_to_be16(dfs->mask.lport); in cxgb4_fill_filter_rule()
1680 memcpy(&fs->h_u.tcp_ip4_spec.ip4src, &dfs->val.fip[0], in cxgb4_fill_filter_rule()
1681 sizeof(fs->h_u.tcp_ip4_spec.ip4src)); in cxgb4_fill_filter_rule()
1682 memcpy(&fs->m_u.tcp_ip4_spec.ip4src, &dfs->mask.fip[0], in cxgb4_fill_filter_rule()
1683 sizeof(fs->m_u.tcp_ip4_spec.ip4src)); in cxgb4_fill_filter_rule()
1684 memcpy(&fs->h_u.tcp_ip4_spec.ip4dst, &dfs->val.lip[0], in cxgb4_fill_filter_rule()
1685 sizeof(fs->h_u.tcp_ip4_spec.ip4dst)); in cxgb4_fill_filter_rule()
[all …]
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c3405 fsp->h_u.tcp_ip4_spec.psrc = rule->dst_port; in i40e_get_ethtool_fdir_entry()
3406 fsp->h_u.tcp_ip4_spec.pdst = rule->src_port; in i40e_get_ethtool_fdir_entry()
3407 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip; in i40e_get_ethtool_fdir_entry()
3408 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip; in i40e_get_ethtool_fdir_entry()
3466 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3469 fsp->m_u.tcp_ip4_spec.ip4dst = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3472 fsp->m_u.tcp_ip4_spec.psrc = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
3475 fsp->m_u.tcp_ip4_spec.pdst = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
4300 struct ethtool_tcpip4_spec *tcp_ip4_spec; in i40e_check_fdir_input_set() local
4369 tcp_ip4_spec = &fsp->m_u.tcp_ip4_spec; in i40e_check_fdir_input_set()
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_filters.c249 (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/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c2578 fsp->h_u.tcp_ip4_spec.psrc = rule->filter.formatted.src_port; in ixgbe_get_ethtool_fdir_entry()
2579 fsp->m_u.tcp_ip4_spec.psrc = mask->formatted.src_port; in ixgbe_get_ethtool_fdir_entry()
2580 fsp->h_u.tcp_ip4_spec.pdst = rule->filter.formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2581 fsp->m_u.tcp_ip4_spec.pdst = mask->formatted.dst_port; in ixgbe_get_ethtool_fdir_entry()
2582 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2583 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2584 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2585 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2874 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
2875 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c1346 if (cmd->fs.m_u.tcp_ip4_spec.tos) in mlx4_en_validate_flow()
1348 l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in mlx4_en_validate_flow()
1492 struct ethtool_tcpip4_spec *l4_mask = &cmd->fs.m_u.tcp_ip4_spec; in add_tcp_udp_rule()
1508 tcp_ip4_spec.ip4dst); in add_tcp_udp_rule()
1512 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; in add_tcp_udp_rule()
1513 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; in add_tcp_udp_rule()
1514 spec_l4->tcp_udp.src_port = cmd->fs.h_u.tcp_ip4_spec.psrc; in add_tcp_udp_rule()
1515 spec_l4->tcp_udp.dst_port = cmd->fs.h_u.tcp_ip4_spec.pdst; in add_tcp_udp_rule()
/linux/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.c642 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_get_class_rule()
643 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_get_class_rule()
902 struct ethtool_tcpip4_spec *ip_entry = &rule->h_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
903 struct ethtool_tcpip4_spec *ip_mask = &rule->m_u.tcp_ip4_spec; in efx_ethtool_set_class_rule()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c235 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()
/linux/include/uapi/linux/
H A Dethtool.h1335 struct ethtool_tcpip4_spec tcp_ip4_spec; member
1581 struct ethtool_tcpip4_spec tcp_ip4_spec; member
/linux/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c2931 (!fsp->h_u.tcp_ip4_spec.ip4dst) || in mtk_hwlro_add_ipaddr()
2935 mac->hwlro_ip[fsp->location] = htonl(fsp->h_u.tcp_ip4_spec.ip4dst); in mtk_hwlro_add_ipaddr()
2995 fsp->h_u.tcp_ip4_spec.ip4dst = ntohl(mac->hwlro_ip[fsp->location]); in mtk_hwlro_get_fdir_entry()
2996 fsp->m_u.tcp_ip4_spec.ip4dst = 0; in mtk_hwlro_get_fdir_entry()
2998 fsp->h_u.tcp_ip4_spec.ip4src = 0; in mtk_hwlro_get_fdir_entry()
2999 fsp->m_u.tcp_ip4_spec.ip4src = 0xffffffff; in mtk_hwlro_get_fdir_entry()
3000 fsp->h_u.tcp_ip4_spec.psrc = 0; in mtk_hwlro_get_fdir_entry()
3001 fsp->m_u.tcp_ip4_spec.psrc = 0xffff; in mtk_hwlro_get_fdir_entry()
3002 fsp->h_u.tcp_ip4_spec.pdst = 0; in mtk_hwlro_get_fdir_entry()
3003 fsp->m_u.tcp_ip4_spec.pdst = 0xffff; in mtk_hwlro_get_fdir_entry()
[all …]
/linux/drivers/net/ethernet/cadence/
H A Dmacb_main.c3480 tp4sp_m = &(fs->m_u.tcp_ip4_spec); in gem_enable_flow_filters()
3513 tp4sp_v = &(fs->h_u.tcp_ip4_spec); in gem_prog_cmp_regs()
3514 tp4sp_m = &(fs->m_u.tcp_ip4_spec); in gem_prog_cmp_regs()
3602 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_add_flow_filter()
3603 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_add_flow_filter()
3604 be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc), in gem_add_flow_filter()
3605 be16_to_cpu(fs->h_u.tcp_ip4_spec.pdst)); in gem_add_flow_filter()
3656 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_del_flow_filter()
3657 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_del_flow_filter()
3658 be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc), in gem_del_flow_filter()
[all …]
/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_filter.c1348 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()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c1145 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src; in bnxt_grxclsrule()
1146 fs->m_u.tcp_ip4_spec.ip4src = fmasks->addrs.v4addrs.src; in bnxt_grxclsrule()
1147 fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst; in bnxt_grxclsrule()
1148 fs->m_u.tcp_ip4_spec.ip4dst = fmasks->addrs.v4addrs.dst; in bnxt_grxclsrule()
1151 fs->h_u.tcp_ip4_spec.psrc = fkeys->ports.src; in bnxt_grxclsrule()
1152 fs->m_u.tcp_ip4_spec.psrc = fmasks->ports.src; in bnxt_grxclsrule()
1153 fs->h_u.tcp_ip4_spec.pdst = fkeys->ports.dst; in bnxt_grxclsrule()
1154 fs->m_u.tcp_ip4_spec.pdst = fmasks->ports.dst; in bnxt_grxclsrule()
1372 struct ethtool_tcpip4_spec *ip_spec = &fs->h_u.tcp_ip4_spec; in bnxt_add_ntuple_cls_rule()
1373 struct ethtool_tcpip4_spec *ip_mask = &fs->m_u.tcp_ip4_spec; in bnxt_add_ntuple_cls_rule()
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c516 l4ip4_h = &fs->h_u.tcp_ip4_spec; in enetc_set_cls_entry()
517 l4ip4_m = &fs->m_u.tcp_ip4_spec; in enetc_set_cls_entry()
/linux/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c1111 gfar_set_basic_ip(&rule->h_u.tcp_ip4_spec, in gfar_convert_to_filer()
1112 &rule->m_u.tcp_ip4_spec, tab); in gfar_convert_to_filer()
/linux/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp.c477 bcmasp_netfilt_tcpip4_wr(priv, nfilt, &fs->h_u.tcp_ip4_spec, in bcmasp_netfilt_wr_to_hw()
478 &fs->m_u.tcp_ip4_spec, offset); in bcmasp_netfilt_wr_to_hw()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c6210 ret = hclge_fd_check_tcpip4_tuple(&fs->h_u.tcp_ip4_spec, in hclge_fd_check_spec()
6259 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple()
6261 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple()
6264 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple()
6266 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple()
6268 rule->tuples.src_port = be16_to_cpu(fs->h_u.tcp_ip4_spec.psrc); in hclge_fd_get_tcpip4_tuple()
6269 rule->tuples_mask.src_port = be16_to_cpu(fs->m_u.tcp_ip4_spec.psrc); in hclge_fd_get_tcpip4_tuple()
6271 rule->tuples.dst_port = be16_to_cpu(fs->h_u.tcp_ip4_spec.pdst); in hclge_fd_get_tcpip4_tuple()
6272 rule->tuples_mask.dst_port = be16_to_cpu(fs->m_u.tcp_ip4_spec.pdst); in hclge_fd_get_tcpip4_tuple()
6274 rule->tuples.ip_tos = fs->h_u.tcp_ip4_spec.tos; in hclge_fd_get_tcpip4_tuple()
[all …]
/linux/net/ethtool/
H A Dioctl.c3504 v4_spec = &fs->h_u.tcp_ip4_spec; in ethtool_rx_flow_rule_create()
3505 v4_m_spec = &fs->m_u.tcp_ip4_spec; in ethtool_rx_flow_rule_create()