From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by dpdk.org (Postfix) with ESMTP id ED9A37F54 for ; Fri, 7 Nov 2014 13:39:33 +0100 (CET) Received: by mail-wi0-f176.google.com with SMTP id h11so4444029wiw.9 for ; Fri, 07 Nov 2014 04:49:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=r3HezPkqW9ezk2yysJKoN2Qo5uzVAvQzzsPob/USXmc=; b=jZ1eLhTtlQ8yiO2kSRXWMzEpvyCSQgx7di05lNbZkgWbzChlR3UK4xYPd9A38J2F2r hdv7dYAUGnm/5jVH9a0cwUsM3HetAD+BfbvZm61MFQ4xoqutrR1+RscaiWLvi9m9SZ6v u6uVjJQvFT+4TmISFAiq8C/yMsMO/2tmp93TjOQqTJaGx4SNGNTMpS2pJM1S03Vh0e0F 2ZaRnIX/2WQ5SLht0PEZ+6sIFcWSlKrGZckMMsWnUC9PhPEfErLSOW9JBNDavTtlzUUf 7uOZKPOY2Di4vm4N/AD/6EInncfXp/Q/dkmAJNL3OTegGnnH0+XY7LHCMSICaR8ZvUwz HH4Q== X-Gm-Message-State: ALoCoQnTq1U8s3HUc6Gev7Lw5Ek4E+heb7zawxyfxE1MsA1T5AZgNDgH00keP/8ggpr4CO6Id1qP X-Received: by 10.194.110.161 with SMTP id ib1mr16607624wjb.78.1415364545053; Fri, 07 Nov 2014 04:49:05 -0800 (PST) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by mx.google.com with ESMTPSA id td9sm1935122wic.15.2014.11.07.04.49.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 07 Nov 2014 04:49:04 -0800 (PST) From: Thomas Monjalon To: dev@dpdk.org Date: Fri, 7 Nov 2014 13:48:32 +0100 Message-Id: <1415364512-9918-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1404374093-29710-1-git-send-email-helin.zhang@intel.com> References: <1404374093-29710-1-git-send-email-helin.zhang@intel.com> Subject: [dpdk-dev] [PATCH] app, examples: remove references to drivers config 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: Fri, 07 Nov 2014 12:39:34 -0000 These references to drivers break the layering isolation between application and drivers. Signed-off-by: Thomas Monjalon --- app/test-pmd/testpmd.c | 7 +------ examples/exception_path/main.c | 4 +--- examples/kni/main.c | 4 +--- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index f76406f..c373e3a 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -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) diff --git a/examples/exception_path/main.c b/examples/exception_path/main.c index 3f8b1fb..692383b 100644 --- a/examples/exception_path/main.c +++ b/examples/exception_path/main.c @@ -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.c b/examples/kni/main.c index 1344a87..370ae1c 100644 --- a/examples/kni/main.c +++ b/examples/kni/main.c @@ -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