[dpdk-dev,RFC,06/18] e1000: remove type field and initialise name field in rte_driver structures
diff mbox

Message ID 1441364514-24905-7-git-send-email-bernard.iremonger@intel.com
State Rejected, archived
Headers show

Commit Message

Bernard Iremonger Sept. 4, 2015, 11:01 a.m. UTC
Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>
---
 drivers/net/e1000/em_ethdev.c  | 2 +-
 drivers/net/e1000/igb_ethdev.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

Patch
diff mbox

diff --git a/drivers/net/e1000/em_ethdev.c b/drivers/net/e1000/em_ethdev.c
index 912f5dd..70c5a78 100644
--- a/drivers/net/e1000/em_ethdev.c
+++ b/drivers/net/e1000/em_ethdev.c
@@ -1586,7 +1586,7 @@  eth_em_set_mc_addr_list(struct rte_eth_dev *dev,
 }
 
 struct rte_driver em_pmd_drv = {
-	.type = PMD_PDEV,
+	.name = "em_pmd_drv",	/* PCI device */
 	.init = rte_em_pmd_init,
 };
 
diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c
index c7e6d55..f2c675a 100644
--- a/drivers/net/e1000/igb_ethdev.c
+++ b/drivers/net/e1000/igb_ethdev.c
@@ -4135,12 +4135,12 @@  eth_igb_set_eeprom(struct rte_eth_dev *dev,
 }
 
 static struct rte_driver pmd_igb_drv = {
-	.type = PMD_PDEV,
+	.name = "pmd_igb_drv",		/* PCI device */
 	.init = rte_igb_pmd_init,
 };
 
 static struct rte_driver pmd_igbvf_drv = {
-	.type = PMD_PDEV,
+	.name = "pmd_igbvf_drv",	/* PCI device */
 	.init = rte_igbvf_pmd_init,
 };