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

Function parse_vc_conf

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

Parse action configuration field. */

Source from the content-addressed store, hash-verified

8236
8237/** Parse action configuration field. */
8238static int
8239parse_vc_conf(struct context *ctx, const struct token *token,
8240 const char *str, unsigned int len,
8241 void *buf, unsigned int size)
8242{
8243 struct buffer *out = buf;
8244
8245 (void)size;
8246 /* Token name must match. */
8247 if (parse_default(ctx, token, str, len, NULL, 0) < 0)
8248 return -1;
8249 /* Nothing else to do if there is no buffer. */
8250 if (!out)
8251 return len;
8252 /* Point to selected object. */
8253 ctx->object = out->args.vc.data;
8254 ctx->objmask = NULL;
8255 return len;
8256}
8257
8258/** Parse action configuration field. */
8259static int

Callers

nothing calls this directly

Calls 1

parse_defaultFunction · 0.85

Tested by

no test coverage detected