From 7b39a4b1bacc1d69152db0198bf3a5e10deb9e7b Mon Sep 17 00:00:00 2001 From: Radu Nicolau Date: Tue, 19 Jan 2021 15:38:41 +0000 Subject: [PATCH] raw/ioat: fix driver name in secondary process Update ioat probe function to set the driver name for secondary process. Fixes: bc230b569e7f ("raw/ioat: support secondary process") Signed-off-by: Radu Nicolau --- drivers/raw/ioat/ioat_rawdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/raw/ioat/ioat_rawdev.c b/drivers/raw/ioat/ioat_rawdev.c index 77216f67f5..a95854d5ac 100644 --- a/drivers/raw/ioat/ioat_rawdev.c +++ b/drivers/raw/ioat/ioat_rawdev.c @@ -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), -- 2.20.1