Lines Matching refs:pattern

284 		sa->pattern[0].type = RTE_FLOW_ITEM_TYPE_ETH;  in create_inline_session()
287 sa->pattern[1].mask = &rte_flow_item_ipv6_mask; in create_inline_session()
288 sa->pattern[1].type = RTE_FLOW_ITEM_TYPE_IPV6; in create_inline_session()
289 sa->pattern[1].spec = &sa->ipv6_spec; in create_inline_session()
296 sa->pattern[1].mask = &rte_flow_item_ipv4_mask; in create_inline_session()
297 sa->pattern[1].type = RTE_FLOW_ITEM_TYPE_IPV4; in create_inline_session()
298 sa->pattern[1].spec = &sa->ipv4_spec; in create_inline_session()
313 sa->pattern[2].mask = &rte_flow_item_udp_mask; in create_inline_session()
314 sa->pattern[2].type = RTE_FLOW_ITEM_TYPE_UDP; in create_inline_session()
315 sa->pattern[2].spec = &sa->udp_spec; in create_inline_session()
317 sa->pattern[3].type = RTE_FLOW_ITEM_TYPE_ESP; in create_inline_session()
318 sa->pattern[3].spec = &sa->esp_spec; in create_inline_session()
319 sa->pattern[3].mask = &rte_flow_item_esp_mask; in create_inline_session()
321 sa->pattern[4].type = RTE_FLOW_ITEM_TYPE_END; in create_inline_session()
323 sa->pattern[2].type = RTE_FLOW_ITEM_TYPE_ESP; in create_inline_session()
324 sa->pattern[2].spec = &sa->esp_spec; in create_inline_session()
325 sa->pattern[2].mask = &rte_flow_item_esp_mask; in create_inline_session()
327 sa->pattern[3].type = RTE_FLOW_ITEM_TYPE_END; in create_inline_session()
386 sa->pattern, sa->action, in create_inline_session()
397 sa->pattern, sa->action, in create_inline_session()
403 sa->pattern, sa->action, in create_inline_session()
417 &sa->attr, sa->pattern, sa->action, &err); in create_inline_session()
511 sa->pattern[0].type = RTE_FLOW_ITEM_TYPE_ETH; in create_ipsec_esp_flow()
518 sa->pattern[1].mask = &rte_flow_item_ipv6_mask; in create_ipsec_esp_flow()
519 sa->pattern[1].type = RTE_FLOW_ITEM_TYPE_IPV6; in create_ipsec_esp_flow()
520 sa->pattern[1].spec = &sa->ipv6_spec; in create_ipsec_esp_flow()
525 sa->pattern[2].type = RTE_FLOW_ITEM_TYPE_ESP; in create_ipsec_esp_flow()
526 sa->pattern[2].spec = &sa->esp_spec; in create_ipsec_esp_flow()
527 sa->pattern[2].mask = &rte_flow_item_esp_mask; in create_ipsec_esp_flow()
529 sa->pattern[3].type = RTE_FLOW_ITEM_TYPE_END; in create_ipsec_esp_flow()
531 sa->pattern[1].mask = &rte_flow_item_ipv4_mask; in create_ipsec_esp_flow()
532 sa->pattern[1].type = RTE_FLOW_ITEM_TYPE_IPV4; in create_ipsec_esp_flow()
533 sa->pattern[1].spec = &sa->ipv4_spec; in create_ipsec_esp_flow()
536 sa->pattern[2].type = RTE_FLOW_ITEM_TYPE_ESP; in create_ipsec_esp_flow()
537 sa->pattern[2].spec = &sa->esp_spec; in create_ipsec_esp_flow()
538 sa->pattern[2].mask = &rte_flow_item_esp_mask; in create_ipsec_esp_flow()
540 sa->pattern[3].type = RTE_FLOW_ITEM_TYPE_END; in create_ipsec_esp_flow()
544 ret = rte_flow_validate(sa->portid, &sa->attr, sa->pattern, sa->action, in create_ipsec_esp_flow()
551 sa->flow = rte_flow_create(sa->portid, &sa->attr, sa->pattern, in create_ipsec_esp_flow()