Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c712 if (!ipv6_addr_any((struct in6_addr *)ipv6_usr_mask->ip6src)) { in otx2_prepare_ipv6_flow()
713 memcpy(&pkt->ip6src, &ipv6_usr_hdr->ip6src, in otx2_prepare_ipv6_flow()
714 sizeof(pkt->ip6src)); in otx2_prepare_ipv6_flow()
715 memcpy(&pmask->ip6src, &ipv6_usr_mask->ip6src, in otx2_prepare_ipv6_flow()
716 sizeof(pmask->ip6src)); in otx2_prepare_ipv6_flow()
741 if (!ipv6_addr_any((struct in6_addr *)ipv6_l4_mask->ip6src)) { in otx2_prepare_ipv6_flow()
742 memcpy(&pkt->ip6src, &ipv6_l4_hdr->ip6src, in otx2_prepare_ipv6_flow()
743 sizeof(pkt->ip6src)); in otx2_prepare_ipv6_flow()
744 memcpy(&pmask->ip6src, &ipv6_l4_mask->ip6src, in otx2_prepare_ipv6_flow()
745 sizeof(pmask->ip6src)); in otx2_prepare_ipv6_flow()
[all …]
H A Dotx2_tc.c723 memcpy(&flow_spec->ip6src, in otx2_tc_prepare_flow()
725 sizeof(flow_spec->ip6src)); in otx2_tc_prepare_flow()
726 memcpy(&flow_mask->ip6src, in otx2_tc_prepare_flow()
728 sizeof(flow_spec->ip6src)); in otx2_tc_prepare_flow()
/openbmc/linux/drivers/net/ethernet/sfc/falcon/
H A 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 …]
/openbmc/linux/drivers/net/ethernet/sfc/
H A 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 …]
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A 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 …]
/openbmc/linux/drivers/net/ethernet/intel/ice/
H A 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 …]
/openbmc/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()
/openbmc/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c1126 memcpy(fsp->h_u.usr_ip6_spec.ip6src, &rule->ip_data.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1133 memcpy(fsp->m_u.usr_ip6_spec.ip6src, &rule->ip_mask.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1143 memcpy(fsp->h_u.ah_ip6_spec.ip6src, &rule->ip_data.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1149 memcpy(fsp->m_u.ah_ip6_spec.ip6src, &rule->ip_mask.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1157 memcpy(fsp->h_u.usr_ip6_spec.ip6src, &rule->ip_data.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1164 memcpy(fsp->m_u.usr_ip6_spec.ip6src, &rule->ip_mask.v6_addrs.src_ip, in iavf_get_ethtool_fdir_entry()
1315 memcpy(&fltr->ip_data.v6_addrs.src_ip, fsp->h_u.usr_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
1322 memcpy(&fltr->ip_mask.v6_addrs.src_ip, fsp->m_u.usr_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
1333 memcpy(&fltr->ip_data.v6_addrs.src_ip, fsp->h_u.ah_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
1339 memcpy(&fltr->ip_mask.v6_addrs.src_ip, fsp->m_u.ah_ip6_spec.ip6src, in iavf_add_fdir_fltr_info()
[all …]
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A 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()
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 Dmbox.h1462 __be32 ip6src[4]; member
H A Drvu_debugfs.c2806 seq_printf(s, "%pI6 ", rule->packet.ip6src); in rvu_dbg_npc_mcam_show_flows()
2807 seq_printf(s, "mask %pI6\n", rule->mask.ip6src); in rvu_dbg_npc_mcam_show_flows()
/openbmc/qemu/include/standard-headers/linux/
H A Dethtool.h1295 uint32_t ip6src[4]; member
1312 uint32_t ip6src[4]; member
1327 uint32_t ip6src[4]; member
/openbmc/linux/include/uapi/linux/
H A Dethtool.h1031 __be32 ip6src[4]; member
1048 __be32 ip6src[4]; member
1063 __be32 ip6src[4]; member
/openbmc/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c3396 memcpy(fsp->h_u.tcp_ip6_spec.ip6src, rule->dst_ip6, in i40e_get_ethtool_fdir_entry()
3450 fsp->m_u.tcp_ip6_spec.ip6src[0] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3451 fsp->m_u.tcp_ip6_spec.ip6src[1] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3452 fsp->m_u.tcp_ip6_spec.ip6src[2] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3453 fsp->m_u.tcp_ip6_spec.ip6src[3] = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
4411 if (ipv6_addr_equal((struct in6_addr *)&tcp_ip6_spec->ip6src, in i40e_check_fdir_input_set()
4415 &tcp_ip6_spec->ip6src)) in i40e_check_fdir_input_set()
4490 if (ipv6_addr_equal((struct in6_addr *)&usr_ip6_spec->ip6src, in i40e_check_fdir_input_set()
4494 &usr_ip6_spec->ip6src)) in i40e_check_fdir_input_set()
4894 memcpy(input->dst_ip6, fsp->h_u.ah_ip6_spec.ip6src, in i40e_add_fdir_ethtool()
/openbmc/linux/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp.c359 &match->ip6src, &mask->ip6src, in bcmasp_netfilt_tcpip6_wr()
360 sizeof(match->ip6src)); in bcmasp_netfilt_tcpip6_wr()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A 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()
/openbmc/linux/net/ethtool/
H A Dioctl.c3251 if (!ipv6_addr_any((struct in6_addr *)v6_m_spec->ip6src)) { in ethtool_rx_flow_rule_create()
3252 memcpy(&match->key.ipv6.src, v6_spec->ip6src, in ethtool_rx_flow_rule_create()
3254 memcpy(&match->mask.ipv6.src, v6_m_spec->ip6src, in ethtool_rx_flow_rule_create()
3263 if (!ipv6_addr_any((struct in6_addr *)v6_m_spec->ip6src) || in ethtool_rx_flow_rule_create()
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c5916 if (ipv6_addr_any((struct in6_addr *)spec->ip6src)) in hclge_fd_check_tcpip6_tuple()
5944 if (ipv6_addr_any((struct in6_addr *)spec->ip6src)) in hclge_fd_check_ip6_tuple()
6237 be32_to_cpu_array(rule->tuples.src_ip, fs->h_u.tcp_ip6_spec.ip6src, in hclge_fd_get_tcpip6_tuple()
6239 be32_to_cpu_array(rule->tuples_mask.src_ip, fs->m_u.tcp_ip6_spec.ip6src, in hclge_fd_get_tcpip6_tuple()
6266 be32_to_cpu_array(rule->tuples.src_ip, fs->h_u.usr_ip6_spec.ip6src, in hclge_fd_get_ip6_tuple()
6268 be32_to_cpu_array(rule->tuples_mask.src_ip, fs->m_u.usr_ip6_spec.ip6src, in hclge_fd_get_ip6_tuple()
6703 cpu_to_be32_array(spec->ip6src, in hclge_fd_get_tcpip6_info()
6708 memset(spec_mask->ip6src, 0, sizeof(spec_mask->ip6src)); in hclge_fd_get_tcpip6_info()
6710 cpu_to_be32_array(spec_mask->ip6src, rule->tuples_mask.src_ip, in hclge_fd_get_tcpip6_info()
6736 cpu_to_be32_array(spec->ip6src, rule->tuples.src_ip, IPV6_SIZE); in hclge_fd_get_ip6_info()
[all …]
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A 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()