Parse action configuration field. */
| 8257 | |
| 8258 | /** Parse action configuration field. */ |
| 8259 | static int |
| 8260 | parse_vc_conf_timeout(struct context *ctx, const struct token *token, |
| 8261 | const char *str, unsigned int len, |
| 8262 | void *buf, unsigned int size) |
| 8263 | { |
| 8264 | struct buffer *out = buf; |
| 8265 | struct rte_flow_update_age *update; |
| 8266 | |
| 8267 | (void)size; |
| 8268 | if (ctx->curr != ACTION_AGE_UPDATE_TIMEOUT) |
| 8269 | return -1; |
| 8270 | /* Token name must match. */ |
| 8271 | if (parse_default(ctx, token, str, len, NULL, 0) < 0) |
| 8272 | return -1; |
| 8273 | /* Nothing else to do if there is no buffer. */ |
| 8274 | if (!out) |
| 8275 | return len; |
| 8276 | /* Point to selected object. */ |
| 8277 | ctx->object = out->args.vc.data; |
| 8278 | ctx->objmask = NULL; |
| 8279 | /* Update the timeout is valid. */ |
| 8280 | update = (struct rte_flow_update_age *)out->args.vc.data; |
| 8281 | update->timeout_valid = 1; |
| 8282 | return len; |
| 8283 | } |
| 8284 | |
| 8285 | /** Parse eCPRI common header type field. */ |
| 8286 | static int |
nothing calls this directly
no test coverage detected