/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 550 if (ipv4_usr_mask->ip4dst) { in otx2_prepare_ipv4_flow() 551 memcpy(&pkt->ip4dst, &ipv4_usr_hdr->ip4dst, in otx2_prepare_ipv4_flow() 552 sizeof(pkt->ip4dst)); in otx2_prepare_ipv4_flow() 553 memcpy(&pmask->ip4dst, &ipv4_usr_mask->ip4dst, in otx2_prepare_ipv4_flow() 554 sizeof(pmask->ip4dst)); in otx2_prepare_ipv4_flow() 603 if (ipv4_l4_mask->ip4dst) { in otx2_prepare_ipv4_flow() 604 memcpy(&pkt->ip4dst, &ipv4_l4_hdr->ip4dst, in otx2_prepare_ipv4_flow() 605 sizeof(pkt->ip4dst)); in otx2_prepare_ipv4_flow() 606 memcpy(&pmask->ip4dst, &ipv4_l4_mask->ip4dst, in otx2_prepare_ipv4_flow() 607 sizeof(pmask->ip4dst)); in otx2_prepare_ipv4_flow() [all …]
|
D | otx2_tc.c | 616 flow_spec->ip4dst = match.key->dst; in otx2_tc_prepare_flow() 617 flow_mask->ip4dst = match.mask->dst; in otx2_tc_prepare_flow()
|
/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool_fdir.c | 146 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 …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 243 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()
|
/drivers/net/ethernet/sfc/siena/ |
D | ethtool_common.c | 683 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()
|
/drivers/net/ethernet/sfc/ |
D | ethtool_common.c | 720 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()
|
/drivers/net/ethernet/sfc/falcon/ |
D | ethtool.c | 830 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()
|
/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 1087 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1092 fsp->m_u.tcp_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1100 fsp->h_u.ah_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1104 fsp->m_u.ah_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1110 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1116 fsp->m_u.usr_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1275 fltr->ip_data.v4_addrs.dst_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info() 1280 fltr->ip_mask.v4_addrs.dst_ip = fsp->m_u.tcp_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info() 1289 fltr->ip_data.v4_addrs.dst_ip = fsp->h_u.ah_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info() 1293 fltr->ip_mask.v4_addrs.dst_ip = fsp->m_u.ah_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info() [all …]
|
/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 366 if (uip_mask->ip4dst) { in dpaa2_eth_prep_uip_rule() 368 *(__be32 *)(key + off) = uip_value->ip4dst; in dpaa2_eth_prep_uip_rule() 369 *(__be32 *)(mask + off) = uip_mask->ip4dst; in dpaa2_eth_prep_uip_rule() 420 if (l4_mask->ip4dst) { in dpaa2_eth_prep_l4_rule() 422 *(__be32 *)(key + off) = l4_value->ip4dst; in dpaa2_eth_prep_l4_rule() 423 *(__be32 *)(mask + off) = l4_mask->ip4dst; in dpaa2_eth_prep_l4_rule()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 1370 !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 …]
|
/drivers/net/ethernet/freescale/enetc/ |
D | enetc_ethtool.c | 473 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()
|
/drivers/net/ethernet/freescale/ |
D | gianfar_ethtool.c | 938 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()
|
/drivers/net/ethernet/cisco/enic/ |
D | enic_ethtool.c | 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()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_ethtool.c | 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()
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 3403 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()
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_npc_fs.c | 912 NPC_WRITE_FLOW(NPC_DIP_IPV4, ip4dst, ntohl(pkt->ip4dst), 0, in npc_update_flow() 913 ntohl(mask->ip4dst), 0); in npc_update_flow()
|
D | mbox.h | 1435 __be32 ip4dst; member
|
D | rvu_debugfs.c | 2799 seq_printf(s, "%pI4 ", &rule->packet.ip4dst); in rvu_dbg_npc_mcam_show_flows() 2800 seq_printf(s, "mask %pI4\n", &rule->mask.ip4dst); in rvu_dbg_npc_mcam_show_flows()
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 2552 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() 2844 input->filter.formatted.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry() 2845 mask.formatted.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
|
/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_filters.c | 516 ntohl(fsp->h_u.tcp_ip4_spec.ip4dst); in aq_set_data_fl3l4()
|
/drivers/net/ethernet/broadcom/genet/ |
D | bcmgenet.c | 665 &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() 1398 VALIDATE_MASK(l4_mask->ip4dst) || in bcmgenet_validate_flow()
|
/drivers/net/ethernet/cadence/ |
D | macb_main.c | 3377 if (enable && (tp4sp_m->ip4dst == 0xFFFFFFFF)) in gem_enable_flow_filters() 3421 if (tp4sp_m->ip4dst == 0xFFFFFFFF) { in gem_prog_cmp_regs() 3425 w0 = tp4sp_v->ip4dst; in gem_prog_cmp_regs() 3493 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_add_flow_filter() 3547 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_del_flow_filter()
|
/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 2613 (!fsp->h_u.tcp_ip4_spec.ip4dst) || in mtk_hwlro_add_ipaddr() 2617 mac->hwlro_ip[fsp->location] = htonl(fsp->h_u.tcp_ip4_spec.ip4dst); in mtk_hwlro_add_ipaddr() 2677 fsp->h_u.tcp_ip4_spec.ip4dst = ntohl(mac->hwlro_ip[fsp->location]); in mtk_hwlro_get_fdir_entry() 2678 fsp->m_u.tcp_ip4_spec.ip4dst = 0; in mtk_hwlro_get_fdir_entry()
|
/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.c | 5937 if (!spec->ip4dst) in hclge_fd_check_tcpip4_tuple() 5964 if (!spec->ip4dst) in hclge_fd_check_ip4_tuple() 6267 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple() 6269 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple() 6297 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple() 6299 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple() 6740 spec->ip4dst = cpu_to_be32(rule->tuples.dst_ip[IPV4_INDEX]); in hclge_fd_get_tcpip4_info() 6741 spec_mask->ip4dst = rule->unused_tuple & BIT(INNER_DST_IP) ? in hclge_fd_get_tcpip4_info() 6765 spec->ip4dst = cpu_to_be32(rule->tuples.dst_ip[IPV4_INDEX]); in hclge_fd_get_ip4_info() 6766 spec_mask->ip4dst = rule->unused_tuple & BIT(INNER_DST_IP) ? in hclge_fd_get_ip4_info()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 1057 fs->h_u.tcp_ip4_spec.ip4dst = fkeys->addrs.v4addrs.dst; in bnxt_grxclsrule() 1058 fs->m_u.tcp_ip4_spec.ip4dst = cpu_to_be32(~0); in bnxt_grxclsrule()
|