Lines Matching refs:pmask
538 struct flow_msg *pmask = &req->mask; in otx2_prepare_ipv4_flow() local
546 memcpy(&pmask->ip4src, &ipv4_usr_mask->ip4src, in otx2_prepare_ipv4_flow()
547 sizeof(pmask->ip4src)); in otx2_prepare_ipv4_flow()
553 memcpy(&pmask->ip4dst, &ipv4_usr_mask->ip4dst, in otx2_prepare_ipv4_flow()
554 sizeof(pmask->ip4dst)); in otx2_prepare_ipv4_flow()
559 pmask->tos = ipv4_usr_mask->tos; in otx2_prepare_ipv4_flow()
587 pmask->etype = cpu_to_be16(0xFFFF); in otx2_prepare_ipv4_flow()
594 pmask->etype = cpu_to_be16(0xFFFF); in otx2_prepare_ipv4_flow()
599 memcpy(&pmask->ip4src, &ipv4_l4_mask->ip4src, in otx2_prepare_ipv4_flow()
600 sizeof(pmask->ip4src)); in otx2_prepare_ipv4_flow()
606 memcpy(&pmask->ip4dst, &ipv4_l4_mask->ip4dst, in otx2_prepare_ipv4_flow()
607 sizeof(pmask->ip4dst)); in otx2_prepare_ipv4_flow()
612 pmask->tos = ipv4_l4_mask->tos; in otx2_prepare_ipv4_flow()
618 memcpy(&pmask->sport, &ipv4_l4_mask->psrc, in otx2_prepare_ipv4_flow()
619 sizeof(pmask->sport)); in otx2_prepare_ipv4_flow()
630 memcpy(&pmask->dport, &ipv4_l4_mask->pdst, in otx2_prepare_ipv4_flow()
631 sizeof(pmask->dport)); in otx2_prepare_ipv4_flow()
649 pmask->etype = cpu_to_be16(0xFFFF); in otx2_prepare_ipv4_flow()
654 memcpy(&pmask->ip4src, &ah_esp_mask->ip4src, in otx2_prepare_ipv4_flow()
655 sizeof(pmask->ip4src)); in otx2_prepare_ipv4_flow()
661 memcpy(&pmask->ip4dst, &ah_esp_mask->ip4dst, in otx2_prepare_ipv4_flow()
662 sizeof(pmask->ip4dst)); in otx2_prepare_ipv4_flow()
667 pmask->tos = ah_esp_mask->tos; in otx2_prepare_ipv4_flow()
697 struct flow_msg *pmask = &req->mask; in otx2_prepare_ipv6_flow() local
705 memcpy(&pmask->ip6src, &ipv6_usr_mask->ip6src, in otx2_prepare_ipv6_flow()
706 sizeof(pmask->ip6src)); in otx2_prepare_ipv6_flow()
712 memcpy(&pmask->ip6dst, &ipv6_usr_mask->ip6dst, in otx2_prepare_ipv6_flow()
713 sizeof(pmask->ip6dst)); in otx2_prepare_ipv6_flow()
718 pmask->next_header = ipv6_usr_mask->l4_proto; in otx2_prepare_ipv6_flow()
722 pmask->etype = cpu_to_be16(0xFFFF); in otx2_prepare_ipv6_flow()
729 pmask->etype = cpu_to_be16(0xFFFF); 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()
741 memcpy(&pmask->ip6dst, &ipv6_l4_mask->ip6dst, in otx2_prepare_ipv6_flow()
742 sizeof(pmask->ip6dst)); in otx2_prepare_ipv6_flow()
748 memcpy(&pmask->sport, &ipv6_l4_mask->psrc, in otx2_prepare_ipv6_flow()
749 sizeof(pmask->sport)); in otx2_prepare_ipv6_flow()
760 memcpy(&pmask->dport, &ipv6_l4_mask->pdst, in otx2_prepare_ipv6_flow()
761 sizeof(pmask->dport)); in otx2_prepare_ipv6_flow()
779 pmask->etype = cpu_to_be16(0xFFFF); in otx2_prepare_ipv6_flow()
784 memcpy(&pmask->ip6src, &ah_esp_mask->ip6src, in otx2_prepare_ipv6_flow()
785 sizeof(pmask->ip6src)); in otx2_prepare_ipv6_flow()
791 memcpy(&pmask->ip6dst, &ah_esp_mask->ip6dst, in otx2_prepare_ipv6_flow()
792 sizeof(pmask->ip6dst)); in otx2_prepare_ipv6_flow()
818 struct flow_msg *pmask = &req->mask; in otx2_prepare_flow_request() local
829 ether_addr_copy(pmask->smac, eth_mask->h_source); in otx2_prepare_flow_request()
834 ether_addr_copy(pmask->dmac, eth_mask->h_dest); in otx2_prepare_flow_request()
840 memcpy(&pmask->etype, ð_mask->h_proto, in otx2_prepare_flow_request()
841 sizeof(pmask->etype)); in otx2_prepare_flow_request()
892 memcpy(&pmask->vlan_etype, &fsp->m_ext.vlan_etype, in otx2_prepare_flow_request()
893 sizeof(pmask->vlan_etype)); in otx2_prepare_flow_request()
904 memcpy(&pmask->vlan_tci, &fsp->m_ext.vlan_tci, in otx2_prepare_flow_request()
905 sizeof(pmask->vlan_tci)); in otx2_prepare_flow_request()
915 pmask->ip_flag = be32_to_cpu(fsp->m_ext.data[1]); in otx2_prepare_flow_request()
930 ether_addr_copy(pmask->dmac, fsp->m_ext.h_dest); in otx2_prepare_flow_request()