Parse tokens for shared indirect actions. */
| 11264 | |
| 11265 | /** Parse tokens for shared indirect actions. */ |
| 11266 | static int |
| 11267 | parse_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 | |
| 11290 | static int |
| 11291 | parse_ia_id2ptr(struct context *ctx, const struct token *token, |
nothing calls this directly
no test coverage detected