Home
last modified time | relevance | path

Searched refs:ip6src (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/net/ethernet/google/gve/
H A Dgve_flow_rule.c67 memcpy(fsp->h_u.tcp_ip6_spec.ip6src, &flow_rule->key.src_ip, in gve_fill_ethtool_flow_spec()
74 memcpy(fsp->m_u.tcp_ip6_spec.ip6src, &flow_rule->mask.src_ip, in gve_fill_ethtool_flow_spec()
84 memcpy(fsp->h_u.ah_ip6_spec.ip6src, &flow_rule->key.src_ip, in gve_fill_ethtool_flow_spec()
90 memcpy(fsp->m_u.ah_ip6_spec.ip6src, &flow_rule->mask.src_ip, in gve_fill_ethtool_flow_spec()
162 memcpy(&rule->key.src_ip, fsp->h_u.tcp_ip6_spec.ip6src, in gve_generate_flow_rule()
168 memcpy(&rule->mask.src_ip, fsp->m_u.tcp_ip6_spec.ip6src, in gve_generate_flow_rule()
177 memcpy(&rule->key.src_ip, fsp->h_u.usr_ip6_spec.ip6src, in gve_generate_flow_rule()
182 memcpy(&rule->mask.src_ip, fsp->m_u.usr_ip6_spec.ip6src, in gve_generate_flow_rule()
/linux/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.c709 memcpy(ip6_entry->ip6src, spec.rem_host, in efx_ethtool_get_class_rule()
710 sizeof(ip6_entry->ip6src)); in efx_ethtool_get_class_rule()
711 ip6_fill_mask(ip6_mask->ip6src); in efx_ethtool_get_class_rule()
780 memcpy(uip6_entry->ip6src, spec.rem_host, in efx_ethtool_get_class_rule()
781 sizeof(uip6_entry->ip6src)); in efx_ethtool_get_class_rule()
782 ip6_fill_mask(uip6_mask->ip6src); in efx_ethtool_get_class_rule()
993 if (!ip6_mask_is_empty(ip6_mask->ip6src)) { in efx_ethtool_set_class_rule()
994 if (!ip6_mask_is_full(ip6_mask->ip6src)) in efx_ethtool_set_class_rule()
997 memcpy(spec.rem_host, ip6_entry->ip6src, sizeof(spec.rem_host)); in efx_ethtool_set_class_rule()
1052 if (!ip6_mask_is_empty(uip6_mask->ip6src)) { in efx_ethtool_set_class_rule()
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c178 memcpy(fsp->h_u.tcp_ip6_spec.ip6src, rule->ip.v6.src_ip, in ice_get_ethtool_fdir_entry()
182 memcpy(fsp->m_u.tcp_ip6_spec.ip6src, rule->mask.v6.src_ip, in ice_get_ethtool_fdir_entry()
193 memcpy(fsp->h_u.tcp_ip6_spec.ip6src, rule->ip.v6.src_ip, in ice_get_ethtool_fdir_entry()
199 memcpy(fsp->m_u.tcp_ip6_spec.ip6src, in ice_get_ethtool_fdir_entry()
1073 if (!memcmp(tcp_ip6_spec->ip6src, &zero_ipv6_addr_mask, in ice_set_fdir_ip6_seg()
1100 if (!memcmp(tcp_ip6_spec->ip6src, &full_ipv6_addr_mask, in ice_set_fdir_ip6_seg()
1105 else if (!memcmp(tcp_ip6_spec->ip6src, &zero_ipv6_addr_mask, in ice_set_fdir_ip6_seg()
1170 if (!memcmp(usr_ip6_spec->ip6src, &zero_ipv6_addr_mask, in ice_set_fdir_ip6_usr_seg()
1179 if (!memcmp(usr_ip6_spec->ip6src, &full_ipv6_addr_mask, in ice_set_fdir_ip6_usr_seg()
1184 else if (!memcmp(usr_ip6_spec->ip6src, &zero_ipv6_addr_mask, in ice_set_fdir_ip6_usr_seg()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c279 set_ip6(headers_c, headers_v, l3_mask->ip6src, in parse_ip6()
280 l3_val->ip6src, l3_mask->ip6dst, l3_val->ip6dst); in parse_ip6()
294 set_ip6(headers_c, headers_v, l4_mask->ip6src, in parse_tcp6()
295 l4_val->ip6src, l4_mask->ip6dst, l4_val->ip6dst); in parse_tcp6()
307 set_ip6(headers_c, headers_v, l4_mask->ip6src, in parse_udp6()
308 l4_val->ip6src, l4_mask->ip6dst, l4_val->ip6dst); in parse_udp6()
617 if (!ipv6_addr_any((struct in6_addr *)l3_mask->ip6src)) in validate_ip6()
636 if (!ipv6_addr_any((struct in6_addr *)l4_mask->ip6src)) in validate_tcpudp6()
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c984 memcpy(fsp->h_u.usr_ip6_spec.ip6src, &rule->ip_data.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
991 memcpy(fsp->m_u.usr_ip6_spec.ip6src, &rule->ip_mask.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1001 memcpy(fsp->h_u.ah_ip6_spec.ip6src, &rule->ip_data.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1007 memcpy(fsp->m_u.ah_ip6_spec.ip6src, &rule->ip_mask.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1015 memcpy(fsp->h_u.usr_ip6_spec.ip6src, &rule->ip_data.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1022 memcpy(fsp->m_u.usr_ip6_spec.ip6src, &rule->ip_mask.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1176 memcpy(&fltr->ip_data.v6_addrs.src_ip, fsp->h_u.usr_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
1183 memcpy(&fltr->ip_mask.v6_addrs.src_ip, fsp->m_u.usr_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
1194 memcpy(&fltr->ip_data.v6_addrs.src_ip, fsp->h_u.ah_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
1200 memcpy(&fltr->ip_mask.v6_addrs.src_ip, fsp->m_u.ah_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_hash.c319 be32_to_cpu_array(src_ip, pkt->ip6src, IPV6_WORDS); in npc_update_field_hash()
329 memcpy(&opkt->ip6src, &pkt->ip6src, in npc_update_field_hash()
330 sizeof(pkt->ip6src)); in npc_update_field_hash()
331 memcpy(&omask->ip6src, &mask->ip6src, in npc_update_field_hash()
332 sizeof(mask->ip6src)); in npc_update_field_hash()
H A Drvu_npc_fs.c852 be32_to_cpu_array(src_ip_mask, mask->ip6src, IPV6_WORDS); in npc_update_ipv6_flow()
853 be32_to_cpu_array(src_ip, pkt->ip6src, IPV6_WORDS); in npc_update_ipv6_flow()
862 memcpy(opkt->ip6src, pkt->ip6src, sizeof(opkt->ip6src)); in npc_update_ipv6_flow()
863 memcpy(omask->ip6src, mask->ip6src, sizeof(omask->ip6src)); in npc_update_ipv6_flow()
H A Dmbox.h1610 __be32 ip6src[4]; member
H A Drvu_debugfs.c3185 seq_printf(s, "%pI6 ", rule->packet.ip6src); in rvu_dbg_npc_mcam_show_flows()
3186 seq_printf(s, "mask %pI6\n", rule->mask.ip6src); in rvu_dbg_npc_mcam_show_flows()
/linux/include/uapi/linux/
H A Dethtool.h1295 __be32 ip6src[4]; member
1312 __be32 ip6src[4]; member
1327 __be32 ip6src[4]; member
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ethtool.c1351 fs->h_u.tcp_ip6_spec.ip6src[i] = entry->key.sip6[i]; in nfp_net_fs_to_ethtool()
1353 fs->m_u.tcp_ip6_spec.ip6src[i] = entry->msk.sip6[i]; in nfp_net_fs_to_ethtool()
1372 fs->h_u.usr_ip6_spec.ip6src[i] = entry->key.sip6[i]; in nfp_net_fs_to_ethtool()
1374 fs->m_u.usr_ip6_spec.ip6src[i] = entry->msk.sip6[i]; in nfp_net_fs_to_ethtool()
1535 entry->msk.sip6[i] = fs->m_u.tcp_ip6_spec.ip6src[i]; in nfp_net_fs_from_ethtool()
1537 entry->key.sip6[i] = fs->h_u.tcp_ip6_spec.ip6src[i] & entry->msk.sip6[i]; in nfp_net_fs_from_ethtool()
1555 entry->msk.sip6[i] = fs->m_u.usr_ip6_spec.ip6src[i]; in nfp_net_fs_from_ethtool()
1557 entry->key.sip6[i] = fs->h_u.usr_ip6_spec.ip6src[i] & entry->msk.sip6[i]; in nfp_net_fs_from_ethtool()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c3398 memcpy(fsp->h_u.tcp_ip6_spec.ip6src, rule->dst_ip6, in i40e_get_ethtool_fdir_entry()
3452 fsp->m_u.tcp_ip6_spec.ip6src[0] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3453 fsp->m_u.tcp_ip6_spec.ip6src[1] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3454 fsp->m_u.tcp_ip6_spec.ip6src[2] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3455 fsp->m_u.tcp_ip6_spec.ip6src[3] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
4416 if (ipv6_addr_equal((struct in6_addr *)&tcp_ip6_spec->ip6src, in i40e_check_fdir_input_set()
4420 &tcp_ip6_spec->ip6src)) in i40e_check_fdir_input_set()
4495 if (ipv6_addr_equal((struct in6_addr *)&usr_ip6_spec->ip6src, in i40e_check_fdir_input_set()
4499 &usr_ip6_spec->ip6src)) in i40e_check_fdir_input_set()
4899 memcpy(input->dst_ip6, fsp->h_u.ah_ip6_spec.ip6src, in i40e_add_fdir_ethtool()
/linux/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp.c376 &match->ip6src, &mask->ip6src, in bcmasp_netfilt_tcpip6_wr()
377 sizeof(match->ip6src)); in bcmasp_netfilt_tcpip6_wr()
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_ethtool.c1665 memcpy(&fs->h_u.tcp_ip6_spec.ip6src, &dfs->val.fip[0], in cxgb4_fill_filter_rule()
1666 sizeof(fs->h_u.tcp_ip6_spec.ip6src)); in cxgb4_fill_filter_rule()
1667 memcpy(&fs->m_u.tcp_ip6_spec.ip6src, &dfs->mask.fip[0], in cxgb4_fill_filter_rule()
1668 sizeof(fs->m_u.tcp_ip6_spec.ip6src)); in cxgb4_fill_filter_rule()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c1173 *(struct in6_addr *)&fs->h_u.tcp_ip6_spec.ip6src[0] = in bnxt_grxclsrule()
1175 *(struct in6_addr *)&fs->m_u.tcp_ip6_spec.ip6src[0] = in bnxt_grxclsrule()
1396 fkeys->addrs.v6addrs.src = *(struct in6_addr *)&ip_spec->ip6src; in bnxt_add_ntuple_cls_rule()
1397 fmasks->addrs.v6addrs.src = *(struct in6_addr *)&ip_mask->ip6src; in bnxt_add_ntuple_cls_rule()
1412 fkeys->addrs.v6addrs.src = *(struct in6_addr *)&ip_spec->ip6src; in bnxt_add_ntuple_cls_rule()
1413 fmasks->addrs.v6addrs.src = *(struct in6_addr *)&ip_mask->ip6src; in bnxt_add_ntuple_cls_rule()
/linux/net/ethtool/
H A Dioctl.c3555 if (!ipv6_addr_any((struct in6_addr *)v6_m_spec->ip6src)) { in ethtool_rx_flow_rule_create()
3556 memcpy(&match->key.ipv6.src, v6_spec->ip6src, in ethtool_rx_flow_rule_create()
3558 memcpy(&match->mask.ipv6.src, v6_m_spec->ip6src, in ethtool_rx_flow_rule_create()
3567 if (!ipv6_addr_any((struct in6_addr *)v6_m_spec->ip6src) || in ethtool_rx_flow_rule_create()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c5989 if (ipv6_addr_any((struct in6_addr *)spec->ip6src)) in hclge_fd_check_tcpip6_tuple()
6017 if (ipv6_addr_any((struct in6_addr *)spec->ip6src)) in hclge_fd_check_ip6_tuple()
6311 fs->h_u.tcp_ip6_spec.ip6src); in hclge_fd_get_tcpip6_tuple()
6313 fs->m_u.tcp_ip6_spec.ip6src); in hclge_fd_get_tcpip6_tuple()
6340 fs->h_u.usr_ip6_spec.ip6src); in hclge_fd_get_ip6_tuple()
6342 fs->m_u.usr_ip6_spec.ip6src); in hclge_fd_get_ip6_tuple()
6776 ipv6_addr_cpu_to_be32(spec->ip6src, rule->tuples.src_ip); in hclge_fd_get_tcpip6_info()
6779 memset(spec_mask->ip6src, 0, sizeof(spec_mask->ip6src)); in hclge_fd_get_tcpip6_info()
6781 ipv6_addr_cpu_to_be32(spec_mask->ip6src, in hclge_fd_get_tcpip6_info()
6807 ipv6_addr_cpu_to_be32(spec->ip6src, rule->tuples.src_ip); in hclge_fd_get_ip6_info()
[all …]
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_filters.c526 ntohl(fsp->h_u.tcp_ip6_spec.ip6src[i]); in aq_set_data_fl3l4()
/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_filter.c1359 memcpy(&fsp->h_u.tcp_ip6_spec.ip6src, in qede_get_cls_rule_entry()