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

Function zlib_create

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

Source from the content-addressed store, hash-verified

352}
353
354static int
355zlib_create(const char *name,
356 struct rte_vdev_device *vdev,
357 struct rte_compressdev_pmd_init_params *init_params)
358{
359 struct rte_compressdev *dev;
360
361 dev = rte_compressdev_pmd_create(name, &vdev->device,
362 sizeof(struct zlib_private), init_params);
363 if (dev == NULL) {
364 ZLIB_PMD_ERR("driver %s: create failed", init_params->name);
365 return -ENODEV;
366 }
367
368 dev->dev_ops = rte_zlib_pmd_ops;
369
370 /* register rx/tx burst functions for data path */
371 dev->dequeue_burst = zlib_pmd_dequeue_burst;
372 dev->enqueue_burst = zlib_pmd_enqueue_burst;
373
374 return 0;
375}
376
377static int
378zlib_probe(struct rte_vdev_device *vdev)

Callers 1

zlib_probeFunction · 0.85

Calls 1

Tested by

no test coverage detected