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

Function parse_cryptodev_arg

dpdk/examples/fips_validation/main.c:257–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255#endif /* USE_JANSSON */
256
257static int
258parse_cryptodev_arg(char *arg)
259{
260 int id = rte_cryptodev_get_dev_id(arg);
261
262 if (id < 0) {
263 RTE_LOG(ERR, USER1, "Error %i: invalid cryptodev name %s\n",
264 id, arg);
265 return id;
266 }
267
268 env.dev_id = (uint8_t)id;
269
270 return 0;
271}
272
273static int
274parse_cryptodev_id_arg(char *arg)

Callers 1

Calls 1

rte_cryptodev_get_dev_idFunction · 0.85

Tested by

no test coverage detected