MCPcopy Create free account
hub / github.com/F-Stack/f-stack / age_action_get

Function age_action_get

dpdk/app/test-pmd/config.c:2293–2306  ·  view source on GitHub ↗

Return age action structure if exists, otherwise NULL. */

Source from the content-addressed store, hash-verified

2291
2292/** Return age action structure if exists, otherwise NULL. */
2293static struct rte_flow_action_age *
2294age_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 */
2309int

Callers 3

port_queue_flow_createFunction · 0.85
port_queue_flow_updateFunction · 0.85
port_flow_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected