static const struct rte_rawdev_ops idxd_pci_ops = {
.dev_close = idxd_rawdev_close,
- .dev_selftest = idxd_rawdev_test,
+ .dev_selftest = ioat_rawdev_test,
.dump = idxd_dev_dump,
.dev_configure = idxd_dev_configure,
.dev_start = idxd_pci_dev_start,
static const struct rte_rawdev_ops idxd_vdev_ops = {
.dev_close = idxd_rawdev_close,
- .dev_selftest = idxd_rawdev_test,
+ .dev_selftest = ioat_rawdev_test,
.dump = idxd_dev_dump,
.dev_configure = idxd_dev_configure,
.dev_info_get = idxd_dev_info_get,
int ioat_xstats_reset(struct rte_rawdev *dev, const uint32_t *ids,
uint32_t nb_ids);
+extern int ioat_rawdev_test(uint16_t dev_id);
+
extern int idxd_rawdev_create(const char *name, struct rte_device *dev,
const struct idxd_rawdev *idxd,
const struct rte_rawdev_ops *ops);
extern int idxd_dev_info_get(struct rte_rawdev *dev, rte_rawdev_obj_t dev_info,
size_t info_size);
-extern int idxd_rawdev_test(uint16_t dev_id);
-
extern int idxd_dev_dump(struct rte_rawdev *dev, FILE *f);
#endif /* _IOAT_PRIVATE_H_ */
return 0;
}
-extern int ioat_rawdev_test(uint16_t dev_id);
-
static int
ioat_rawdev_create(const char *name, struct rte_pci_device *dev)
{
free(ids);
return -1;
}
-
-int
-idxd_rawdev_test(uint16_t dev_id)
-{
- rte_rawdev_dump(dev_id, stdout);
- return ioat_rawdev_test(dev_id);
-}