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

Function parse_quota_mode_name

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

Source from the content-addressed store, hash-verified

11755}
11756
11757static int
11758parse_quota_mode_name(struct context *ctx, const struct token *token,
11759 const char *str, unsigned int len, void *buf,
11760 unsigned int size)
11761{
11762 struct rte_flow_action_quota *quota = ctx->object;
11763
11764 return parse_name_to_index(ctx, token, str, len, buf, size,
11765 quota_mode_names,
11766 RTE_DIM(quota_mode_names),
11767 (uint32_t *)&quota->mode);
11768}
11769
11770static int
11771parse_quota_update_name(struct context *ctx, const struct token *token,

Callers

nothing calls this directly

Calls 1

parse_name_to_indexFunction · 0.85

Tested by

no test coverage detected