Lines Matching refs:spec
413 .spec = &(const struct rte_flow_item_eth){
433 .spec = &(const struct rte_flow_item_eth){
467 .spec = &(const struct rte_flow_item_eth){
521 const struct rte_flow_item_eth *spec = item->spec; in tap_flow_create_eth() local
532 if (!spec) in tap_flow_create_eth()
535 if (spec->type & mask->type) in tap_flow_create_eth()
536 info->eth_type = spec->type; in tap_flow_create_eth()
543 &spec->dst.addr_bytes); in tap_flow_create_eth()
551 &spec->src.addr_bytes); in tap_flow_create_eth()
575 const struct rte_flow_item_vlan *spec = item->spec; in tap_flow_create_vlan() local
594 info->eth_type = spec->inner_type; in tap_flow_create_vlan()
602 if (!spec) in tap_flow_create_vlan()
604 if (spec->tci) { in tap_flow_create_vlan()
605 uint16_t tci = ntohs(spec->tci) & mask->tci; in tap_flow_create_vlan()
635 const struct rte_flow_item_ipv4 *spec = item->spec; in tap_flow_create_ipv4() local
647 if (spec) in tap_flow_create_ipv4()
648 info->ip_proto = spec->hdr.next_proto_id; in tap_flow_create_ipv4()
654 if (!spec) in tap_flow_create_ipv4()
658 spec->hdr.dst_addr); in tap_flow_create_ipv4()
664 spec->hdr.src_addr); in tap_flow_create_ipv4()
668 if (spec->hdr.next_proto_id) in tap_flow_create_ipv4()
670 spec->hdr.next_proto_id); in tap_flow_create_ipv4()
690 const struct rte_flow_item_ipv6 *spec = item->spec; in tap_flow_create_ipv6() local
703 if (spec) in tap_flow_create_ipv6()
704 info->ip_proto = spec->hdr.proto; in tap_flow_create_ipv6()
710 if (!spec) in tap_flow_create_ipv6()
714 sizeof(spec->hdr.dst_addr), &spec->hdr.dst_addr); in tap_flow_create_ipv6()
720 sizeof(spec->hdr.src_addr), &spec->hdr.src_addr); in tap_flow_create_ipv6()
724 if (spec->hdr.proto) in tap_flow_create_ipv6()
726 TCA_FLOWER_KEY_IP_PROTO, spec->hdr.proto); in tap_flow_create_ipv6()
746 const struct rte_flow_item_udp *spec = item->spec; in tap_flow_create_udp() local
765 if (!spec) in tap_flow_create_udp()
769 spec->hdr.dst_port); in tap_flow_create_udp()
772 spec->hdr.src_port); in tap_flow_create_udp()
792 const struct rte_flow_item_tcp *spec = item->spec; in tap_flow_create_tcp() local
811 if (!spec) in tap_flow_create_tcp()
815 spec->hdr.dst_port); in tap_flow_create_tcp()
818 spec->hdr.src_port); in tap_flow_create_tcp()
847 if (!item->spec && (item->mask || item->last)) in tap_flow_item_validate()
850 if (item->spec && !item->mask) { in tap_flow_item_validate()
852 const uint8_t *spec = item->spec; in tap_flow_item_validate() local
855 if ((spec[i] | supported_mask[i]) != supported_mask[i]) in tap_flow_item_validate()
866 const uint8_t *spec = item->last; in tap_flow_item_validate() local
869 if ((spec[i] | supported_mask[i]) != supported_mask[i]) in tap_flow_item_validate()
875 const uint8_t *spec = item->mask; in tap_flow_item_validate() local
878 if ((spec[i] | supported_mask[i]) != supported_mask[i]) in tap_flow_item_validate()
885 if (item->spec && item->last) { in tap_flow_item_validate()
886 uint8_t spec[size]; in tap_flow_item_validate() local
894 spec[i] = ((const uint8_t *)item->spec)[i] & apply[i]; in tap_flow_item_validate()
897 ret = memcmp(spec, last, size); in tap_flow_item_validate()
1688 .spec = ð_local, in tap_flow_implicit_create()