Lines Matching refs:pattern
232 sa->pattern[0].type = RTE_FLOW_ITEM_TYPE_ETH; in create_inline_session()
235 sa->pattern[1].mask = &rte_flow_item_ipv6_mask; in create_inline_session()
236 sa->pattern[1].type = RTE_FLOW_ITEM_TYPE_IPV6; in create_inline_session()
237 sa->pattern[1].spec = &sa->ipv6_spec; in create_inline_session()
244 sa->pattern[1].mask = &rte_flow_item_ipv4_mask; in create_inline_session()
245 sa->pattern[1].type = RTE_FLOW_ITEM_TYPE_IPV4; in create_inline_session()
246 sa->pattern[1].spec = &sa->ipv4_spec; in create_inline_session()
252 sa->pattern[2].type = RTE_FLOW_ITEM_TYPE_ESP; in create_inline_session()
253 sa->pattern[2].spec = &sa->esp_spec; in create_inline_session()
254 sa->pattern[2].mask = &rte_flow_item_esp_mask; in create_inline_session()
257 sa->pattern[3].type = RTE_FLOW_ITEM_TYPE_END; in create_inline_session()
315 sa->pattern, sa->action, in create_inline_session()
326 sa->pattern, sa->action, in create_inline_session()
332 sa->pattern, sa->action, in create_inline_session()
346 &sa->attr, sa->pattern, sa->action, &err); in create_inline_session()
440 sa->pattern[0].type = RTE_FLOW_ITEM_TYPE_ETH; in create_ipsec_esp_flow()
447 sa->pattern[1].mask = &rte_flow_item_ipv6_mask; in create_ipsec_esp_flow()
448 sa->pattern[1].type = RTE_FLOW_ITEM_TYPE_IPV6; in create_ipsec_esp_flow()
449 sa->pattern[1].spec = &sa->ipv6_spec; in create_ipsec_esp_flow()
454 sa->pattern[2].type = RTE_FLOW_ITEM_TYPE_ESP; in create_ipsec_esp_flow()
455 sa->pattern[2].spec = &sa->esp_spec; in create_ipsec_esp_flow()
456 sa->pattern[2].mask = &rte_flow_item_esp_mask; in create_ipsec_esp_flow()
458 sa->pattern[3].type = RTE_FLOW_ITEM_TYPE_END; in create_ipsec_esp_flow()
460 sa->pattern[1].mask = &rte_flow_item_ipv4_mask; in create_ipsec_esp_flow()
461 sa->pattern[1].type = RTE_FLOW_ITEM_TYPE_IPV4; in create_ipsec_esp_flow()
462 sa->pattern[1].spec = &sa->ipv4_spec; in create_ipsec_esp_flow()
465 sa->pattern[2].type = RTE_FLOW_ITEM_TYPE_ESP; in create_ipsec_esp_flow()
466 sa->pattern[2].spec = &sa->esp_spec; in create_ipsec_esp_flow()
467 sa->pattern[2].mask = &rte_flow_item_esp_mask; in create_ipsec_esp_flow()
469 sa->pattern[3].type = RTE_FLOW_ITEM_TYPE_END; in create_ipsec_esp_flow()
473 ret = rte_flow_validate(sa->portid, &sa->attr, sa->pattern, sa->action, in create_ipsec_esp_flow()
480 sa->flow = rte_flow_create(sa->portid, &sa->attr, sa->pattern, in create_ipsec_esp_flow()