Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c215 l4_mask->ip4dst, l4_val->ip4dst); in parse_tcp4()
228 l4_mask->ip4dst, l4_val->ip4dst); in parse_udp4()
241 l3_mask->ip4dst, l3_val->ip4dst); in parse_ip4()
523 if (l4_mask->ip4dst) in validate_tcpudp4()
543 if (l3_mask->ip4dst) in validate_ip4()
/Linux-v5.4/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c320 if (uip_mask->ip4dst) { in prep_uip_rule()
322 *(__be32 *)(key + off) = uip_value->ip4dst; in prep_uip_rule()
323 *(__be32 *)(mask + off) = uip_mask->ip4dst; in prep_uip_rule()
374 if (l4_mask->ip4dst) { in prep_l4_rule()
376 *(__be32 *)(key + off) = l4_value->ip4dst; in prep_l4_rule()
377 *(__be32 *)(mask + off) = l4_mask->ip4dst; in prep_l4_rule()
/Linux-v5.4/drivers/net/ethernet/sfc/falcon/
Dethtool.c823 ip_entry->ip4dst = spec.loc_host[0]; in ef4_ethtool_get_class_rule()
824 ip_mask->ip4dst = IP4_ADDR_FULL_MASK; in ef4_ethtool_get_class_rule()
902 uip_entry->ip4dst = spec.loc_host[0]; in ef4_ethtool_get_class_rule()
903 uip_mask->ip4dst = IP4_ADDR_FULL_MASK; in ef4_ethtool_get_class_rule()
1065 if (ip_mask->ip4dst) { in ef4_ethtool_set_class_rule()
1066 if (ip_mask->ip4dst != IP4_ADDR_FULL_MASK) in ef4_ethtool_set_class_rule()
1069 spec.loc_host[0] = ip_entry->ip4dst; in ef4_ethtool_set_class_rule()
1134 if (uip_mask->ip4dst) { in ef4_ethtool_set_class_rule()
1135 if (uip_mask->ip4dst != IP4_ADDR_FULL_MASK) in ef4_ethtool_set_class_rule()
1138 spec.loc_host[0] = uip_entry->ip4dst; in ef4_ethtool_set_class_rule()
/Linux-v5.4/drivers/net/ethernet/sfc/
Dethtool.c846 ip_entry->ip4dst = spec.loc_host[0]; in efx_ethtool_get_class_rule()
847 ip_mask->ip4dst = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
925 uip_entry->ip4dst = spec.loc_host[0]; in efx_ethtool_get_class_rule()
926 uip_mask->ip4dst = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
1130 if (ip_mask->ip4dst) { in efx_ethtool_set_class_rule()
1131 if (ip_mask->ip4dst != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
1134 spec.loc_host[0] = ip_entry->ip4dst; in efx_ethtool_set_class_rule()
1199 if (uip_mask->ip4dst) { in efx_ethtool_set_class_rule()
1200 if (uip_mask->ip4dst != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
1203 spec.loc_host[0] = uip_entry->ip4dst; in efx_ethtool_set_class_rule()
/Linux-v5.4/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c335 rfse.dip_h[0] = l4ip4_h->ip4dst; in enetc_set_cls_entry()
336 rfse.dip_m[0] = l4ip4_m->ip4dst; in enetc_set_cls_entry()
352 rfse.dip_h[0] = l3ip4_h->ip4dst; in enetc_set_cls_entry()
353 rfse.dip_m[0] = l3ip4_m->ip4dst; in enetc_set_cls_entry()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1342 !all_zeros_or_all_ones(l4_mask->ip4dst) || in mlx4_en_validate_flow()
1351 (!l3_mask->ip4src && !l3_mask->ip4dst) || in mlx4_en_validate_flow()
1353 !all_zeros_or_all_ones(l3_mask->ip4dst)) in mlx4_en_validate_flow()
1456 usr_ip4_spec.ip4dst); in add_ip_rule()
1463 spec_l3->ipv4.dst_ip = cmd->fs.h_u.usr_ip4_spec.ip4dst; in add_ip_rule()
1464 if (l3_mask->ip4dst) in add_ip_rule()
1500 tcp_ip4_spec.ip4dst); in add_tcp_udp_rule()
1505 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; in add_tcp_udp_rule()
1512 udp_ip4_spec.ip4dst); in add_tcp_udp_rule()
1517 spec_l3->ipv4.dst_ip = cmd->fs.h_u.udp_ip4_spec.ip4dst; in add_tcp_udp_rule()
[all …]
/Linux-v5.4/include/uapi/linux/
Dethtool.h760 __be32 ip4dst; member
777 __be32 ip4dst; member
795 __be32 ip4dst; member
/Linux-v5.4/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c463 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()
/Linux-v5.4/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c963 gfar_set_attribute(be32_to_cpu(value->ip4dst), in gfar_set_basic_ip()
964 be32_to_cpu(mask->ip4dst), in gfar_set_basic_ip()
983 gfar_set_attribute(be32_to_cpu(value->ip4dst), in gfar_set_user_ip()
984 be32_to_cpu(mask->ip4dst), in gfar_set_user_ip()
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3227 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip; in i40e_get_ethtool_fdir_entry()
3261 fsp->m_u.tcp_ip4_spec.ip4dst = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
4118 if (tcp_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4120 else if (!tcp_ip4_spec->ip4dst) in i40e_check_fdir_input_set()
4158 if (usr_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4160 else if (!usr_ip4_spec->ip4dst) in i40e_check_fdir_input_set()
4525 input->src_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in i40e_add_fdir_ethtool()
4535 input->src_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in i40e_add_fdir_ethtool()
/Linux-v5.4/net/core/
Dethtool.c2931 if (v4_m_spec->ip4dst) { in ethtool_rx_flow_rule_create()
2932 match->key.ipv4.dst = v4_spec->ip4dst; in ethtool_rx_flow_rule_create()
2933 match->mask.ipv4.dst = v4_m_spec->ip4dst; in ethtool_rx_flow_rule_create()
2936 v4_m_spec->ip4dst) { in ethtool_rx_flow_rule_create()
/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()
/Linux-v5.4/drivers/net/ethernet/cadence/
Dmacb_main.c2888 if (enable && (tp4sp_m->ip4dst == 0xFFFFFFFF)) in gem_enable_flow_filters()
2929 if (tp4sp_m->ip4dst == 0xFFFFFFFF) { in gem_prog_cmp_regs()
2933 w0 = tp4sp_v->ip4dst; in gem_prog_cmp_regs()
3001 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_add_flow_filter()
3054 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_del_flow_filter()
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2460 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()
2743 input->filter.formatted.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
2744 mask.formatted.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c508 ntohl(fsp->h_u.tcp_ip4_spec.ip4dst); in aq_set_data_fl3l4()
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c5163 if (!tcp_ip4_spec->ip4dst) in hclge_fd_check_spec()
5184 if (!usr_ip4_spec->ip4dst) in hclge_fd_check_spec()
5382 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tuple()
5384 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tuple()
5408 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4dst); in hclge_fd_get_tuple()
5410 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4dst); in hclge_fd_get_tuple()
5803 fs->h_u.tcp_ip4_spec.ip4dst = in hclge_get_fd_rule_info()
5805 fs->m_u.tcp_ip4_spec.ip4dst = in hclge_get_fd_rule_info()
5832 fs->h_u.usr_ip4_spec.ip4dst = in hclge_get_fd_rule_info()
5834 fs->m_u.usr_ip4_spec.ip4dst = in hclge_get_fd_rule_info()
/Linux-v5.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c959 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()
/Linux-v5.4/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c1433 fsp->h_u.tcp_ip4_spec.ip4dst = fltr->tuple.dst_ipv4; in qede_get_cls_rule_entry()
/Linux-v5.4/drivers/net/ethernet/sun/
Dniu.c7086 fsp->h_u.tcp_ip4_spec.ip4dst = 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()
7353 dip = be32_to_cpu(fsp->h_u.tcp_ip4_spec.ip4dst); in niu_get_tcamkey_from_ip4fs()
7354 dipm = be32_to_cpu(fsp->m_u.tcp_ip4_spec.ip4dst); in niu_get_tcamkey_from_ip4fs()