Home
last modified time | relevance | path

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

12

/linux/drivers/net/ethernet/google/gve/
H A Dgve_flow_rule.c43 fsp->h_u.tcp_ip4_spec.ip4dst = flow_rule->key.dst_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()
56 fsp->h_u.ah_ip4_spec.ip4dst = flow_rule->key.dst_ip[0]; in gve_fill_ethtool_flow_spec()
60 fsp->m_u.ah_ip4_spec.ip4dst = flow_rule->mask.dst_ip[0]; in gve_fill_ethtool_flow_spec()
142 rule->key.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in gve_generate_flow_rule()
146 rule->mask.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; in gve_generate_flow_rule()
153 rule->key.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in gve_generate_flow_rule()
156 rule->mask.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; in gve_generate_flow_rule()
/linux/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.c677 ip_entry->ip4dst = spec.loc_host[0]; in efx_ethtool_get_class_rule()
678 ip_mask->ip4dst = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
756 uip_entry->ip4dst = spec.loc_host[0]; in efx_ethtool_get_class_rule()
757 uip_mask->ip4dst = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
952 if (ip_mask->ip4dst) { in efx_ethtool_set_class_rule()
953 if (ip_mask->ip4dst != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
956 spec.loc_host[0] = ip_entry->ip4dst; in efx_ethtool_set_class_rule()
1021 if (uip_mask->ip4dst) { in efx_ethtool_set_class_rule()
1022 if (uip_mask->ip4dst != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
1025 spec.loc_host[0] = uip_entry->ip4dst; in efx_ethtool_set_class_rule()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c154 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip.v4.dst_ip; in ice_get_ethtool_fdir_entry()
156 fsp->m_u.usr_ip4_spec.ip4dst = rule->mask.v4.dst_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()
172 fsp->m_u.tcp_ip4_spec.ip4dst = rule->mask.v4.dst_ip; in ice_get_ethtool_fdir_entry()
933 !tcp_ip4_spec->pdst && !tcp_ip4_spec->ip4dst) in ice_set_fdir_ip4_seg()
967 if (tcp_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in ice_set_fdir_ip4_seg()
971 else if (!tcp_ip4_spec->ip4dst) in ice_set_fdir_ip4_seg()
1025 if (!usr_ip4_spec->ip4src && !usr_ip4_spec->ip4dst) in ice_set_fdir_ip4_usr_seg()
1042 if (usr_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in ice_set_fdir_ip4_usr_seg()
1046 else if (!usr_ip4_spec->ip4dst) in ice_set_fdir_ip4_usr_seg()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c239 l4_mask->ip4dst, l4_val->ip4dst); in parse_tcp4()
252 l4_mask->ip4dst, l4_val->ip4dst); in parse_udp4()
265 l3_mask->ip4dst, l3_val->ip4dst); in parse_ip4()
582 if (l4_mask->ip4dst) in validate_tcpudp4()
602 if (l3_mask->ip4dst) in validate_ip4()
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c946 fsp->h_u.tcp_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_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()
959 fsp->h_u.ah_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
963 fsp->m_u.ah_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
969 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
975 fsp->m_u.usr_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
1137 fltr->ip_data.v4_addrs.dst_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info()
1142 fltr->ip_mask.v4_addrs.dst_ip = fsp->m_u.tcp_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info()
1151 fltr->ip_data.v4_addrs.dst_ip = fsp->h_u.ah_ip4_spec.ip4dst; in iavf_add_fdir_fltr_info()
1155 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/wangxun/txgbe/
H A Dtxgbe_ethtool.c131 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()
384 input->filter.formatted.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in txgbe_add_ethtool_fdir_entry()
385 mask.formatted.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; in txgbe_add_ethtool_fdir_entry()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c1351 !all_zeros_or_all_ones(l4_mask->ip4dst) || in mlx4_en_validate_flow()
1360 (!l3_mask->ip4src && !l3_mask->ip4dst) || in mlx4_en_validate_flow()
1362 !all_zeros_or_all_ones(l3_mask->ip4dst)) in mlx4_en_validate_flow()
1464 usr_ip4_spec.ip4dst); in add_ip_rule()
1471 spec_l3->ipv4.dst_ip = cmd->fs.h_u.usr_ip4_spec.ip4dst; in add_ip_rule()
1472 if (l3_mask->ip4dst) in add_ip_rule()
1508 tcp_ip4_spec.ip4dst); in add_tcp_udp_rule()
1513 spec_l3->ipv4.dst_ip = cmd->fs.h_u.tcp_ip4_spec.ip4dst; in add_tcp_udp_rule()
1520 udp_ip4_spec.ip4dst); in add_tcp_udp_rule()
1525 spec_l3->ipv4.dst_ip = cmd->fs.h_u.udp_ip4_spec.ip4dst; in add_tcp_udp_rule()
[all …]
/linux/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp.c349 &match->ip4dst, &mask->ip4dst, in bcmasp_netfilt_tcpip4_wr()
350 sizeof(match->ip4dst)); in bcmasp_netfilt_tcpip4_wr()
456 &fs->h_u.usr_ip4_spec.ip4dst, in bcmasp_netfilt_wr_to_hw()
457 &fs->m_u.usr_ip4_spec.ip4dst, in bcmasp_netfilt_wr_to_hw()
458 sizeof(fs->h_u.usr_ip4_spec.ip4dst)); in bcmasp_netfilt_wr_to_hw()
/linux/include/uapi/linux/
H A Dethtool.h1242 __be32 ip4dst; member
1259 __be32 ip4dst; member
1277 __be32 ip4dst; member
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ethtool.c1339 fs->h_u.tcp_ip4_spec.ip4dst = entry->key.dip4; in nfp_net_fs_to_ethtool()
1343 fs->m_u.tcp_ip4_spec.ip4dst = entry->msk.dip4; in nfp_net_fs_to_ethtool()
1364 fs->h_u.usr_ip4_spec.ip4dst = entry->key.dip4; in nfp_net_fs_to_ethtool()
1367 fs->m_u.usr_ip4_spec.ip4dst = entry->msk.dip4; in nfp_net_fs_to_ethtool()
1523 entry->msk.dip4 = fs->m_u.tcp_ip4_spec.ip4dst; in nfp_net_fs_from_ethtool()
1527 entry->key.dip4 = fs->h_u.tcp_ip4_spec.ip4dst & entry->msk.dip4; in nfp_net_fs_from_ethtool()
1547 entry->msk.dip4 = fs->m_u.usr_ip4_spec.ip4dst; in nfp_net_fs_from_ethtool()
1550 entry->key.dip4 = fs->h_u.usr_ip4_spec.ip4dst & entry->msk.dip4; in nfp_net_fs_from_ethtool()
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c529 rfse.dip_h[0] = l4ip4_h->ip4dst; in enetc_set_cls_entry()
530 rfse.dip_m[0] = l4ip4_m->ip4dst; in enetc_set_cls_entry()
546 rfse.dip_h[0] = l3ip4_h->ip4dst; in enetc_set_cls_entry()
547 rfse.dip_m[0] = l3ip4_m->ip4dst; in enetc_set_cls_entry()
/linux/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c942 gfar_set_attribute(be32_to_cpu(value->ip4dst), in gfar_set_basic_ip()
943 be32_to_cpu(mask->ip4dst), in gfar_set_basic_ip()
962 gfar_set_attribute(be32_to_cpu(value->ip4dst), in gfar_set_user_ip()
963 be32_to_cpu(mask->ip4dst), in gfar_set_user_ip()
/linux/drivers/net/ethernet/cisco/enic/
H A Denic_ethtool.c517 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()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_ethtool.c1684 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()
1686 memcpy(&fs->m_u.tcp_ip4_spec.ip4dst, &dfs->mask.lip[0], in cxgb4_fill_filter_rule()
1687 sizeof(fs->m_u.tcp_ip4_spec.ip4dst)); in cxgb4_fill_filter_rule()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c3408 fsp->h_u.tcp_ip4_spec.ip4dst = rule->src_ip; in i40e_get_ethtool_fdir_entry()
3469 fsp->m_u.tcp_ip4_spec.ip4dst = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
4380 if (tcp_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4382 else if (!tcp_ip4_spec->ip4dst) in i40e_check_fdir_input_set()
4467 if (usr_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4469 else if (!usr_ip4_spec->ip4dst) in i40e_check_fdir_input_set()
4880 input->src_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in i40e_add_fdir_ethtool()
4912 input->src_ip = fsp->h_u.tcp_ip4_spec.ip4dst; in i40e_add_fdir_ethtool()
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_fs.c970 NPC_WRITE_FLOW(NPC_DIP_IPV4, ip4dst, ntohl(pkt->ip4dst), 0, in npc_update_flow()
971 ntohl(mask->ip4dst), 0); in npc_update_flow()
H A Dmbox.h1613 __be32 ip4dst; member
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c1147 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()
1366 fkeys->addrs.v4addrs.dst = ip_spec->ip4dst; in bnxt_add_ntuple_cls_rule()
1367 fmasks->addrs.v4addrs.dst = ip_mask->ip4dst; in bnxt_add_ntuple_cls_rule()
1381 fkeys->addrs.v4addrs.dst = ip_spec->ip4dst; in bnxt_add_ntuple_cls_rule()
1382 fmasks->addrs.v4addrs.dst = ip_mask->ip4dst; in bnxt_add_ntuple_cls_rule()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c2584 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()
2876 input->filter.formatted.dst_ip[0] = fsp->h_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
2877 mask.formatted.dst_ip[0] = fsp->m_u.tcp_ip4_spec.ip4dst; in ixgbe_add_ethtool_fdir_entry()
/linux/net/ethtool/
H A Dioctl.c3511 if (v4_m_spec->ip4dst) { in ethtool_rx_flow_rule_create()
3512 match->key.ipv4.dst = v4_spec->ip4dst; in ethtool_rx_flow_rule_create()
3513 match->mask.ipv4.dst = v4_m_spec->ip4dst; in ethtool_rx_flow_rule_create()
3516 v4_m_spec->ip4dst) { in ethtool_rx_flow_rule_create()
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_filters.c516 ntohl(fsp->h_u.tcp_ip4_spec.ip4dst); in aq_set_data_fl3l4()
/linux/drivers/net/ethernet/cadence/
H A Dmacb_main.c3487 if (enable && (tp4sp_m->ip4dst == 0xFFFFFFFF)) in gem_enable_flow_filters()
3531 if (tp4sp_m->ip4dst == 0xFFFFFFFF) { in gem_prog_cmp_regs()
3535 w0 = tp4sp_v->ip4dst; in gem_prog_cmp_regs()
3603 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_add_flow_filter()
3657 htonl(fs->h_u.tcp_ip4_spec.ip4dst), in gem_del_flow_filter()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c5909 if (!spec->ip4dst) in hclge_fd_check_tcpip4_tuple()
5936 if (!spec->ip4dst) in hclge_fd_check_ip4_tuple()
6238 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple()
6240 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4dst); in hclge_fd_get_tcpip4_tuple()
6267 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple()
6269 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple()
6706 spec->ip4dst = cpu_to_be32(rule->tuples.dst_ip[IPV4_INDEX]); in hclge_fd_get_tcpip4_info()
6707 spec_mask->ip4dst = rule->unused_tuple & BIT(INNER_DST_IP) ? in hclge_fd_get_tcpip4_info()
6731 spec->ip4dst = cpu_to_be32(rule->tuples.dst_ip[IPV4_INDEX]); in hclge_fd_get_ip4_info()
6732 spec_mask->ip4dst = rule->unused_tuple & BIT(INNER_DST_IP) ? in hclge_fd_get_ip4_info()
/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()
/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_filter.c1351 fsp->h_u.tcp_ip4_spec.ip4dst = fltr->tuple.dst_ipv4; in qede_get_cls_rule_entry()

12