net/vmxnet3: use driver name from ethdev
authorJan Blunck <jblunck@infradead.org>
Fri, 23 Dec 2016 15:58:08 +0000 (16:58 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 25 Dec 2016 22:23:37 +0000 (23:23 +0100)
Signed-off-by: Jan Blunck <jblunck@infradead.org>
drivers/net/vmxnet3/vmxnet3_ethdev.c

index 93c9ac9..9c8b65f 100644 (file)
@@ -138,7 +138,7 @@ gpa_zone_reserve(struct rte_eth_dev *dev, uint32_t size,
        const struct rte_memzone *mz;
 
        snprintf(z_name, sizeof(z_name), "%s_%d_%s",
-                dev->driver->pci_drv.driver.name, dev->data->port_id, post_string);
+                dev->data->drv_name, dev->data->port_id, post_string);
 
        mz = rte_memzone_lookup(z_name);
        if (!reuse) {