Lines Matching refs:flow_spec

567 static int otx2_tc_process_vlan(struct otx2_nic *nic, struct flow_msg *flow_spec,  in otx2_tc_process_vlan()  argument
610 flow_spec->vlan_itci = htons(vlan_tci); in otx2_tc_process_vlan()
614 flow_spec->vlan_tci = htons(vlan_tci); in otx2_tc_process_vlan()
628 struct flow_msg *flow_spec = &req->packet; in otx2_tc_prepare_flow() local
662 flow_spec->etype = match.key->n_proto; in otx2_tc_prepare_flow()
706 if (ntohs(flow_spec->etype) == ETH_P_IP) { in otx2_tc_prepare_flow()
707 flow_spec->ip_flag = val ? IPV4_FLAG_MORE : 0; in otx2_tc_prepare_flow()
710 } else if (ntohs(flow_spec->etype) == ETH_P_IPV6) { in otx2_tc_prepare_flow()
711 flow_spec->next_header = val ? in otx2_tc_prepare_flow()
736 ether_addr_copy(flow_spec->dmac, (u8 *)&match.key->dst); in otx2_tc_prepare_flow()
758 flow_spec->spi = match.key->spi; in otx2_tc_prepare_flow()
767 if ((ntohs(flow_spec->etype) != ETH_P_IP) && in otx2_tc_prepare_flow()
776 flow_spec->tos = match.key->tos; in otx2_tc_prepare_flow()
784 ret = otx2_tc_process_vlan(nic, flow_spec, flow_mask, rule, req, false); in otx2_tc_prepare_flow()
792 ret = otx2_tc_process_vlan(nic, flow_spec, flow_mask, rule, req, true); in otx2_tc_prepare_flow()
802 flow_spec->ip4dst = match.key->dst; in otx2_tc_prepare_flow()
806 flow_spec->ip4src = match.key->src; in otx2_tc_prepare_flow()
822 memcpy(&flow_spec->ip6dst, in otx2_tc_prepare_flow()
824 sizeof(flow_spec->ip6dst)); in otx2_tc_prepare_flow()
827 sizeof(flow_spec->ip6dst)); in otx2_tc_prepare_flow()
832 memcpy(&flow_spec->ip6src, in otx2_tc_prepare_flow()
834 sizeof(flow_spec->ip6src)); in otx2_tc_prepare_flow()
837 sizeof(flow_spec->ip6src)); in otx2_tc_prepare_flow()
847 flow_spec->dport = match.key->dst; in otx2_tc_prepare_flow()
859 flow_spec->sport = match.key->src; in otx2_tc_prepare_flow()
877 flow_spec->tcp_flags = match.key->flags; in otx2_tc_prepare_flow()
907 flow_spec->mpls_lse[bit] = in otx2_tc_prepare_flow()
927 flow_spec->mpls_lse[bit] |= in otx2_tc_prepare_flow()
942 flow_spec->icmp_type = match.key->type; in otx2_tc_prepare_flow()
946 flow_spec->icmp_code = match.key->code; in otx2_tc_prepare_flow()