Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c525 if (ipv4_usr_mask->ip4dst) { in otx2_prepare_ipv4_flow()
526 memcpy(&pkt->ip4dst, &ipv4_usr_hdr->ip4dst, in otx2_prepare_ipv4_flow()
527 sizeof(pkt->ip4dst)); in otx2_prepare_ipv4_flow()
528 memcpy(&pmask->ip4dst, &ipv4_usr_mask->ip4dst, in otx2_prepare_ipv4_flow()
529 sizeof(pmask->ip4dst)); in otx2_prepare_ipv4_flow()
578 if (ipv4_l4_mask->ip4dst) { in otx2_prepare_ipv4_flow()
579 memcpy(&pkt->ip4dst, &ipv4_l4_hdr->ip4dst, in otx2_prepare_ipv4_flow()
580 sizeof(pkt->ip4dst)); in otx2_prepare_ipv4_flow()
581 memcpy(&pmask->ip4dst, &ipv4_l4_mask->ip4dst, in otx2_prepare_ipv4_flow()
582 sizeof(pmask->ip4dst)); in otx2_prepare_ipv4_flow()
[all …]
Dotx2_tc.c604 flow_spec->ip4dst = match.key->dst; in otx2_tc_prepare_flow()
605 flow_mask->ip4dst = match.mask->dst; in otx2_tc_prepare_flow()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_ethtool_fdir.c146 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip.v4.dst_ip; in ice_get_ethtool_fdir_entry()
148 fsp->m_u.usr_ip4_spec.ip4dst = rule->mask.v4.dst_ip; in ice_get_ethtool_fdir_entry()
160 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip.v4.dst_ip; in ice_get_ethtool_fdir_entry()
164 fsp->m_u.tcp_ip4_spec.ip4dst = rule->mask.v4.dst_ip; in ice_get_ethtool_fdir_entry()
923 !tcp_ip4_spec->pdst && !tcp_ip4_spec->ip4dst) 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()
1015 if (!usr_ip4_spec->ip4src && !usr_ip4_spec->ip4dst) in ice_set_fdir_ip4_usr_seg()
1032 if (usr_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in ice_set_fdir_ip4_usr_seg()
1036 else if (!usr_ip4_spec->ip4dst) in ice_set_fdir_ip4_usr_seg()
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c243 l4_mask->ip4dst, l4_val->ip4dst); in parse_tcp4()
256 l4_mask->ip4dst, l4_val->ip4dst); in parse_udp4()
269 l3_mask->ip4dst, l3_val->ip4dst); in parse_ip4()
586 if (l4_mask->ip4dst) in validate_tcpudp4()
606 if (l3_mask->ip4dst) in validate_ip4()
/linux-6.1.9/drivers/net/ethernet/sfc/siena/
Dethtool_common.c683 ip_entry->ip4dst = spec.loc_host[0]; in efx_ethtool_get_class_rule()
684 ip_mask->ip4dst = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
762 uip_entry->ip4dst = spec.loc_host[0]; in efx_ethtool_get_class_rule()
763 uip_mask->ip4dst = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
971 if (ip_mask->ip4dst) { in efx_ethtool_set_class_rule()
972 if (ip_mask->ip4dst != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
975 spec.loc_host[0] = ip_entry->ip4dst; in efx_ethtool_set_class_rule()
1040 if (uip_mask->ip4dst) { in efx_ethtool_set_class_rule()
1041 if (uip_mask->ip4dst != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
1044 spec.loc_host[0] = uip_entry->ip4dst; in efx_ethtool_set_class_rule()
/linux-6.1.9/drivers/net/ethernet/sfc/
Dethtool_common.c720 ip_entry->ip4dst = spec.loc_host[0]; in efx_ethtool_get_class_rule()
721 ip_mask->ip4dst = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
799 uip_entry->ip4dst = spec.loc_host[0]; in efx_ethtool_get_class_rule()
800 uip_mask->ip4dst = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
1007 if (ip_mask->ip4dst) { in efx_ethtool_set_class_rule()
1008 if (ip_mask->ip4dst != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
1011 spec.loc_host[0] = ip_entry->ip4dst; in efx_ethtool_set_class_rule()
1076 if (uip_mask->ip4dst) { in efx_ethtool_set_class_rule()
1077 if (uip_mask->ip4dst != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
1080 spec.loc_host[0] = uip_entry->ip4dst; in efx_ethtool_set_class_rule()
/linux-6.1.9/drivers/net/ethernet/sfc/falcon/
Dethtool.c830 ip_entry->ip4dst = spec.loc_host[0]; in ef4_ethtool_get_class_rule()
831 ip_mask->ip4dst = IP4_ADDR_FULL_MASK; in ef4_ethtool_get_class_rule()
909 uip_entry->ip4dst = spec.loc_host[0]; in ef4_ethtool_get_class_rule()
910 uip_mask->ip4dst = IP4_ADDR_FULL_MASK; in ef4_ethtool_get_class_rule()
1072 if (ip_mask->ip4dst) { in ef4_ethtool_set_class_rule()
1073 if (ip_mask->ip4dst != IP4_ADDR_FULL_MASK) in ef4_ethtool_set_class_rule()
1076 spec.loc_host[0] = ip_entry->ip4dst; in ef4_ethtool_set_class_rule()
1141 if (uip_mask->ip4dst) { in ef4_ethtool_set_class_rule()
1142 if (uip_mask->ip4dst != IP4_ADDR_FULL_MASK) in ef4_ethtool_set_class_rule()
1145 spec.loc_host[0] = uip_entry->ip4dst; in ef4_ethtool_set_class_rule()
/linux-6.1.9/drivers/net/ethernet/intel/iavf/
Diavf_ethtool.c1089 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
1094 fsp->m_u.tcp_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
1102 fsp->h_u.ah_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
1106 fsp->m_u.ah_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
1112 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
1118 fsp->m_u.usr_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
1277 fltr->ip_data.v4_addrs.dst_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info()
1282 fltr->ip_mask.v4_addrs.dst_ip = fsp->m_u.tcp_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info()
1290 fltr->ip_data.v4_addrs.dst_ip = fsp->h_u.ah_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info()
1294 fltr->ip_mask.v4_addrs.dst_ip = fsp->m_u.ah_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info()
[all …]
/linux-6.1.9/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c368 if (uip_mask->ip4dst) { in dpaa2_eth_prep_uip_rule()
370 *(__be32 *)(key + off) = uip_value->ip4dst; in dpaa2_eth_prep_uip_rule()
371 *(__be32 *)(mask + off) = uip_mask->ip4dst; in dpaa2_eth_prep_uip_rule()
422 if (l4_mask->ip4dst) { in dpaa2_eth_prep_l4_rule()
424 *(__be32 *)(key + off) = l4_value->ip4dst; in dpaa2_eth_prep_l4_rule()
425 *(__be32 *)(mask + off) = l4_mask->ip4dst; in dpaa2_eth_prep_l4_rule()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1370 !all_zeros_or_all_ones(l4_mask->ip4dst) || in mlx4_en_validate_flow()
1379 (!l3_mask->ip4src && !l3_mask->ip4dst) || in mlx4_en_validate_flow()
1381 !all_zeros_or_all_ones(l3_mask->ip4dst)) in mlx4_en_validate_flow()
1483 usr_ip4_spec.ip4dst); in add_ip_rule()
1490 spec_l3->ipv4.dst_ip = cmd->fs.h_u.usr_ip4_spec.ip4dst; in add_ip_rule()
1491 if (l3_mask->ip4dst) in add_ip_rule()
1527 tcp_ip4_spec.ip4dst); in add_tcp_udp_rule()
1532 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; in add_tcp_udp_rule()
1539 udp_ip4_spec.ip4dst); in add_tcp_udp_rule()
1544 spec_l3->ipv4.dst_ip = cmd->fs.h_u.udp_ip4_spec.ip4dst; in add_tcp_udp_rule()
[all …]
/linux-6.1.9/include/uapi/linux/
Dethtool.h937 __be32 ip4dst; member
954 __be32 ip4dst; member
972 __be32 ip4dst; member
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c473 rfse.dip_h[0] = l4ip4_h->ip4dst; in enetc_set_cls_entry()
474 rfse.dip_m[0] = l4ip4_m->ip4dst; in enetc_set_cls_entry()
490 rfse.dip_h[0] = l3ip4_h->ip4dst; in enetc_set_cls_entry()
491 rfse.dip_m[0] = l3ip4_m->ip4dst; in enetc_set_cls_entry()
/linux-6.1.9/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c435 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()
/linux-6.1.9/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c938 gfar_set_attribute(be32_to_cpu(value->ip4dst), in gfar_set_basic_ip()
939 be32_to_cpu(mask->ip4dst), in gfar_set_basic_ip()
958 gfar_set_attribute(be32_to_cpu(value->ip4dst), in gfar_set_user_ip()
959 be32_to_cpu(mask->ip4dst), in gfar_set_user_ip()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c1687 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()
/linux-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3403 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip; in i40e_get_ethtool_fdir_entry()
3464 fsp->m_u.tcp_ip4_spec.ip4dst = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
4372 if (tcp_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4374 else if (!tcp_ip4_spec->ip4dst) in i40e_check_fdir_input_set()
4459 if (usr_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4461 else if (!usr_ip4_spec->ip4dst) in i40e_check_fdir_input_set()
4872 input->src_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in i40e_add_fdir_ethtool()
4904 input->src_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in i40e_add_fdir_ethtool()
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npc_fs.c872 NPC_WRITE_FLOW(NPC_DIP_IPV4, ip4dst, ntohl(pkt->ip4dst), 0, in npc_update_flow()
873 ntohl(mask->ip4dst), 0); in npc_update_flow()
Dmbox.h1431 __be32 ip4dst; member
/linux-6.1.9/net/ethtool/
Dioctl.c3155 if (v4_m_spec->ip4dst) { in ethtool_rx_flow_rule_create()
3156 match->key.ipv4.dst = v4_spec->ip4dst; in ethtool_rx_flow_rule_create()
3157 match->mask.ipv4.dst = v4_m_spec->ip4dst; in ethtool_rx_flow_rule_create()
3160 v4_m_spec->ip4dst) { in ethtool_rx_flow_rule_create()
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2552 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2553 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2835 input->filter.formatted.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
2836 mask.formatted.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c516 ntohl(fsp->h_u.tcp_ip4_spec.ip4dst); in aq_set_data_fl3l4()
/linux-6.1.9/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c665 &fs->h_u.usr_ip4_spec.ip4dst, in bcmgenet_hfb_create_rxnfc_filter()
666 &fs->m_u.usr_ip4_spec.ip4dst, in bcmgenet_hfb_create_rxnfc_filter()
667 sizeof(fs->h_u.usr_ip4_spec.ip4dst)); in bcmgenet_hfb_create_rxnfc_filter()
1401 VALIDATE_MASK(l4_mask->ip4dst) || in bcmgenet_validate_flow()
/linux-6.1.9/drivers/net/ethernet/cadence/
Dmacb_main.c3363 if (enable && (tp4sp_m->ip4dst == 0xFFFFFFFF)) in gem_enable_flow_filters()
3407 if (tp4sp_m->ip4dst == 0xFFFFFFFF) { in gem_prog_cmp_regs()
3411 w0 = tp4sp_v->ip4dst; in gem_prog_cmp_regs()
3479 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_add_flow_filter()
3533 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_del_flow_filter()
/linux-6.1.9/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c2612 (!fsp->h_u.tcp_ip4_spec.ip4dst) || in mtk_hwlro_add_ipaddr()
2616 mac->hwlro_ip[fsp->location] = htonl(fsp->h_u.tcp_ip4_spec.ip4dst); in mtk_hwlro_add_ipaddr()
2676 fsp->h_u.tcp_ip4_spec.ip4dst = ntohl(mac->hwlro_ip[fsp->location]); in mtk_hwlro_get_fdir_entry()
2677 fsp->m_u.tcp_ip4_spec.ip4dst = 0; in mtk_hwlro_get_fdir_entry()
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c5926 if (!spec->ip4dst) in hclge_fd_check_tcpip4_tuple()
5953 if (!spec->ip4dst) in hclge_fd_check_ip4_tuple()
6256 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple()
6258 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple()
6286 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple()
6288 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple()
6729 spec->ip4dst = cpu_to_be32(rule->tuples.dst_ip[IPV4_INDEX]); in hclge_fd_get_tcpip4_info()
6730 spec_mask->ip4dst = rule->unused_tuple & BIT(INNER_DST_IP) ? in hclge_fd_get_tcpip4_info()
6754 spec->ip4dst = cpu_to_be32(rule->tuples.dst_ip[IPV4_INDEX]); in hclge_fd_get_ip4_info()
6755 spec_mask->ip4dst = rule->unused_tuple & BIT(INNER_DST_IP) ? in hclge_fd_get_ip4_info()

12