[dpdk-dev] [vmxnet3 PATCH] pmd: show banner before initializing

Thomas Monjalon thomas.monjalon at 6wind.com
Thu Jul 25 22:39:26 CEST 2013


Print title before running driver initialization.

Signed-off-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
---
 pmd/vmxnet3.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pmd/vmxnet3.c b/pmd/vmxnet3.c
index 3b2016a..8dc1650 100644
--- a/pmd/vmxnet3.c
+++ b/pmd/vmxnet3.c
@@ -1591,7 +1591,7 @@ static struct eth_driver rte_vmxnet3_pmd = {
 void __attribute__((constructor))
 vmxnet3_pmd_init(void)
 {
-	rte_eth_driver_register(&rte_vmxnet3_pmd);
 	printf("librte_pmd_vmxnet3 version " VMXNET3_PMD_VERSION "\n"
 	       "\tCopyright 2012-2013 6WIND S.A. provided without warranty.\n");
+	rte_eth_driver_register(&rte_vmxnet3_pmd);
 }
-- 
1.7.10.4



More information about the dev mailing list