Return age action structure if exists, otherwise NULL. */
| 2291 | |
| 2292 | /** Return age action structure if exists, otherwise NULL. */ |
| 2293 | static struct rte_flow_action_age * |
| 2294 | age_action_get(const struct rte_flow_action *actions) |
| 2295 | { |
| 2296 | for (; actions->type != RTE_FLOW_ACTION_TYPE_END; actions++) { |
| 2297 | switch (actions->type) { |
| 2298 | case RTE_FLOW_ACTION_TYPE_AGE: |
| 2299 | return (struct rte_flow_action_age *) |
| 2300 | (uintptr_t)actions->conf; |
| 2301 | default: |
| 2302 | break; |
| 2303 | } |
| 2304 | } |
| 2305 | return NULL; |
| 2306 | } |
| 2307 | |
| 2308 | /** Create pattern template */ |
| 2309 | int |
no outgoing calls
no test coverage detected