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

Function parse_vc_conf_timeout

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

Parse action configuration field. */

Source from the content-addressed store, hash-verified

8257
8258/** Parse action configuration field. */
8259static int
8260parse_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. */
8286static int

Callers

nothing calls this directly

Calls 1

parse_defaultFunction · 0.85

Tested by

no test coverage detected