| /linux-6.15/drivers/net/ethernet/google/gve/ |
| H A D | gve_flow_rule.c | 69 memcpy(fsp->h_u.tcp_ip6_spec.ip6dst, &flow_rule->key.dst_ip, in gve_fill_ethtool_flow_spec() 76 memcpy(fsp->m_u.tcp_ip6_spec.ip6dst, &flow_rule->mask.dst_ip, in gve_fill_ethtool_flow_spec() 86 memcpy(fsp->h_u.ah_ip6_spec.ip6dst, &flow_rule->key.dst_ip, in gve_fill_ethtool_flow_spec() 92 memcpy(fsp->m_u.ah_ip6_spec.ip6dst, &flow_rule->mask.dst_ip, in gve_fill_ethtool_flow_spec() 164 memcpy(&rule->key.dst_ip, fsp->h_u.tcp_ip6_spec.ip6dst, in gve_generate_flow_rule() 170 memcpy(&rule->mask.dst_ip, fsp->m_u.tcp_ip6_spec.ip6dst, in gve_generate_flow_rule() 179 memcpy(&rule->key.dst_ip, fsp->h_u.usr_ip6_spec.ip6dst, in gve_generate_flow_rule() 184 memcpy(&rule->mask.dst_ip, fsp->m_u.usr_ip6_spec.ip6dst, in gve_generate_flow_rule()
|
| /linux-6.15/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_flows.c | 718 memcpy(&pkt->ip6dst, &ipv6_usr_hdr->ip6dst, in otx2_prepare_ipv6_flow() 719 sizeof(pkt->ip6dst)); in otx2_prepare_ipv6_flow() 720 memcpy(&pmask->ip6dst, &ipv6_usr_mask->ip6dst, in otx2_prepare_ipv6_flow() 721 sizeof(pmask->ip6dst)); in otx2_prepare_ipv6_flow() 747 memcpy(&pkt->ip6dst, &ipv6_l4_hdr->ip6dst, in otx2_prepare_ipv6_flow() 748 sizeof(pkt->ip6dst)); in otx2_prepare_ipv6_flow() 749 memcpy(&pmask->ip6dst, &ipv6_l4_mask->ip6dst, in otx2_prepare_ipv6_flow() 750 sizeof(pmask->ip6dst)); in otx2_prepare_ipv6_flow() 797 memcpy(&pkt->ip6dst, &ah_esp_hdr->ip6dst, in otx2_prepare_ipv6_flow() 798 sizeof(pkt->ip6dst)); in otx2_prepare_ipv6_flow() [all …]
|
| H A D | otx2_tc.c | 827 memcpy(&flow_spec->ip6dst, in otx2_tc_prepare_flow() 829 sizeof(flow_spec->ip6dst)); in otx2_tc_prepare_flow() 830 memcpy(&flow_mask->ip6dst, in otx2_tc_prepare_flow() 832 sizeof(flow_spec->ip6dst)); in otx2_tc_prepare_flow()
|
| /linux-6.15/drivers/net/ethernet/sfc/siena/ |
| H A D | ethtool_common.c | 704 memcpy(ip6_entry->ip6dst, spec.loc_host, in efx_ethtool_get_class_rule() 705 sizeof(ip6_entry->ip6dst)); in efx_ethtool_get_class_rule() 706 ip6_fill_mask(ip6_mask->ip6dst); in efx_ethtool_get_class_rule() 775 memcpy(uip6_entry->ip6dst, spec.loc_host, in efx_ethtool_get_class_rule() 776 sizeof(uip6_entry->ip6dst)); in efx_ethtool_get_class_rule() 777 ip6_fill_mask(uip6_mask->ip6dst); in efx_ethtool_get_class_rule() 987 if (!ip6_mask_is_empty(ip6_mask->ip6dst)) { in efx_ethtool_set_class_rule() 988 if (!ip6_mask_is_full(ip6_mask->ip6dst)) in efx_ethtool_set_class_rule() 991 memcpy(spec.loc_host, ip6_entry->ip6dst, sizeof(spec.loc_host)); in efx_ethtool_set_class_rule() 1046 if (!ip6_mask_is_empty(uip6_mask->ip6dst)) { in efx_ethtool_set_class_rule() [all …]
|
| /linux-6.15/drivers/net/ethernet/sfc/ |
| H A D | ethtool_common.c | 703 memcpy(ip6_entry->ip6dst, spec.loc_host, in efx_ethtool_get_class_rule() 704 sizeof(ip6_entry->ip6dst)); in efx_ethtool_get_class_rule() 705 ip6_fill_mask(ip6_mask->ip6dst); in efx_ethtool_get_class_rule() 774 memcpy(uip6_entry->ip6dst, spec.loc_host, in efx_ethtool_get_class_rule() 775 sizeof(uip6_entry->ip6dst)); in efx_ethtool_get_class_rule() 776 ip6_fill_mask(uip6_mask->ip6dst); in efx_ethtool_get_class_rule() 998 if (!ip6_mask_is_empty(ip6_mask->ip6dst)) { in efx_ethtool_set_class_rule() 999 if (!ip6_mask_is_full(ip6_mask->ip6dst)) in efx_ethtool_set_class_rule() 1002 memcpy(spec.loc_host, ip6_entry->ip6dst, sizeof(spec.loc_host)); in efx_ethtool_set_class_rule() 1057 if (!ip6_mask_is_empty(uip6_mask->ip6dst)) { in efx_ethtool_set_class_rule() [all …]
|
| /linux-6.15/drivers/net/ethernet/sfc/falcon/ |
| H A D | ethtool.c | 851 memcpy(ip6_entry->ip6dst, spec.loc_host, in ef4_ethtool_get_class_rule() 852 sizeof(ip6_entry->ip6dst)); in ef4_ethtool_get_class_rule() 853 ip6_fill_mask(ip6_mask->ip6dst); in ef4_ethtool_get_class_rule() 922 memcpy(uip6_entry->ip6dst, spec.loc_host, in ef4_ethtool_get_class_rule() 923 sizeof(uip6_entry->ip6dst)); in ef4_ethtool_get_class_rule() 924 ip6_fill_mask(uip6_mask->ip6dst); in ef4_ethtool_get_class_rule() 1101 if (!ip6_mask_is_empty(ip6_mask->ip6dst)) { in ef4_ethtool_set_class_rule() 1102 if (!ip6_mask_is_full(ip6_mask->ip6dst)) in ef4_ethtool_set_class_rule() 1105 memcpy(spec.loc_host, ip6_entry->ip6dst, sizeof(spec.loc_host)); in ef4_ethtool_set_class_rule() 1160 if (!ip6_mask_is_empty(uip6_mask->ip6dst)) { in ef4_ethtool_set_class_rule() [all …]
|
| /linux-6.15/drivers/net/ethernet/intel/ice/ |
| H A D | ice_ethtool_fdir.c | 180 memcpy(fsp->h_u.tcp_ip6_spec.ip6dst, rule->ip.v6.dst_ip, in ice_get_ethtool_fdir_entry() 184 memcpy(fsp->m_u.tcp_ip6_spec.ip6dst, rule->mask.v6.dst_ip, in ice_get_ethtool_fdir_entry() 195 memcpy(fsp->h_u.tcp_ip6_spec.ip6dst, rule->ip.v6.dst_ip, in ice_get_ethtool_fdir_entry() 202 memcpy(fsp->m_u.tcp_ip6_spec.ip6dst, in ice_get_ethtool_fdir_entry() 1075 !memcmp(tcp_ip6_spec->ip6dst, &zero_ipv6_addr_mask, in ice_set_fdir_ip6_seg() 1111 if (!memcmp(tcp_ip6_spec->ip6dst, &full_ipv6_addr_mask, in ice_set_fdir_ip6_seg() 1116 else if (!memcmp(tcp_ip6_spec->ip6dst, &zero_ipv6_addr_mask, in ice_set_fdir_ip6_seg() 1172 !memcmp(usr_ip6_spec->ip6dst, &zero_ipv6_addr_mask, in ice_set_fdir_ip6_usr_seg() 1190 if (!memcmp(usr_ip6_spec->ip6dst, &full_ipv6_addr_mask, in ice_set_fdir_ip6_usr_seg() 1921 memcpy(input->ip.v6.dst_ip, fsp->h_u.usr_ip6_spec.ip6dst, in ice_set_fdir_input_set() [all …]
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_fs_ethtool.c | 280 l3_val->ip6src, l3_mask->ip6dst, l3_val->ip6dst); in parse_ip6() 295 l4_val->ip6src, l4_mask->ip6dst, l4_val->ip6dst); in parse_tcp6() 308 l4_val->ip6src, l4_mask->ip6dst, l4_val->ip6dst); in parse_udp6() 620 if (!ipv6_addr_any((struct in6_addr *)l3_mask->ip6dst)) in validate_ip6() 639 if (!ipv6_addr_any((struct in6_addr *)l4_mask->ip6dst)) in validate_tcpudp6()
|
| /linux-6.15/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_ethtool.c | 986 memcpy(fsp->h_u.usr_ip6_spec.ip6dst, &rule->ip_data.v6_addrs.dst_ip, in iavf_get_ethtool_fdir_entry() 993 memcpy(fsp->m_u.usr_ip6_spec.ip6dst, &rule->ip_mask.v6_addrs.dst_ip, in iavf_get_ethtool_fdir_entry() 1003 memcpy(fsp->h_u.ah_ip6_spec.ip6dst, &rule->ip_data.v6_addrs.dst_ip, in iavf_get_ethtool_fdir_entry() 1009 memcpy(fsp->m_u.ah_ip6_spec.ip6dst, &rule->ip_mask.v6_addrs.dst_ip, in iavf_get_ethtool_fdir_entry() 1017 memcpy(fsp->h_u.usr_ip6_spec.ip6dst, &rule->ip_data.v6_addrs.dst_ip, in iavf_get_ethtool_fdir_entry() 1024 memcpy(fsp->m_u.usr_ip6_spec.ip6dst, &rule->ip_mask.v6_addrs.dst_ip, in iavf_get_ethtool_fdir_entry() 1178 memcpy(&fltr->ip_data.v6_addrs.dst_ip, fsp->h_u.usr_ip6_spec.ip6dst, in iavf_add_fdir_fltr_info() 1185 memcpy(&fltr->ip_mask.v6_addrs.dst_ip, fsp->m_u.usr_ip6_spec.ip6dst, in iavf_add_fdir_fltr_info() 1196 memcpy(&fltr->ip_data.v6_addrs.dst_ip, fsp->h_u.ah_ip6_spec.ip6dst, in iavf_add_fdir_fltr_info() 1202 memcpy(&fltr->ip_mask.v6_addrs.dst_ip, fsp->m_u.ah_ip6_spec.ip6dst, in iavf_add_fdir_fltr_info() [all …]
|
| /linux-6.15/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_ethtool.c | 484 fsp->h_u.usr_ip6_spec.ip6dst[i] = in fbnic_get_cls_rule() 486 fsp->m_u.usr_ip6_spec.ip6dst[i] = in fbnic_get_cls_rule() 536 fsp->h_u.usr_ip6_spec.ip6dst[i] = in fbnic_get_cls_rule() 538 fsp->m_u.usr_ip6_spec.ip6dst[i] = in fbnic_get_cls_rule() 859 addr6 = (struct in6_addr *)fsp->h_u.usr_ip6_spec.ip6dst; in fbnic_set_cls_rule_ins() 860 mask6 = (struct in6_addr *)fsp->m_u.usr_ip6_spec.ip6dst; in fbnic_set_cls_rule_ins() 898 addr6 = (struct in6_addr *)fsp->h_u.usr_ip6_spec.ip6dst; in fbnic_set_cls_rule_ins() 899 mask6 = (struct in6_addr *)fsp->m_u.usr_ip6_spec.ip6dst; in fbnic_set_cls_rule_ins()
|
| /linux-6.15/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_npc_hash.c | 336 be32_to_cpu_array(dst_ip, pkt->ip6dst, IPV6_WORDS); in npc_update_field_hash() 346 memcpy(&opkt->ip6dst, &pkt->ip6dst, in npc_update_field_hash() 347 sizeof(pkt->ip6dst)); in npc_update_field_hash() 348 memcpy(&omask->ip6dst, &mask->ip6dst, in npc_update_field_hash() 349 sizeof(mask->ip6dst)); in npc_update_field_hash()
|
| H A D | rvu_npc_fs.c | 866 be32_to_cpu_array(dst_ip_mask, mask->ip6dst, IPV6_WORDS); in npc_update_ipv6_flow() 867 be32_to_cpu_array(dst_ip, pkt->ip6dst, IPV6_WORDS); in npc_update_ipv6_flow() 876 memcpy(opkt->ip6dst, pkt->ip6dst, sizeof(opkt->ip6dst)); in npc_update_ipv6_flow() 877 memcpy(omask->ip6dst, mask->ip6dst, sizeof(omask->ip6dst)); in npc_update_ipv6_flow()
|
| H A D | mbox.h | 1618 __be32 ip6dst[4]; member
|
| H A D | rvu_debugfs.c | 3166 seq_printf(s, "%pI6 ", rule->packet.ip6dst); in rvu_dbg_npc_mcam_show_flows() 3167 seq_printf(s, "mask %pI6\n", rule->mask.ip6dst); in rvu_dbg_npc_mcam_show_flows()
|
| /linux-6.15/include/uapi/linux/ |
| H A D | ethtool.h | 1300 __be32 ip6dst[4]; member 1317 __be32 ip6dst[4]; member 1332 __be32 ip6dst[4]; member
|
| /linux-6.15/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_ethtool.c | 1352 fs->h_u.tcp_ip6_spec.ip6dst[i] = entry->key.dip6[i]; in nfp_net_fs_to_ethtool() 1354 fs->m_u.tcp_ip6_spec.ip6dst[i] = entry->msk.dip6[i]; in nfp_net_fs_to_ethtool() 1373 fs->h_u.usr_ip6_spec.ip6dst[i] = entry->key.dip6[i]; in nfp_net_fs_to_ethtool() 1375 fs->m_u.usr_ip6_spec.ip6dst[i] = entry->msk.dip6[i]; in nfp_net_fs_to_ethtool() 1536 entry->msk.dip6[i] = fs->m_u.tcp_ip6_spec.ip6dst[i]; in nfp_net_fs_from_ethtool() 1538 entry->key.dip6[i] = fs->h_u.tcp_ip6_spec.ip6dst[i] & entry->msk.dip6[i]; in nfp_net_fs_from_ethtool() 1556 entry->msk.dip6[i] = fs->m_u.usr_ip6_spec.ip6dst[i]; in nfp_net_fs_from_ethtool() 1558 entry->key.dip6[i] = fs->h_u.usr_ip6_spec.ip6dst[i] & entry->msk.dip6[i]; in nfp_net_fs_from_ethtool()
|
| /linux-6.15/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_ethtool.c | 3398 memcpy(fsp->h_u.tcp_ip6_spec.ip6dst, rule->src_ip6, in i40e_get_ethtool_fdir_entry() 3461 fsp->m_u.tcp_ip6_spec.ip6dst[0] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry() 3462 fsp->m_u.tcp_ip6_spec.ip6dst[1] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry() 3463 fsp->m_u.tcp_ip6_spec.ip6dst[2] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry() 3464 fsp->m_u.tcp_ip6_spec.ip6dst[3] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry() 4428 if (ipv6_addr_equal((struct in6_addr *)&tcp_ip6_spec->ip6dst, in i40e_check_fdir_input_set() 4432 &tcp_ip6_spec->ip6dst)) in i40e_check_fdir_input_set() 4507 if (ipv6_addr_equal((struct in6_addr *)&usr_ip6_spec->ip6dst, in i40e_check_fdir_input_set() 4511 &usr_ip6_spec->ip6dst)) in i40e_check_fdir_input_set() 4903 memcpy(input->src_ip6, fsp->h_u.ah_ip6_spec.ip6dst, in i40e_add_fdir_ethtool()
|
| /linux-6.15/drivers/net/ethernet/broadcom/asp2/ |
| H A D | bcmasp.c | 379 &match->ip6dst, &mask->ip6dst, in bcmasp_netfilt_tcpip6_wr() 380 sizeof(match->ip6dst)); in bcmasp_netfilt_tcpip6_wr()
|
| /linux-6.15/drivers/net/ethernet/chelsio/cxgb4/ |
| H A D | cxgb4_ethtool.c | 1669 memcpy(&fs->h_u.tcp_ip6_spec.ip6dst, &dfs->val.lip[0], in cxgb4_fill_filter_rule() 1670 sizeof(fs->h_u.tcp_ip6_spec.ip6dst)); in cxgb4_fill_filter_rule() 1671 memcpy(&fs->m_u.tcp_ip6_spec.ip6dst, &dfs->mask.lip[0], in cxgb4_fill_filter_rule() 1672 sizeof(fs->m_u.tcp_ip6_spec.ip6dst)); in cxgb4_fill_filter_rule()
|
| /linux-6.15/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_ethtool.c | 1199 *(struct in6_addr *)&fs->h_u.tcp_ip6_spec.ip6dst[0] = in bnxt_grxclsrule() 1201 *(struct in6_addr *)&fs->m_u.tcp_ip6_spec.ip6dst[0] = in bnxt_grxclsrule() 1420 fkeys->addrs.v6addrs.dst = *(struct in6_addr *)&ip_spec->ip6dst; in bnxt_add_ntuple_cls_rule() 1421 fmasks->addrs.v6addrs.dst = *(struct in6_addr *)&ip_mask->ip6dst; in bnxt_add_ntuple_cls_rule() 1436 fkeys->addrs.v6addrs.dst = *(struct in6_addr *)&ip_spec->ip6dst; in bnxt_add_ntuple_cls_rule() 1437 fmasks->addrs.v6addrs.dst = *(struct in6_addr *)&ip_mask->ip6dst; in bnxt_add_ntuple_cls_rule()
|
| /linux-6.15/net/ethtool/ |
| H A D | ioctl.c | 3574 if (!ipv6_addr_any((struct in6_addr *)v6_m_spec->ip6dst)) { in ethtool_rx_flow_rule_create() 3575 memcpy(&match->key.ipv6.dst, v6_spec->ip6dst, in ethtool_rx_flow_rule_create() 3577 memcpy(&match->mask.ipv6.dst, v6_m_spec->ip6dst, in ethtool_rx_flow_rule_create() 3581 !ipv6_addr_any((struct in6_addr *)v6_m_spec->ip6dst)) { in ethtool_rx_flow_rule_create()
|
| /linux-6.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| H A D | hclge_main.c | 5992 if (ipv6_addr_any((struct in6_addr *)spec->ip6dst)) in hclge_fd_check_tcpip6_tuple() 6020 if (ipv6_addr_any((struct in6_addr *)spec->ip6dst)) in hclge_fd_check_ip6_tuple() 6316 fs->h_u.tcp_ip6_spec.ip6dst); in hclge_fd_get_tcpip6_tuple() 6318 fs->m_u.tcp_ip6_spec.ip6dst); in hclge_fd_get_tcpip6_tuple() 6345 fs->h_u.usr_ip6_spec.ip6dst); in hclge_fd_get_ip6_tuple() 6347 fs->m_u.usr_ip6_spec.ip6dst); in hclge_fd_get_ip6_tuple() 6777 ipv6_addr_cpu_to_be32(spec->ip6dst, rule->tuples.dst_ip); in hclge_fd_get_tcpip6_info() 6785 memset(spec_mask->ip6dst, 0, sizeof(spec_mask->ip6dst)); in hclge_fd_get_tcpip6_info() 6787 ipv6_addr_cpu_to_be32(spec_mask->ip6dst, in hclge_fd_get_tcpip6_info() 6816 memset(spec_mask->ip6dst, 0, sizeof(spec_mask->ip6dst)); in hclge_fd_get_ip6_info() [all …]
|
| /linux-6.15/drivers/net/ethernet/aquantia/atlantic/ |
| H A D | aq_filters.c | 524 ntohl(fsp->h_u.tcp_ip6_spec.ip6dst[i]); in aq_set_data_fl3l4()
|
| /linux-6.15/drivers/net/ethernet/qlogic/qede/ |
| H A D | qede_filter.c | 1361 memcpy(&fsp->h_u.tcp_ip6_spec.ip6dst, in qede_get_cls_rule_entry()
|