Initialise ISA-L compression device */
| 721 | |
| 722 | /** Initialise ISA-L compression device */ |
| 723 | static int |
| 724 | compdev_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 | |
| 749 | static struct rte_vdev_driver compdev_isal_pmd_drv = { |
| 750 | .probe = compdev_isal_probe, |
nothing calls this directly
no test coverage detected