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

Function compdev_isal_create

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

Create ISA-L compression device */

Source from the content-addressed store, hash-verified

678
679/* Create ISA-L compression device */
680static int
681compdev_isal_create(const char *name, struct rte_vdev_device *vdev,
682 struct rte_compressdev_pmd_init_params *init_params)
683{
684 struct rte_compressdev *dev;
685
686 dev = rte_compressdev_pmd_create(name, &vdev->device,
687 sizeof(struct isal_comp_private), init_params);
688 if (dev == NULL) {
689 ISAL_PMD_LOG(ERR, "failed to create compressdev vdev");
690 return -EFAULT;
691 }
692
693 dev->dev_ops = isal_compress_pmd_ops;
694
695 /* register rx/tx burst functions for data path */
696 dev->dequeue_burst = isal_comp_pmd_dequeue_burst;
697 dev->enqueue_burst = isal_comp_pmd_enqueue_burst;
698
699 ISAL_PMD_LOG(INFO, "ISA-L library version used: "ISAL_VERSION_STRING);
700
701 return 0;
702}
703
704/** Remove compression device */
705static int

Callers 1

compdev_isal_probeFunction · 0.85

Calls 1

Tested by

no test coverage detected