Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c677 if (!ipv6_addr_any((struct in6_addr *)ipv6_usr_mask->ip6src)) { in otx2_prepare_ipv6_flow()
678 memcpy(&pkt->ip6src, &ipv6_usr_hdr->ip6src, in otx2_prepare_ipv6_flow()
679 sizeof(pkt->ip6src)); in otx2_prepare_ipv6_flow()
680 memcpy(&pmask->ip6src, &ipv6_usr_mask->ip6src, in otx2_prepare_ipv6_flow()
681 sizeof(pmask->ip6src)); in otx2_prepare_ipv6_flow()
701 if (!ipv6_addr_any((struct in6_addr *)ipv6_l4_mask->ip6src)) { in otx2_prepare_ipv6_flow()
702 memcpy(&pkt->ip6src, &ipv6_l4_hdr->ip6src, in otx2_prepare_ipv6_flow()
703 sizeof(pkt->ip6src)); in otx2_prepare_ipv6_flow()
704 memcpy(&pmask->ip6src, &ipv6_l4_mask->ip6src, in otx2_prepare_ipv6_flow()
705 sizeof(pmask->ip6src)); in otx2_prepare_ipv6_flow()
[all …]
Dotx2_tc.c634 memcpy(&flow_spec->ip6src, in otx2_tc_prepare_flow()
636 sizeof(flow_spec->ip6src)); in otx2_tc_prepare_flow()
637 memcpy(&flow_mask->ip6src, in otx2_tc_prepare_flow()
639 sizeof(flow_spec->ip6src)); in otx2_tc_prepare_flow()
/Linux-v6.1/drivers/net/ethernet/sfc/
Dethtool_common.c752 memcpy(ip6_entry->ip6src, spec.rem_host, in efx_ethtool_get_class_rule()
753 sizeof(ip6_entry->ip6src)); in efx_ethtool_get_class_rule()
754 ip6_fill_mask(ip6_mask->ip6src); in efx_ethtool_get_class_rule()
823 memcpy(uip6_entry->ip6src, spec.rem_host, in efx_ethtool_get_class_rule()
824 sizeof(uip6_entry->ip6src)); in efx_ethtool_get_class_rule()
825 ip6_fill_mask(uip6_mask->ip6src); in efx_ethtool_get_class_rule()
1048 if (!ip6_mask_is_empty(ip6_mask->ip6src)) { in efx_ethtool_set_class_rule()
1049 if (!ip6_mask_is_full(ip6_mask->ip6src)) in efx_ethtool_set_class_rule()
1052 memcpy(spec.rem_host, ip6_entry->ip6src, sizeof(spec.rem_host)); in efx_ethtool_set_class_rule()
1107 if (!ip6_mask_is_empty(uip6_mask->ip6src)) { in efx_ethtool_set_class_rule()
[all …]
/Linux-v6.1/drivers/net/ethernet/sfc/siena/
Dethtool_common.c715 memcpy(ip6_entry->ip6src, spec.rem_host, in efx_ethtool_get_class_rule()
716 sizeof(ip6_entry->ip6src)); in efx_ethtool_get_class_rule()
717 ip6_fill_mask(ip6_mask->ip6src); in efx_ethtool_get_class_rule()
786 memcpy(uip6_entry->ip6src, spec.rem_host, in efx_ethtool_get_class_rule()
787 sizeof(uip6_entry->ip6src)); in efx_ethtool_get_class_rule()
788 ip6_fill_mask(uip6_mask->ip6src); in efx_ethtool_get_class_rule()
1012 if (!ip6_mask_is_empty(ip6_mask->ip6src)) { in efx_ethtool_set_class_rule()
1013 if (!ip6_mask_is_full(ip6_mask->ip6src)) in efx_ethtool_set_class_rule()
1016 memcpy(spec.rem_host, ip6_entry->ip6src, sizeof(spec.rem_host)); in efx_ethtool_set_class_rule()
1071 if (!ip6_mask_is_empty(uip6_mask->ip6src)) { in efx_ethtool_set_class_rule()
[all …]
/Linux-v6.1/drivers/net/ethernet/sfc/falcon/
Dethtool.c862 memcpy(ip6_entry->ip6src, spec.rem_host, in ef4_ethtool_get_class_rule()
863 sizeof(ip6_entry->ip6src)); in ef4_ethtool_get_class_rule()
864 ip6_fill_mask(ip6_mask->ip6src); in ef4_ethtool_get_class_rule()
933 memcpy(uip6_entry->ip6src, spec.rem_host, in ef4_ethtool_get_class_rule()
934 sizeof(uip6_entry->ip6src)); in ef4_ethtool_get_class_rule()
935 ip6_fill_mask(uip6_mask->ip6src); in ef4_ethtool_get_class_rule()
1113 if (!ip6_mask_is_empty(ip6_mask->ip6src)) { in ef4_ethtool_set_class_rule()
1114 if (!ip6_mask_is_full(ip6_mask->ip6src)) in ef4_ethtool_set_class_rule()
1117 memcpy(spec.rem_host, ip6_entry->ip6src, sizeof(spec.rem_host)); in ef4_ethtool_set_class_rule()
1172 if (!ip6_mask_is_empty(uip6_mask->ip6src)) { in ef4_ethtool_set_class_rule()
[all …]
/Linux-v6.1/drivers/net/ethernet/intel/ice/
Dice_ethtool_fdir.c170 memcpy(fsp->h_u.tcp_ip6_spec.ip6src, rule->ip.v6.src_ip, in ice_get_ethtool_fdir_entry()
174 memcpy(fsp->m_u.tcp_ip6_spec.ip6src, rule->mask.v6.src_ip, in ice_get_ethtool_fdir_entry()
185 memcpy(fsp->h_u.tcp_ip6_spec.ip6src, rule->ip.v6.src_ip, in ice_get_ethtool_fdir_entry()
191 memcpy(fsp->m_u.tcp_ip6_spec.ip6src, in ice_get_ethtool_fdir_entry()
1063 if (!memcmp(tcp_ip6_spec->ip6src, &zero_ipv6_addr_mask, in ice_set_fdir_ip6_seg()
1090 if (!memcmp(tcp_ip6_spec->ip6src, &full_ipv6_addr_mask, in ice_set_fdir_ip6_seg()
1095 else if (!memcmp(tcp_ip6_spec->ip6src, &zero_ipv6_addr_mask, in ice_set_fdir_ip6_seg()
1160 if (!memcmp(usr_ip6_spec->ip6src, &zero_ipv6_addr_mask, in ice_set_fdir_ip6_usr_seg()
1169 if (!memcmp(usr_ip6_spec->ip6src, &full_ipv6_addr_mask, in ice_set_fdir_ip6_usr_seg()
1174 else if (!memcmp(usr_ip6_spec->ip6src, &zero_ipv6_addr_mask, in ice_set_fdir_ip6_usr_seg()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c283 set_ip6(headers_c, headers_v, l3_mask->ip6src, in parse_ip6()
284 l3_val->ip6src, l3_mask->ip6dst, l3_val->ip6dst); in parse_ip6()
298 set_ip6(headers_c, headers_v, l4_mask->ip6src, in parse_tcp6()
299 l4_val->ip6src, l4_mask->ip6dst, l4_val->ip6dst); in parse_tcp6()
311 set_ip6(headers_c, headers_v, l4_mask->ip6src, in parse_udp6()
312 l4_val->ip6src, l4_mask->ip6dst, l4_val->ip6dst); in parse_udp6()
621 if (!ipv6_addr_any((struct in6_addr *)l3_mask->ip6src)) in validate_ip6()
640 if (!ipv6_addr_any((struct in6_addr *)l4_mask->ip6src)) in validate_tcpudp6()
/Linux-v6.1/drivers/net/ethernet/intel/iavf/
Diavf_ethtool.c1127 memcpy(fsp->h_u.usr_ip6_spec.ip6src, &rule->ip_data.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1134 memcpy(fsp->m_u.usr_ip6_spec.ip6src, &rule->ip_mask.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1144 memcpy(fsp->h_u.ah_ip6_spec.ip6src, &rule->ip_data.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1150 memcpy(fsp->m_u.ah_ip6_spec.ip6src, &rule->ip_mask.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1158 memcpy(fsp->h_u.usr_ip6_spec.ip6src, &rule->ip_data.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1165 memcpy(fsp->m_u.usr_ip6_spec.ip6src, &rule->ip_mask.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1313 memcpy(&fltr->ip_data.v6_addrs.src_ip, fsp->h_u.usr_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
1320 memcpy(&fltr->ip_mask.v6_addrs.src_ip, fsp->m_u.usr_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
1330 memcpy(&fltr->ip_data.v6_addrs.src_ip, fsp->h_u.ah_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
1336 memcpy(&fltr->ip_mask.v6_addrs.src_ip, fsp->m_u.ah_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
[all …]
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npc_fs.c761 be32_to_cpu_array(src_ip_mask, mask->ip6src, IPV6_WORDS); in npc_update_ipv6_flow()
762 be32_to_cpu_array(src_ip, pkt->ip6src, IPV6_WORDS); in npc_update_ipv6_flow()
771 memcpy(opkt->ip6src, pkt->ip6src, sizeof(opkt->ip6src)); in npc_update_ipv6_flow()
772 memcpy(omask->ip6src, mask->ip6src, sizeof(omask->ip6src)); in npc_update_ipv6_flow()
Drvu_npc_hash.c276 be32_to_cpu_array(src_ip, pkt->ip6src, IPV6_WORDS); in npc_update_field_hash()
286 memcpy(&opkt->ip6src, &pkt->ip6src, in npc_update_field_hash()
287 sizeof(pkt->ip6src)); in npc_update_field_hash()
288 memcpy(&omask->ip6src, &mask->ip6src, in npc_update_field_hash()
289 sizeof(mask->ip6src)); in npc_update_field_hash()
Dmbox.h1428 __be32 ip6src[4]; member
Drvu_debugfs.c2792 seq_printf(s, "%pI6 ", rule->packet.ip6src); in rvu_dbg_npc_mcam_show_flows()
2793 seq_printf(s, "mask %pI6\n", rule->mask.ip6src); in rvu_dbg_npc_mcam_show_flows()
/Linux-v6.1/include/uapi/linux/
Dethtool.h990 __be32 ip6src[4]; member
1007 __be32 ip6src[4]; member
1022 __be32 ip6src[4]; member
/Linux-v6.1/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3393 memcpy(fsp->h_u.tcp_ip6_spec.ip6src, rule->dst_ip6, in i40e_get_ethtool_fdir_entry()
3447 fsp->m_u.tcp_ip6_spec.ip6src[0] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3448 fsp->m_u.tcp_ip6_spec.ip6src[1] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3449 fsp->m_u.tcp_ip6_spec.ip6src[2] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3450 fsp->m_u.tcp_ip6_spec.ip6src[3] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
4408 if (ipv6_addr_equal((struct in6_addr *)&tcp_ip6_spec->ip6src, in i40e_check_fdir_input_set()
4412 &tcp_ip6_spec->ip6src)) in i40e_check_fdir_input_set()
4487 if (ipv6_addr_equal((struct in6_addr *)&usr_ip6_spec->ip6src, in i40e_check_fdir_input_set()
4491 &usr_ip6_spec->ip6src)) in i40e_check_fdir_input_set()
4891 memcpy(input->dst_ip6, fsp->h_u.ah_ip6_spec.ip6src, in i40e_add_fdir_ethtool()
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c1668 memcpy(&fs->h_u.tcp_ip6_spec.ip6src, &dfs->val.fip[0], in cxgb4_fill_filter_rule()
1669 sizeof(fs->h_u.tcp_ip6_spec.ip6src)); in cxgb4_fill_filter_rule()
1670 memcpy(&fs->m_u.tcp_ip6_spec.ip6src, &dfs->mask.fip[0], in cxgb4_fill_filter_rule()
1671 sizeof(fs->m_u.tcp_ip6_spec.ip6src)); in cxgb4_fill_filter_rule()
/Linux-v6.1/net/ethtool/
Dioctl.c3197 if (memcmp(v6_m_spec->ip6src, &zero_addr, sizeof(zero_addr))) { in ethtool_rx_flow_rule_create()
3198 memcpy(&match->key.ipv6.src, v6_spec->ip6src, in ethtool_rx_flow_rule_create()
3200 memcpy(&match->mask.ipv6.src, v6_m_spec->ip6src, in ethtool_rx_flow_rule_create()
3209 if (memcmp(v6_m_spec->ip6src, &zero_addr, sizeof(zero_addr)) || in ethtool_rx_flow_rule_create()
/Linux-v6.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c5965 if (ipv6_addr_any((struct in6_addr *)spec->ip6src)) in hclge_fd_check_tcpip6_tuple()
5993 if (ipv6_addr_any((struct in6_addr *)spec->ip6src)) in hclge_fd_check_ip6_tuple()
6289 be32_to_cpu_array(rule->tuples.src_ip, fs->h_u.tcp_ip6_spec.ip6src, in hclge_fd_get_tcpip6_tuple()
6291 be32_to_cpu_array(rule->tuples_mask.src_ip, fs->m_u.tcp_ip6_spec.ip6src, in hclge_fd_get_tcpip6_tuple()
6319 be32_to_cpu_array(rule->tuples.src_ip, fs->h_u.usr_ip6_spec.ip6src, in hclge_fd_get_ip6_tuple()
6321 be32_to_cpu_array(rule->tuples_mask.src_ip, fs->m_u.usr_ip6_spec.ip6src, in hclge_fd_get_ip6_tuple()
6758 cpu_to_be32_array(spec->ip6src, in hclge_fd_get_tcpip6_info()
6763 memset(spec_mask->ip6src, 0, sizeof(spec_mask->ip6src)); in hclge_fd_get_tcpip6_info()
6765 cpu_to_be32_array(spec_mask->ip6src, rule->tuples_mask.src_ip, in hclge_fd_get_tcpip6_info()
6791 cpu_to_be32_array(spec->ip6src, rule->tuples.src_ip, IPV6_SIZE); in hclge_fd_get_ip6_info()
[all …]
/Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c526 ntohl(fsp->h_u.tcp_ip6_spec.ip6src[i]); in aq_set_data_fl3l4()
/Linux-v6.1/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c1081 *(struct in6_addr *)&fs->h_u.tcp_ip6_spec.ip6src[0] = in bnxt_grxclsrule()
1086 fs->m_u.tcp_ip6_spec.ip6src[i] = cpu_to_be32(~0); in bnxt_grxclsrule()
/Linux-v6.1/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c1359 memcpy(&fsp->h_u.tcp_ip6_spec.ip6src, in qede_get_cls_rule_entry()