drivers/net: use device name from device structure
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 9 Jun 2017 18:36:05 +0000 (19:36 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 5 Jul 2017 22:17:02 +0000 (00:17 +0200)
commit4be4659a934b35bf963d3b3822bef5fed6203365
tree40ee0a0591ad5e77a643074fed45783819280bb5
parent48d8675c9cff887f96e960183e7b408829870b46
drivers/net: use device name from device structure

Device name resides in two different locations, in rte_device->name and
in ethernet device private data.

For now, the copy in the ethernet device private data is required for
multi process support, the name is the how secondary process finds about
primary process device.

But for drivers there is no reason to use the copy in the ethernet
device private data.

This patch updates PMDs to use only rte_device->name.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/af_packet/rte_eth_af_packet.c
drivers/net/bnxt/bnxt_irq.c
drivers/net/bonding/rte_eth_bond_alb.c
drivers/net/bonding/rte_eth_bond_args.c
drivers/net/bonding/rte_eth_bond_pmd.c
drivers/net/i40e/i40e_ethdev.c
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/kni/rte_eth_kni.c
drivers/net/ring/rte_eth_ring.c
drivers/net/tap/rte_eth_tap.c