i40e: warnings should include i40e in some example applications
PATCH 1/1 i40e: warnings should include i40e in some example applications
As i40e introduced recently in DPDK, the warnings should include i40e when no supported NIC port found during initialization at least in below example applications.
* app/testpmd
* exception_path
* kni
--- app/test-pmd/testpmd.c | 3 ++- examples/exception_path/main.c | 5 +++-- examples/kni/main.c | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-)
app/test-pmd/testpmd.c +2 -1
@@ -1859,7 +1859,8 @@ main(int argc, char** argv)"check that " "CONFIG_RTE_LIBRTE_IGB_PMD=y and that " "CONFIG_RTE_LIBRTE_EM_PMD=y and that " -"CONFIG_RTE_LIBRTE_IXGBE_PMD=y in your " +"CONFIG_RTE_LIBRTE_IXGBE_PMD=y and that " +"CONFIG_RTE_LIBRTE_I40E_PMD=y in your " "configuration file\n");set_def_fwd_config ();
examples/exception_path/main.c +3 -2
@@ -575,8 +575,9 @@ main(int argc, char** argv) nb_sys_ports =rte_eth_dev_count ();if (nb_sys_ports ==0 )FATAL_ERROR ("No supported Ethernet devices found - check that " -"CONFIG_RTE_LIBRTE_IGB_PMD=y and/or " -"CONFIG_RTE_LIBRTE_IXGBE_PMD=y in the config file" ); +"CONFIG_RTE_LIBRTE_IGB_PMD=y, " +"CONFIG_RTE_LIBRTE_IXGBE_PMD=y and/or " +"CONFIG_RTE_LIBRTE_I40E_PMD=y in the config file" );/* Find highest port set in portmask */ for (high_port = (sizeof(ports_mask) * 8) - 1; (high_port != 0) && !(ports_mask & (1 << high_port));
examples/kni/main.c +3 -2
@@ -898,8 +898,9 @@ main(int argc, char** argv) nb_sys_ports =rte_eth_dev_count ();if (nb_sys_ports ==0 )rte_exit (EXIT_FAILURE ,"No supported Ethernet devices found - " -"check that CONFIG_RTE_LIBRTE_IGB_PMD=y and/or " -"CONFIG_RTE_LIBRTE_IXGBE_PMD=y in the config file\n" ); +"check that CONFIG_RTE_LIBRTE_IGB_PMD=y, " +"CONFIG_RTE_LIBRTE_IXGBE_PMD=y and/or " +"CONFIG_RTE_LIBRTE_I40E_PMD=y in the config file\n" );/* Check if the configured port ID is valid */ for (i =0 ; i <RTE_MAX_ETHPORTS ; i++)
Signature · 1 line
1.8.1.4
A message that is not in the archive (sent off-list or not yet received): 1404374093-29710-1-git-send-email-helin.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Wu, Jingjing
Acked-byQuoted 68 lines
-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Helin Zhang
Sent: Thursday, July 3, 2014 3:55 PM
To: [email protected]
Subject: [dpdk-dev] [PATCH] i40e: warnings should include i40e in some example applicationsAs i40e introduced recently in DPDK, the warnings should include i40e when no supported NIC port found during initialization at least in below example applications.
* app/testpmd
*exception_path
* kniSigned-off-by Helin Zhang <[email protected]>--- app/test-pmd/testpmd.c | 3 ++- examples/exception_path/main.c | 5 +++-- examples/kni/main.c | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-)app/test-pmd/testpmd.c +2
-1@@ -1859,7 +1859,8 @@ main(int argc, char** argv)"check that " "CONFIG_RTE_LIBRTE_IGB_PMD=y and that " "CONFIG_RTE_LIBRTE_EM_PMD=y and that " -"CONFIG_RTE_LIBRTE_IXGBE_PMD=y in your " +"CONFIG_RTE_LIBRTE_IXGBE_PMD=y and that " +"CONFIG_RTE_LIBRTE_I40E_PMD=y in your " "configuration file\n");set_def_fwd_config ();examples/exception_path/main.c +3
-2@@ -575,8 +575,9 @@ main(int argc, char** argv) nb_sys_ports =rte_eth_dev_count ();if (nb_sys_ports ==0 )FATAL_ERROR ("No supported Ethernet devices found - check that " -"CONFIG_RTE_LIBRTE_IGB_PMD=y and/or " -"CONFIG_RTE_LIBRTE_IXGBE_PMD=y in the config file" ); +"CONFIG_RTE_LIBRTE_IGB_PMD=y, " +"CONFIG_RTE_LIBRTE_IXGBE_PMD=y and/or " +"CONFIG_RTE_LIBRTE_I40E_PMD=y in the config file" );/* Find highest port set in portmask */ for (high_port = (sizeof(ports_mask) * 8) - 1; (high_port != 0) && !(ports_mask & (1 << high_port));examples/kni/main.c +3
-3@@ -898,8 +898,9 @@ main(int argc, char** argv) nb_sys_ports =rte_eth_dev_count ();if (nb_sys_ports ==0 )rte_exit (EXIT_FAILURE ,"No supported Ethernet devices found - " -"check that CONFIG_RTE_LIBRTE_IGB_PMD=y and/or " -"CONFIG_RTE_LIBRTE_IXGBE_PMD=y in the config file\n" ); +"check that CONFIG_RTE_LIBRTE_IGB_PMD=y, " +"CONFIG_RTE_LIBRTE_IXGBE_PMD=y and/or " +"CONFIG_RTE_LIBRTE_I40E_PMD=y in the config file\n" );/* Check if the configured port ID is valid */ for (i =0 ; i <RTE_MAX_ETHPORTS ; i++) --1.8.1.4
2014-07-03 15:54, Helin Zhang:
Quoted 8 lines
As i40e introduced recently in DPDK, the warnings should include i40e when no supported NIC port found during initialization at least in below example applications.
* app/testpmd
*exception_path
* kniSigned-off-by Helin Zhang <[email protected]>
I think it's better to remove these warnings. I am going to send a patch. Please ack if you agree.
Signature · 1 line
Thomas
PATCH 1/1 app, examples: remove references to drivers config
In reply to a message not in the archiveThese references to drivers break the layering isolation between application and drivers.
--- app/test-pmd/testpmd.c | 7 +------ examples/exception_path/main.c | 4 +--- examples/kni/main.c | 4 +--- 3 files changed, 3 insertions(+), 12 deletions(-)
app/test-pmd/testpmd.c +1 -6
@@ -1870,12 +1870,7 @@ main(int argc, char** argv) nb_ports = (portid_t )rte_eth_dev_count ();if (nb_ports ==0 ) -rte_exit (EXIT_FAILURE ,"No probed ethernet devices - " -"check that " -"CONFIG_RTE_LIBRTE_IGB_PMD=y and that " -"CONFIG_RTE_LIBRTE_EM_PMD=y and that " -"CONFIG_RTE_LIBRTE_IXGBE_PMD=y in your " -"configuration file\n" ); +rte_exit (EXIT_FAILURE ,"No probed ethernet devices\n" );set_def_fwd_config ();if (nb_lcores ==0 )
examples/exception_path/main.c +1 -3
@@ -546,9 +546,7 @@ main(int argc, char** argv)/* Get number of ports found in scan */ nb_sys_ports =rte_eth_dev_count ();if (nb_sys_ports ==0 ) -FATAL_ERROR ("No supported Ethernet devices found - check that " -"CONFIG_RTE_LIBRTE_IGB_PMD=y and/or " -"CONFIG_RTE_LIBRTE_IXGBE_PMD=y in the config file" ); +FATAL_ERROR ("No supported Ethernet devices found" );/* Find highest port set in portmask */ for (high_port = (sizeof(ports_mask) * 8) - 1; (high_port != 0) && !(ports_mask & (1 << high_port));
examples/kni/main.c +1 -3
@@ -881,9 +881,7 @@ main(int argc, char** argv)/* Get number of ports found in scan */ nb_sys_ports =rte_eth_dev_count ();if (nb_sys_ports ==0 ) -rte_exit (EXIT_FAILURE ,"No supported Ethernet devices found - " -"check that CONFIG_RTE_LIBRTE_IGB_PMD=y and/or " -"CONFIG_RTE_LIBRTE_IXGBE_PMD=y in the config file\n" ); +rte_exit (EXIT_FAILURE ,"No supported Ethernet devices found\n" );/* Check if the configured port ID is valid */ for (i =0 ; i <RTE_MAX_ETHPORTS ; i++)
Signature · 1 line
2.1.3
A message that is not in the archive (sent off-list or not yet received): 1415364512-9918-1-git-send-email-thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org
Zhang, Helin
Acked-byRe: [PATCH] app, examples: remove references to drivers config
With minor changes suggested: 'devices' -> 'device'?
Quoted 66 lines
-----Original Message-----
From: Thomas Monjalon [mailto:[email protected]]
Sent: Friday, November 7, 2014 8:49 PM
To: [email protected]
Cc: Zhang, Helin
Subject: [PATCH] app,examples: remove references to drivers configThese references to drivers break the layering isolation between application and drivers.
Signed-off-by Thomas Monjalon <[email protected]>--- app/test-pmd/testpmd.c | 7 +------ examples/exception_path/main.c | 4 +--- examples/kni/main.c | 4 +--- 3 files changed, 3 insertions(+), 12 deletions(-)app/test-pmd/testpmd.c index renamed from app/test-pmd/testpmd.c +0
-0f76406f..c373e3a 100644
app/test-pmd/testpmd.c +1
-6@@ -1870,12 +1870,7 @@ main(int argc, char** argv) nb_ports = (portid_t )rte_eth_dev_count ();if (nb_ports ==0 ) -rte_exit (EXIT_FAILURE ,"No probed ethernet devices - " -"check that " -"CONFIG_RTE_LIBRTE_IGB_PMD=y and that " -"CONFIG_RTE_LIBRTE_EM_PMD=y and that " -"CONFIG_RTE_LIBRTE_IXGBE_PMD=y in your " -"configuration file\n" ); +rte_exit (EXIT_FAILURE ,"No probed ethernet devices\n" );set_def_fwd_config ();if (nb_lcores ==0 )(quoted diff) +0
-0
b/examples/exception_path/main.cindex 3f8b1fb..692383b 100644examples/exception_path/main.c +1
-3@@ -546,9 +546,7 @@ main(int argc, char** argv)/* Get number of ports found in scan */ nb_sys_ports =rte_eth_dev_count ();if (nb_sys_ports ==0 ) -FATAL_ERROR ("No supported Ethernet devices found - check that " -"CONFIG_RTE_LIBRTE_IGB_PMD=y and/or " -"CONFIG_RTE_LIBRTE_IXGBE_PMD=y in the config file" ); +FATAL_ERROR ("No supported Ethernet devices found" );/* Find highest port set in portmask */ for (high_port = (sizeof(ports_mask) * 8) - 1; (high_port != 0) && !(ports_mask & (1 << high_port)); diff --git
a/examples/kni/main.cb/examples/kni/main.cindex 1344a87..370ae1c 100644examples/kni/main.c +1
-4@@ -881,9 +881,7 @@ main(int argc, char** argv)/* Get number of ports found in scan */ nb_sys_ports =rte_eth_dev_count ();if (nb_sys_ports ==0 ) -rte_exit (EXIT_FAILURE ,"No supported Ethernet devices found - " -"check that CONFIG_RTE_LIBRTE_IGB_PMD=y and/or " -"CONFIG_RTE_LIBRTE_IXGBE_PMD=y in the config file\n" ); +rte_exit (EXIT_FAILURE ,"No supported Ethernet devices found\n" );/* Check if the configured port ID is valid */ for (i =0 ; i <RTE_MAX_ETHPORTS ; i++) --2.1.3
A message that is not in the archive (sent off-list or not yet received): F35DEAC7BCE34641BA9FAC6BCA4A12E70A7B065C-0J0gbvR4kTg/[email protected]
Re: [PATCH] app, examples: remove references to drivers config
Quoted 7 lines
Quoted 4 lines
These references to drivers break the layering isolation between application and drivers.
Signed-off-by Thomas Monjalon <[email protected]>Acked-by Helin Zhang <[email protected]>With minor changes suggested: 'devices' -> 'device'?
Applied with suggested changes.
Thanks
Signature · 1 line
Thomas