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

Function parse_ia_port

dpdk/app/test-pmd/cmdline_flow.c:11266–11288  ·  view source on GitHub ↗

Parse tokens for shared indirect actions. */

Source from the content-addressed store, hash-verified

11264
11265/** Parse tokens for shared indirect actions. */
11266static int
11267parse_ia_port(struct context *ctx, const struct token *token,
11268 const char *str, unsigned int len,
11269 void *buf, unsigned int size)
11270{
11271 struct rte_flow_action *action = ctx->object;
11272 uint32_t id;
11273 int ret;
11274
11275 (void)buf;
11276 (void)size;
11277 ctx->objdata = 0;
11278 ctx->object = &id;
11279 ctx->objmask = NULL;
11280 ret = parse_int(ctx, token, str, len, ctx->object, sizeof(id));
11281 ctx->object = action;
11282 if (ret != (int)len)
11283 return ret;
11284 /* set indirect action */
11285 if (action)
11286 action->conf = (void *)(uintptr_t)id;
11287 return ret;
11288}
11289
11290static int
11291parse_ia_id2ptr(struct context *ctx, const struct token *token,

Callers

nothing calls this directly

Calls 1

parse_intFunction · 0.85

Tested by

no test coverage detected