summaryrefslogtreecommitdiff
path: root/drivers/net/ring
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@6wind.com>2016-11-21 19:06:13 +0100
committerFerruh Yigit <ferruh.yigit@intel.com>2017-01-17 19:24:51 +0100
commitd857736110e507eb3864698bbe271908e2875b95 (patch)
tree9a5b259622c73036cb7d79ef626d8fae66e0a681 /drivers/net/ring
parentb5750af6cb183b800f5362276fae3094031f10d2 (diff)
downloaddpdk-next-eventdev-d857736110e507eb3864698bbe271908e2875b95.zip
dpdk-next-eventdev-d857736110e507eb3864698bbe271908e2875b95.tar.gz
dpdk-next-eventdev-d857736110e507eb3864698bbe271908e2875b95.tar.xz
net: remove dead driver names
Since commit b1fb53a39d88 ("ethdev: remove some PCI specific handling"), rte_eth_dev_info_get() relies on dev->data->drv_name to report the driver name to caller. Having the pmds set driver_info->driver_name in the pmds is useless, since ethdev overwrites it right after. The only thing the pmd must do is: - for pci drivers, call rte_eth_copy_pci_info() which then sets data->drv_name - for vdev drivers, manually set data->drv_name At this stage, virtio-user does not properly report a driver name (fixed in next commit). Signed-off-by: David Marchand <david.marchand@6wind.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com> Reviewed-by: Jan Blunck <jblunck@infradead.org>
Diffstat (limited to 'drivers/net/ring')
-rw-r--r--drivers/net/ring/rte_eth_ring.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ring/rte_eth_ring.c b/drivers/net/ring/rte_eth_ring.c
index 975956a..efc2b75 100644
--- a/drivers/net/ring/rte_eth_ring.c
+++ b/drivers/net/ring/rte_eth_ring.c
@@ -75,7 +75,6 @@ struct pmd_internals {
};
-static const char *drivername = "Rings PMD";
static struct rte_eth_link pmd_link = {
.link_speed = ETH_SPEED_NUM_10G,
.link_duplex = ETH_LINK_FULL_DUPLEX,
@@ -173,7 +172,6 @@ eth_dev_info(struct rte_eth_dev *dev,
struct rte_eth_dev_info *dev_info)
{
struct pmd_internals *internals = dev->data->dev_private;
- dev_info->driver_name = drivername;
dev_info->max_mac_addrs = 1;
dev_info->max_rx_pktlen = (uint32_t)-1;
dev_info->max_rx_queues = (uint16_t)internals->max_rx_queues;
@@ -342,7 +340,7 @@ 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 = drivername;
+ data->drv_name = "Rings PMD";
data->numa_node = numa_node;
/* finally assign rx and tx ops */