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

Function compdev_isal_probe

dpdk/drivers/compress/isal/isal_compress_pmd.c:723–747  ·  view source on GitHub ↗

Initialise ISA-L compression device */

Source from the content-addressed store, hash-verified

721
722/** Initialise ISA-L compression device */
723static int
724compdev_isal_probe(struct rte_vdev_device *dev)
725{
726 struct rte_compressdev_pmd_init_params init_params = {
727 "",
728 rte_socket_id(),
729 };
730 const char *name, *args;
731 int retval;
732
733 name = rte_vdev_device_name(dev);
734 if (name == NULL)
735 return -EINVAL;
736
737 args = rte_vdev_device_args(dev);
738
739 retval = rte_compressdev_pmd_parse_input_args(&init_params, args);
740 if (retval) {
741 ISAL_PMD_LOG(ERR,
742 "Failed to parse initialisation arguments[%s]", args);
743 return -EINVAL;
744 }
745
746 return compdev_isal_create(name, dev, &init_params);
747}
748
749static struct rte_vdev_driver compdev_isal_pmd_drv = {
750 .probe = compdev_isal_probe,

Callers

nothing calls this directly

Calls 5

rte_socket_idFunction · 0.85
rte_vdev_device_nameFunction · 0.85
rte_vdev_device_argsFunction · 0.85
compdev_isal_createFunction · 0.85

Tested by

no test coverage detected