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

Function rte_compressdev_info_get

dpdk/lib/compressdev/rte_compressdev.c:645–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643
644
645void
646rte_compressdev_info_get(uint8_t dev_id, struct rte_compressdev_info *dev_info)
647{
648 struct rte_compressdev *dev;
649
650 if (dev_id >= compressdev_globals.nb_devs) {
651 COMPRESSDEV_LOG(ERR, "Invalid dev_id=%d", dev_id);
652 return;
653 }
654
655 dev = &rte_comp_devices[dev_id];
656
657 memset(dev_info, 0, sizeof(struct rte_compressdev_info));
658
659 if (*dev->dev_ops->dev_infos_get == NULL)
660 return;
661 (*dev->dev_ops->dev_infos_get)(dev, dev_info);
662
663 dev_info->driver_name = dev->device->driver->name;
664}
665
666int
667rte_compressdev_private_xform_create(uint8_t dev_id,

Calls 1

memsetFunction · 0.85

Tested by 1