/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_flows.c | 508 if (ipv4_usr_mask->ip4dst) { in otx2_prepare_ipv4_flow() 509 memcpy(&pkt->ip4dst, &ipv4_usr_hdr->ip4dst, in otx2_prepare_ipv4_flow() 510 sizeof(pkt->ip4dst)); in otx2_prepare_ipv4_flow() 511 memcpy(&pmask->ip4dst, &ipv4_usr_mask->ip4dst, in otx2_prepare_ipv4_flow() 561 if (ipv4_l4_mask->ip4dst) { in otx2_prepare_ipv4_flow() 562 memcpy(&pkt->ip4dst, &ipv4_l4_hdr->ip4dst, in otx2_prepare_ipv4_flow() 563 sizeof(pkt->ip4dst)); in otx2_prepare_ipv4_flow() 564 memcpy(&pmask->ip4dst, &ipv4_l4_mask->ip4dst, in otx2_prepare_ipv4_flow() 616 if (ah_esp_mask->ip4dst) { in otx2_prepare_ipv4_flow() 617 memcpy(&pkt->ip4dst, &ah_esp_hdr->ip4dst, in otx2_prepare_ipv4_flow() [all …]
|
A D | otx2_tc.c | 527 flow_spec->ip4dst = match.key->dst; in otx2_tc_prepare_flow() 528 flow_mask->ip4dst = match.mask->dst; in otx2_tc_prepare_flow()
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_ethtool_fdir.c | 145 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip.v4.dst_ip; in ice_get_ethtool_fdir_entry() 147 fsp->m_u.usr_ip4_spec.ip4dst = rule->mask.v4.dst_ip; in ice_get_ethtool_fdir_entry() 159 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip.v4.dst_ip; in ice_get_ethtool_fdir_entry() 163 fsp->m_u.tcp_ip4_spec.ip4dst = rule->mask.v4.dst_ip; in ice_get_ethtool_fdir_entry() 777 !tcp_ip4_spec->pdst && !tcp_ip4_spec->ip4dst) in ice_set_fdir_ip4_seg() 811 if (tcp_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in ice_set_fdir_ip4_seg() 815 else if (!tcp_ip4_spec->ip4dst) in ice_set_fdir_ip4_seg() 869 if (!usr_ip4_spec->ip4src && !usr_ip4_spec->ip4dst) in ice_set_fdir_ip4_usr_seg() 886 if (usr_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in ice_set_fdir_ip4_usr_seg() 890 else if (!usr_ip4_spec->ip4dst) in ice_set_fdir_ip4_usr_seg() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_fs_ethtool.c | 226 l4_mask->ip4dst, l4_val->ip4dst); in parse_tcp4() 239 l4_mask->ip4dst, l4_val->ip4dst); in parse_udp4() 252 l3_mask->ip4dst, l3_val->ip4dst); in parse_ip4() 574 if (l4_mask->ip4dst) in validate_tcpudp4() 594 if (l3_mask->ip4dst) in validate_ip4()
|
/linux/drivers/net/ethernet/sfc/falcon/ |
A D | ethtool.c | 824 ip_entry->ip4dst = spec.loc_host[0]; in ef4_ethtool_get_class_rule() 825 ip_mask->ip4dst = IP4_ADDR_FULL_MASK; in ef4_ethtool_get_class_rule() 903 uip_entry->ip4dst = spec.loc_host[0]; in ef4_ethtool_get_class_rule() 904 uip_mask->ip4dst = IP4_ADDR_FULL_MASK; in ef4_ethtool_get_class_rule() 1066 if (ip_mask->ip4dst) { in ef4_ethtool_set_class_rule() 1067 if (ip_mask->ip4dst != IP4_ADDR_FULL_MASK) in ef4_ethtool_set_class_rule() 1070 spec.loc_host[0] = ip_entry->ip4dst; in ef4_ethtool_set_class_rule() 1135 if (uip_mask->ip4dst) { in ef4_ethtool_set_class_rule() 1136 if (uip_mask->ip4dst != IP4_ADDR_FULL_MASK) in ef4_ethtool_set_class_rule() 1139 spec.loc_host[0] = uip_entry->ip4dst; in ef4_ethtool_set_class_rule()
|
/linux/drivers/net/ethernet/sfc/ |
A D | ethtool_common.c | 682 ip_entry->ip4dst = spec.loc_host[0]; in efx_ethtool_get_class_rule() 683 ip_mask->ip4dst = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule() 761 uip_entry->ip4dst = spec.loc_host[0]; in efx_ethtool_get_class_rule() 762 uip_mask->ip4dst = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule() 969 if (ip_mask->ip4dst) { in efx_ethtool_set_class_rule() 970 if (ip_mask->ip4dst != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule() 973 spec.loc_host[0] = ip_entry->ip4dst; in efx_ethtool_set_class_rule() 1038 if (uip_mask->ip4dst) { in efx_ethtool_set_class_rule() 1039 if (uip_mask->ip4dst != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule() 1042 spec.loc_host[0] = uip_entry->ip4dst; in efx_ethtool_set_class_rule()
|
/linux/drivers/net/ethernet/intel/iavf/ |
A D | iavf_ethtool.c | 1081 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1086 fsp->m_u.tcp_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1094 fsp->h_u.ah_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1098 fsp->m_u.ah_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1104 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1110 fsp->m_u.usr_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1269 fltr->ip_data.v4_addrs.dst_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info() 1274 fltr->ip_mask.v4_addrs.dst_ip = fsp->m_u.tcp_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info() 1282 fltr->ip_data.v4_addrs.dst_ip = fsp->h_u.ah_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info() 1286 fltr->ip_mask.v4_addrs.dst_ip = fsp->m_u.ah_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info() [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
A 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()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | en_ethtool.c | 1366 !all_zeros_or_all_ones(l4_mask->ip4dst) || in mlx4_en_validate_flow() 1375 (!l3_mask->ip4src && !l3_mask->ip4dst) || in mlx4_en_validate_flow() 1377 !all_zeros_or_all_ones(l3_mask->ip4dst)) in mlx4_en_validate_flow() 1479 usr_ip4_spec.ip4dst); in add_ip_rule() 1486 spec_l3->ipv4.dst_ip = cmd->fs.h_u.usr_ip4_spec.ip4dst; in add_ip_rule() 1487 if (l3_mask->ip4dst) in add_ip_rule() 1523 tcp_ip4_spec.ip4dst); in add_tcp_udp_rule() 1528 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; in add_tcp_udp_rule() 1535 udp_ip4_spec.ip4dst); in add_tcp_udp_rule() 1540 spec_l3->ipv4.dst_ip = cmd->fs.h_u.udp_ip4_spec.ip4dst; in add_tcp_udp_rule() [all …]
|
/linux/drivers/net/ethernet/freescale/enetc/ |
A D | enetc_ethtool.c | 364 rfse.dip_h[0] = l4ip4_h->ip4dst; in enetc_set_cls_entry() 365 rfse.dip_m[0] = l4ip4_m->ip4dst; in enetc_set_cls_entry() 381 rfse.dip_h[0] = l3ip4_h->ip4dst; in enetc_set_cls_entry() 382 rfse.dip_m[0] = l3ip4_m->ip4dst; in enetc_set_cls_entry()
|
/linux/include/uapi/linux/ |
A D | ethtool.h | 891 __be32 ip4dst; member 908 __be32 ip4dst; member 926 __be32 ip4dst; member
|
/linux/drivers/net/ethernet/freescale/ |
A D | gianfar_ethtool.c | 934 gfar_set_attribute(be32_to_cpu(value->ip4dst), in gfar_set_basic_ip() 935 be32_to_cpu(mask->ip4dst), in gfar_set_basic_ip() 954 gfar_set_attribute(be32_to_cpu(value->ip4dst), in gfar_set_user_ip() 955 be32_to_cpu(mask->ip4dst), in gfar_set_user_ip()
|
/linux/drivers/net/ethernet/cisco/enic/ |
A D | enic_ethtool.c | 446 fsp->h_u.tcp_ip4_spec.ip4dst = flow_get_u32_dst(&n->keys); in enic_grxclsrule() 447 fsp->m_u.tcp_ip4_spec.ip4dst = (__u32)~0; in enic_grxclsrule()
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
A D | cxgb4_ethtool.c | 1683 memcpy(&fs->h_u.tcp_ip4_spec.ip4dst, &dfs->val.lip[0], in cxgb4_fill_filter_rule() 1684 sizeof(fs->h_u.tcp_ip4_spec.ip4dst)); in cxgb4_fill_filter_rule() 1685 memcpy(&fs->m_u.tcp_ip4_spec.ip4dst, &dfs->mask.lip[0], in cxgb4_fill_filter_rule() 1686 sizeof(fs->m_u.tcp_ip4_spec.ip4dst)); in cxgb4_fill_filter_rule()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
A D | rvu_npc_fs.c | 837 NPC_WRITE_FLOW(NPC_DIP_IPV4, ip4dst, ntohl(pkt->ip4dst), 0, in npc_update_flow() 838 ntohl(mask->ip4dst), 0); in npc_update_flow()
|
A D | mbox.h | 1343 __be32 ip4dst; member
|
A D | rvu_debugfs.c | 2437 seq_printf(s, "%pI4 ", &rule->packet.ip4dst); in rvu_dbg_npc_mcam_show_flows() 2438 seq_printf(s, "mask %pI4\n", &rule->mask.ip4dst); in rvu_dbg_npc_mcam_show_flows()
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_ethtool.c | 3290 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip; in i40e_get_ethtool_fdir_entry() 3351 fsp->m_u.tcp_ip4_spec.ip4dst = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry() 4246 if (tcp_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set() 4248 else if (!tcp_ip4_spec->ip4dst) in i40e_check_fdir_input_set() 4333 if (usr_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set() 4335 else if (!usr_ip4_spec->ip4dst) in i40e_check_fdir_input_set() 4754 input->src_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in i40e_add_fdir_ethtool() 4786 input->src_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in i40e_add_fdir_ethtool()
|
/linux/net/ethtool/ |
A D | ioctl.c | 3155 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/drivers/net/ethernet/mediatek/ |
A D | mtk_eth_soc.c | 1928 (!fsp->h_u.tcp_ip4_spec.ip4dst) || in mtk_hwlro_add_ipaddr() 1932 mac->hwlro_ip[fsp->location] = htonl(fsp->h_u.tcp_ip4_spec.ip4dst); in mtk_hwlro_add_ipaddr() 1989 fsp->h_u.tcp_ip4_spec.ip4dst = ntohl(mac->hwlro_ip[fsp->location]); in mtk_hwlro_get_fdir_entry() 1990 fsp->m_u.tcp_ip4_spec.ip4dst = 0; in mtk_hwlro_get_fdir_entry()
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe_ethtool.c | 2550 fsp->h_u.tcp_ip4_spec.ip4dst = rule->filter.formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2551 fsp->m_u.tcp_ip4_spec.ip4dst = mask->formatted.dst_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2833 input->filter.formatted.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry() 2834 mask.formatted.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
|
/linux/drivers/net/ethernet/cadence/ |
A D | macb_main.c | 3260 if (enable && (tp4sp_m->ip4dst == 0xFFFFFFFF)) in gem_enable_flow_filters() 3304 if (tp4sp_m->ip4dst == 0xFFFFFFFF) { in gem_prog_cmp_regs() 3308 w0 = tp4sp_v->ip4dst; in gem_prog_cmp_regs() 3376 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_add_flow_filter() 3429 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_del_flow_filter()
|
/linux/drivers/net/ethernet/aquantia/atlantic/ |
A D | aq_filters.c | 516 ntohl(fsp->h_u.tcp_ip4_spec.ip4dst); in aq_set_data_fl3l4()
|
/linux/drivers/net/ethernet/broadcom/genet/ |
A 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() 1401 VALIDATE_MASK(l4_mask->ip4dst) || in bcmgenet_validate_flow()
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
A D | hclge_main.c | 6199 if (!spec->ip4dst) in hclge_fd_check_tcpip4_tuple() 6226 if (!spec->ip4dst) in hclge_fd_check_ip4_tuple() 6529 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple() 6531 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple() 6559 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple() 6561 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple() 7002 spec->ip4dst = cpu_to_be32(rule->tuples.dst_ip[IPV4_INDEX]); in hclge_fd_get_tcpip4_info() 7003 spec_mask->ip4dst = rule->unused_tuple & BIT(INNER_DST_IP) ? in hclge_fd_get_tcpip4_info() 7027 spec->ip4dst = cpu_to_be32(rule->tuples.dst_ip[IPV4_INDEX]); in hclge_fd_get_ip4_info() 7028 spec_mask->ip4dst = rule->unused_tuple & BIT(INNER_DST_IP) ? in hclge_fd_get_ip4_info()
|