From patchwork Thu Jul 3 07:54:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Helin" X-Patchwork-Id: 23 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 9634330E for ; Thu, 3 Jul 2014 09:54:41 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 03 Jul 2014 00:55:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,593,1400050800"; d="scan'208";a="538165415" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga001.jf.intel.com with ESMTP; 03 Jul 2014 00:54:58 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id s637supw001392; Thu, 3 Jul 2014 15:54:56 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id s637sswm029823; Thu, 3 Jul 2014 15:54:56 +0800 Received: (from hzhan75@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s637ssO2029819; Thu, 3 Jul 2014 15:54:54 +0800 From: Helin Zhang To: dev@dpdk.org Date: Thu, 3 Jul 2014 15:54:53 +0800 Message-Id: <1404374093-29710-1-git-send-email-helin.zhang@intel.com> X-Mailer: git-send-email 1.7.0.7 Subject: [dpdk-dev] [PATCH] i40e: warnings should include i40e in some example applications X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jul 2014 07:54:42 -0000 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 Signed-off-by: Helin Zhang Acked-by: Jingjing Wu --- app/test-pmd/testpmd.c | 3 ++- examples/exception_path/main.c | 5 +++-- examples/kni/main.c | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index e8a4b45..0c0ac77 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -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(); diff --git a/examples/exception_path/main.c b/examples/exception_path/main.c index 0204116..c4245a3 100644 --- a/examples/exception_path/main.c +++ b/examples/exception_path/main.c @@ -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)); diff --git a/examples/kni/main.c b/examples/kni/main.c index 7df1b36..f3666e2 100644 --- a/examples/kni/main.c +++ b/examples/kni/main.c @@ -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++)