On Tuesday 06 June 2017 08:40 PM, Ferruh Yigit wrote:
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.yi...@intel.com>
---
Cc: Gaetan Rivet <gaetan.ri...@6wind.com>
Cc: Jan Blunck <jblu...@infradead.org>
v2:
* rebase on latest next-net
---
drivers/net/bnxt/bnxt_ethdev.c | 2 +-
drivers/net/bonding/rte_eth_bond_api.c | 4 ++--
drivers/net/cxgbe/sge.c | 6 +++---
drivers/net/dpaa2/dpaa2_ethdev.c | 1 -
drivers/net/i40e/i40e_ethdev.c | 3 +--
drivers/net/i40e/i40e_fdir.c | 2 +-
drivers/net/ixgbe/ixgbe_ethdev.c | 2 +-
drivers/net/ring/rte_eth_ring.c | 1 -
drivers/net/tap/rte_eth_tap.c | 1 -
drivers/net/vmxnet3/vmxnet3_ethdev.c | 2 +-
drivers/net/xenvirt/rte_eth_xenvirt.c | 1 -
lib/librte_ether/rte_ethdev.c | 8 ++++----
lib/librte_ether/rte_ethdev.h | 1 -
lib/librte_ether/rte_ethdev_pci.h | 1 -
lib/librte_ether/rte_ethdev_vdev.h | 1 -
15 files changed, 14 insertions(+), 22 deletions(-)
Apologies for delay in responding. I am OK with respect to the dpaa2
change. Otherwise as well:
Acked-by: Shreyansh Jain <shreyansh.j...@nxp.com>