raw/ioat: fix driver name in secondary process
authorRadu Nicolau <radu.nicolau@intel.com>
Tue, 19 Jan 2021 15:38:41 +0000 (15:38 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 27 Jan 2021 12:42:40 +0000 (13:42 +0100)
Update ioat probe function to set the driver name for
secondary process.

Fixes: bc230b569e7f ("raw/ioat: support secondary process")

Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
drivers/raw/ioat/ioat_rawdev.c

index 77216f6..a95854d 100644 (file)
@@ -179,6 +179,7 @@ ioat_rawdev_create(const char *name, struct rte_pci_device *dev)
                rawdev->dev_private = mz->addr;
                rawdev->dev_ops = &ioat_rawdev_ops;
                rawdev->device = &dev->device;
+               rawdev->driver_name = dev->device.driver->name;
                return 0;
        }
        mz = rte_memzone_reserve(mz_name, sizeof(struct rte_ioat_rawdev),