ethdev: remove driver name from device private data
authorFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 15:25:12 +0000 (16:25 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 12 Jun 2017 15:27:44 +0000 (16:27 +0100)
commit740feaf349b10ca166aaaa77aa903368e1897f16
tree9db571bb33032abf6984966882bceba1c7aabc75
parent96cb195211479d0f96dbaac2284124fe535e4714
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>
15 files changed:
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bonding/rte_eth_bond_api.c
drivers/net/cxgbe/sge.c
drivers/net/dpaa2/dpaa2_ethdev.c
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_fdir.c
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/ring/rte_eth_ring.c
drivers/net/tap/rte_eth_tap.c
drivers/net/vmxnet3/vmxnet3_ethdev.c
drivers/net/xenvirt/rte_eth_xenvirt.c
lib/librte_ether/rte_ethdev.c
lib/librte_ether/rte_ethdev.h
lib/librte_ether/rte_ethdev_pci.h
lib/librte_ether/rte_ethdev_vdev.h