Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c702 if (!ipv6_addr_any((struct in6_addr *)ipv6_usr_mask->ip6src)) { in otx2_prepare_ipv6_flow()
703 memcpy(&pkt->ip6src, &ipv6_usr_hdr->ip6src, in otx2_prepare_ipv6_flow()
704 sizeof(pkt->ip6src)); in otx2_prepare_ipv6_flow()
705 memcpy(&pmask->ip6src, &ipv6_usr_mask->ip6src, in otx2_prepare_ipv6_flow()
706 sizeof(pmask->ip6src)); in otx2_prepare_ipv6_flow()
731 if (!ipv6_addr_any((struct in6_addr *)ipv6_l4_mask->ip6src)) { in otx2_prepare_ipv6_flow()
732 memcpy(&pkt->ip6src, &ipv6_l4_hdr->ip6src, in otx2_prepare_ipv6_flow()
733 sizeof(pkt->ip6src)); in otx2_prepare_ipv6_flow()
734 memcpy(&pmask->ip6src, &ipv6_l4_mask->ip6src, in otx2_prepare_ipv6_flow()
735 sizeof(pmask->ip6src)); in otx2_prepare_ipv6_flow()
[all …]
Dotx2_tc.c720 memcpy(&flow_spec->ip6src, in otx2_tc_prepare_flow()
722 sizeof(flow_spec->ip6src)); in otx2_tc_prepare_flow()
723 memcpy(&flow_mask->ip6src, in otx2_tc_prepare_flow()
725 sizeof(flow_spec->ip6src)); in otx2_tc_prepare_flow()
/linux-6.6.21/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-6.6.21/drivers/net/ethernet/sfc/
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()
1011 if (!ip6_mask_is_empty(ip6_mask->ip6src)) { in efx_ethtool_set_class_rule()
1012 if (!ip6_mask_is_full(ip6_mask->ip6src)) in efx_ethtool_set_class_rule()
1015 memcpy(spec.rem_host, ip6_entry->ip6src, sizeof(spec.rem_host)); in efx_ethtool_set_class_rule()
1070 if (!ip6_mask_is_empty(uip6_mask->ip6src)) { in efx_ethtool_set_class_rule()
[all …]
/linux-6.6.21/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-6.6.21/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-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
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-6.6.21/drivers/net/ethernet/intel/iavf/
Diavf_ethtool.c1125 memcpy(fsp->h_u.usr_ip6_spec.ip6src, &rule->ip_data.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1132 memcpy(fsp->m_u.usr_ip6_spec.ip6src, &rule->ip_mask.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1142 memcpy(fsp->h_u.ah_ip6_spec.ip6src, &rule->ip_data.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1148 memcpy(fsp->m_u.ah_ip6_spec.ip6src, &rule->ip_mask.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1156 memcpy(fsp->h_u.usr_ip6_spec.ip6src, &rule->ip_data.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1163 memcpy(fsp->m_u.usr_ip6_spec.ip6src, &rule->ip_mask.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1314 memcpy(&fltr->ip_data.v6_addrs.src_ip, fsp->h_u.usr_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
1321 memcpy(&fltr->ip_mask.v6_addrs.src_ip, fsp->m_u.usr_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
1332 memcpy(&fltr->ip_data.v6_addrs.src_ip, fsp->h_u.ah_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
1338 memcpy(&fltr->ip_mask.v6_addrs.src_ip, fsp->m_u.ah_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
[all …]
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npc_fs.c821 be32_to_cpu_array(src_ip_mask, mask->ip6src, IPV6_WORDS); in npc_update_ipv6_flow()
822 be32_to_cpu_array(src_ip, pkt->ip6src, IPV6_WORDS); in npc_update_ipv6_flow()
831 memcpy(opkt->ip6src, pkt->ip6src, sizeof(opkt->ip6src)); in npc_update_ipv6_flow()
832 memcpy(omask->ip6src, mask->ip6src, sizeof(omask->ip6src)); in npc_update_ipv6_flow()
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()
Dmbox.h1455 __be32 ip6src[4]; member
Drvu_debugfs.c2808 seq_printf(s, "%pI6 ", rule->packet.ip6src); in rvu_dbg_npc_mcam_show_flows()
2809 seq_printf(s, "mask %pI6\n", rule->mask.ip6src); in rvu_dbg_npc_mcam_show_flows()
/linux-6.6.21/include/uapi/linux/
Dethtool.h1031 __be32 ip6src[4]; member
1048 __be32 ip6src[4]; member
1063 __be32 ip6src[4]; member
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3395 memcpy(fsp->h_u.tcp_ip6_spec.ip6src, rule->dst_ip6, in i40e_get_ethtool_fdir_entry()
3449 fsp->m_u.tcp_ip6_spec.ip6src[0] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3450 fsp->m_u.tcp_ip6_spec.ip6src[1] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3451 fsp->m_u.tcp_ip6_spec.ip6src[2] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3452 fsp->m_u.tcp_ip6_spec.ip6src[3] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
4410 if (ipv6_addr_equal((struct in6_addr *)&tcp_ip6_spec->ip6src, in i40e_check_fdir_input_set()
4414 &tcp_ip6_spec->ip6src)) in i40e_check_fdir_input_set()
4489 if (ipv6_addr_equal((struct in6_addr *)&usr_ip6_spec->ip6src, in i40e_check_fdir_input_set()
4493 &usr_ip6_spec->ip6src)) in i40e_check_fdir_input_set()
4893 memcpy(input->dst_ip6, fsp->h_u.ah_ip6_spec.ip6src, in i40e_add_fdir_ethtool()
/linux-6.6.21/drivers/net/ethernet/broadcom/asp2/
Dbcmasp.c359 &match->ip6src, &mask->ip6src, in bcmasp_netfilt_tcpip6_wr()
360 sizeof(match->ip6src)); in bcmasp_netfilt_tcpip6_wr()
/linux-6.6.21/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-6.6.21/net/ethtool/
Dioctl.c3248 if (!ipv6_addr_any((struct in6_addr *)v6_m_spec->ip6src)) { in ethtool_rx_flow_rule_create()
3249 memcpy(&match->key.ipv6.src, v6_spec->ip6src, in ethtool_rx_flow_rule_create()
3251 memcpy(&match->mask.ipv6.src, v6_m_spec->ip6src, in ethtool_rx_flow_rule_create()
3260 if (!ipv6_addr_any((struct in6_addr *)v6_m_spec->ip6src) || in ethtool_rx_flow_rule_create()
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c5891 if (ipv6_addr_any((struct in6_addr *)spec->ip6src)) in hclge_fd_check_tcpip6_tuple()
5919 if (ipv6_addr_any((struct in6_addr *)spec->ip6src)) in hclge_fd_check_ip6_tuple()
6212 be32_to_cpu_array(rule->tuples.src_ip, fs->h_u.tcp_ip6_spec.ip6src, in hclge_fd_get_tcpip6_tuple()
6214 be32_to_cpu_array(rule->tuples_mask.src_ip, fs->m_u.tcp_ip6_spec.ip6src, in hclge_fd_get_tcpip6_tuple()
6241 be32_to_cpu_array(rule->tuples.src_ip, fs->h_u.usr_ip6_spec.ip6src, in hclge_fd_get_ip6_tuple()
6243 be32_to_cpu_array(rule->tuples_mask.src_ip, fs->m_u.usr_ip6_spec.ip6src, in hclge_fd_get_ip6_tuple()
6678 cpu_to_be32_array(spec->ip6src, in hclge_fd_get_tcpip6_info()
6683 memset(spec_mask->ip6src, 0, sizeof(spec_mask->ip6src)); in hclge_fd_get_tcpip6_info()
6685 cpu_to_be32_array(spec_mask->ip6src, rule->tuples_mask.src_ip, in hclge_fd_get_tcpip6_info()
6711 cpu_to_be32_array(spec->ip6src, rule->tuples.src_ip, IPV6_SIZE); in hclge_fd_get_ip6_info()
[all …]
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c526 ntohl(fsp->h_u.tcp_ip6_spec.ip6src[i]); in aq_set_data_fl3l4()
/linux-6.6.21/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c1359 memcpy(&fsp->h_u.tcp_ip6_spec.ip6src, in qede_get_cls_rule_entry()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c1074 *(struct in6_addr *)&fs->h_u.tcp_ip6_spec.ip6src[0] = in bnxt_grxclsrule()
1079 fs->m_u.tcp_ip6_spec.ip6src[i] = cpu_to_be32(~0); in bnxt_grxclsrule()