[dpdk-dev,RFC,03/18] bnx2x: remove type field and initialise name field in rte_driver structure

Message ID 1441364514-24905-4-git-send-email-bernard.iremonger@intel.com (mailing list archive)
State Rejected, archived
Headers

Commit Message

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

Comments

Harish Patil Sept. 4, 2015, 11:26 a.m. UTC | #1
>

>Signed-off-by: Bernard Iremonger <bernard.iremonger@intel.com>

>---

> drivers/net/bnx2x/bnx2x_ethdev.c | 5 +++--

> 1 file changed, 3 insertions(+), 2 deletions(-)

>

>diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c

>b/drivers/net/bnx2x/bnx2x_ethdev.c

>index 09b5920..b25ca21 100644

>--- a/drivers/net/bnx2x/bnx2x_ethdev.c

>+++ b/drivers/net/bnx2x/bnx2x_ethdev.c

>@@ -1,5 +1,6 @@

> /*

>  * Copyright (c) 2013-2015 Brocade Communications Systems, Inc.

>+ * Copyright(c) 2015 Intel Corporation.

>  *

>  * All rights reserved.

>  */

>@@ -529,12 +530,12 @@ static int rte_bnx2xvf_pmd_init(const char *name

>__rte_unused, const char *param

> }

>

> static struct rte_driver rte_bnx2x_driver = {

>-      .type = PMD_PDEV,

>+      .name = "rte_bnx2x_driver",             /* PCI device */

>       .init = rte_bnx2x_pmd_init,

> };

>

> static struct rte_driver rte_bnx2xvf_driver = {

>-      .type = PMD_PDEV,

>+      .name = "rte_bnx2xvf_driver",   /* PCI device */

>       .init = rte_bnx2xvf_pmd_init,

> };

>

>--

>1.9.1

>

>


Acked-by: Harish Patil <harish.patil@qlogic.com>



Thanks,
Harish


________________________________

This message and any attached documents contain information from the sending company or its parent company(s), subsidiaries, divisions or branch offices that may be confidential. If you are not the intended recipient, you may not read, copy, distribute, or use this information. If you have received this transmission in error, please notify the sender immediately by reply e-mail and then delete this message.
  

Patch

diff --git a/drivers/net/bnx2x/bnx2x_ethdev.c b/drivers/net/bnx2x/bnx2x_ethdev.c
index 09b5920..b25ca21 100644
--- a/drivers/net/bnx2x/bnx2x_ethdev.c
+++ b/drivers/net/bnx2x/bnx2x_ethdev.c
@@ -1,5 +1,6 @@ 
 /*
  * Copyright (c) 2013-2015 Brocade Communications Systems, Inc.
+ * Copyright(c) 2015 Intel Corporation.
  *
  * All rights reserved.
  */
@@ -529,12 +530,12 @@  static int rte_bnx2xvf_pmd_init(const char *name __rte_unused, const char *param
 }
 
 static struct rte_driver rte_bnx2x_driver = {
-	.type = PMD_PDEV,
+	.name = "rte_bnx2x_driver",		/* PCI device */
 	.init = rte_bnx2x_pmd_init,
 };
 
 static struct rte_driver rte_bnx2xvf_driver = {
-	.type = PMD_PDEV,
+	.name = "rte_bnx2xvf_driver",	/* PCI device */
 	.init = rte_bnx2xvf_pmd_init,
 };