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

Function zlib_probe

dpdk/drivers/compress/zlib/zlib_pmd.c:377–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377static int
378zlib_probe(struct rte_vdev_device *vdev)
379{
380 struct rte_compressdev_pmd_init_params init_params = {
381 "",
382 rte_socket_id()
383 };
384 const char *name;
385 const char *input_args;
386 int retval;
387
388 name = rte_vdev_device_name(vdev);
389
390 if (name == NULL)
391 return -EINVAL;
392
393 input_args = rte_vdev_device_args(vdev);
394
395 retval = rte_compressdev_pmd_parse_input_args(&init_params, input_args);
396 if (retval < 0) {
397 ZLIB_PMD_LOG(ERR,
398 "Failed to parse initialisation arguments[%s]",
399 input_args);
400 return -EINVAL;
401 }
402
403 return zlib_create(name, vdev, &init_params);
404}
405
406static int
407zlib_remove(struct rte_vdev_device *vdev)

Callers

nothing calls this directly

Calls 5

rte_socket_idFunction · 0.85
rte_vdev_device_nameFunction · 0.85
rte_vdev_device_argsFunction · 0.85
zlib_createFunction · 0.85

Tested by

no test coverage detected