[dpdk-dev] [PATCH v2] ethdev: remove driver name from device private data
Shreyansh Jain
shreyansh.jain at nxp.com
Wed Jun 7 06:52:42 CEST 2017
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.yigit at intel.com>
> ---
> Cc: Gaetan Rivet <gaetan.rivet at 6wind.com>
> Cc: Jan Blunck <jblunck at 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.jain at nxp.com>
More information about the dev
mailing list