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

Message ID 1441364514-24905-10-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/i40e/i40e_ethdev.c    | 2 +-
 drivers/net/i40e/i40e_ethdev_vf.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox

diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c
index 40b0526..2d0551c 100644
--- a/drivers/net/i40e/i40e_ethdev.c
+++ b/drivers/net/i40e/i40e_ethdev.c
@@ -347,7 +347,7 @@  rte_i40e_pmd_init(const char *name __rte_unused,
 }
 
 static struct rte_driver rte_i40e_driver = {
-	.type = PMD_PDEV,
+	.name = "rte_i40e_driver",	/* PCI device */
 	.init = rte_i40e_pmd_init,
 };
 
diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c
index b694400..fe44966 100644
--- a/drivers/net/i40e/i40e_ethdev_vf.c
+++ b/drivers/net/i40e/i40e_ethdev_vf.c
@@ -1268,7 +1268,7 @@  rte_i40evf_pmd_init(const char *name __rte_unused,
 }
 
 static struct rte_driver rte_i40evf_driver = {
-	.type = PMD_PDEV,
+	.name = "rte_i40evf_driver",	/* PCI device */
 	.init = rte_i40evf_pmd_init,
 };