cryptodev: move user callback initialization
Signed-off-by: Jan Blunck <jblunck@infradead.org> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
parent
fc116fa14f
commit
a51bb9d8b4
@ -583,6 +583,9 @@ rte_cryptodev_pmd_allocate(const char *name, int socket_id)
|
||||
cryptodev->data->socket_id = socket_id;
|
||||
cryptodev->data->dev_started = 0;
|
||||
|
||||
/* init user callbacks */
|
||||
TAILQ_INIT(&(cryptodev->link_intr_cbs));
|
||||
|
||||
cryptodev->attached = RTE_CRYPTODEV_ATTACHED;
|
||||
|
||||
cryptodev_globals.nb_devs++;
|
||||
|
@ -101,9 +101,6 @@ rte_cryptodev_vdev_pmd_init(const char *name, size_t dev_private_size,
|
||||
|
||||
cryptodev->device = &vdev->device;
|
||||
|
||||
/* initialise user call-back tail queue */
|
||||
TAILQ_INIT(&(cryptodev->link_intr_cbs));
|
||||
|
||||
return cryptodev;
|
||||
}
|
||||
|
||||
@ -188,9 +185,6 @@ rte_cryptodev_pci_generic_probe(struct rte_pci_device *pci_dev,
|
||||
|
||||
cryptodev->device = &pci_dev->device;
|
||||
|
||||
/* init user callbacks */
|
||||
TAILQ_INIT(&(cryptodev->link_intr_cbs));
|
||||
|
||||
/* Invoke PMD device initialization function */
|
||||
RTE_FUNC_PTR_OR_ERR_RET(*dev_init, -EINVAL);
|
||||
retval = dev_init(cryptodev);
|
||||
|
Loading…
x
Reference in New Issue
Block a user