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

Function get_alg_opt

dpdk/app/test-acl/main.c:1109–1123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1107}
1108
1109static void
1110get_alg_opt(const char *opt, const char *name)
1111{
1112 uint32_t i;
1113
1114 for (i = 0; i != RTE_DIM(acl_alg); i++) {
1115 if (strcmp(opt, acl_alg[i].name) == 0) {
1116 config.alg = acl_alg[i];
1117 return;
1118 }
1119 }
1120
1121 rte_exit(-EINVAL, "invalid value: \"%s\" for option: %s\n",
1122 opt, name);
1123}
1124
1125static void
1126get_ipv6_opt(const char *opt, const char *name)

Callers 1

get_input_optsFunction · 0.85

Calls 2

strcmpFunction · 0.85
rte_exitFunction · 0.85

Tested by

no test coverage detected