summaryrefslogtreecommitdiff
path: root/drivers/net/ring
diff options
context:
space:
mode:
authorFerruh Yigit <ferruh.yigit@intel.com>2017-06-12 16:25:12 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2017-06-12 16:27:44 +0100
commit740feaf349b10ca166aaaa77aa903368e1897f16 (patch)
tree9db571bb33032abf6984966882bceba1c7aabc75 /drivers/net/ring
parent96cb195211479d0f96dbaac2284124fe535e4714 (diff)
downloaddpdk-next-eventdev-740feaf349b10ca166aaaa77aa903368e1897f16.zip
dpdk-next-eventdev-740feaf349b10ca166aaaa77aa903368e1897f16.tar.gz
dpdk-next-eventdev-740feaf349b10ca166aaaa77aa903368e1897f16.tar.xz
ethdev: remove driver name from device private data
rte_driver->name has the driver name and all physical and virtual devices has access to it. Previously it was not possible for virtual ethernet devices to access rte_driver->name field (because eth_dev used to keep only pci_dev), and it was required to save driver name in the device private struct. After re-works on bus and vdev, it is possible for all bus types to access rte_driver. It is able to remove the driver name from ethdev device private data and use eth_dev->device->driver->name. Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com> Acked-by: Jan Blunck <jblunck@infradead.org>
Diffstat (limited to 'drivers/net/ring')
-rw-r--r--drivers/net/ring/rte_eth_ring.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c
index 73ec2e4..e3843d4 100644
--- a/drivers/net/ring/rte_eth_ring.c
+++ b/drivers/net/ring/rte_eth_ring.c
@@ -354,7 +354,6 @@ do_eth_dev_ring_create(const char *name,
eth_dev->dev_ops = &ops;
data->dev_flags = RTE_ETH_DEV_DETACHABLE;
data->kdrv = RTE_KDRV_NONE;
- data->drv_name = pmd_ring_drv.driver.name;
data->numa_node = numa_node;
/* finally assign rx and tx ops */