From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id A23C92BAE for ; Tue, 31 Jan 2017 10:44:59 +0100 (CET) Received: from 6wind.com (unknown [10.16.0.184]) by proxy.6wind.com (Postfix) with SMTP id 5F99D265AF; Tue, 31 Jan 2017 10:44:54 +0100 (CET) Received: by 6wind.com (sSMTP sendmail emulation); Tue, 31 Jan 2017 10:43:17 +0100 From: Pascal Mazon To: keith.wiles@intel.com Cc: dev@dpdk.org, Pascal Mazon Date: Tue, 31 Jan 2017 10:42:57 +0100 Message-Id: <1485855778-15496-5-git-send-email-pascal.mazon@6wind.com> X-Mailer: git-send-email 2.8.0.rc0 In-Reply-To: <1485855778-15496-1-git-send-email-pascal.mazon@6wind.com> References: <1485855778-15496-1-git-send-email-pascal.mazon@6wind.com> Subject: [dpdk-dev] [PATCH 5/6] net/tap: display tap name after parsing X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 09:44:59 -0000 The probe parses for user-defined iface name. Let's use that value. Signed-off-by: Pascal Mazon --- drivers/net/tap/rte_eth_tap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index f8b07b4a8fa1..734e3a579219 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -690,9 +690,6 @@ rte_pmd_tap_probe(const char *name, const char *params) snprintf(tap_name, sizeof(tap_name), "%s%d", DEFAULT_TAP_NAME, tap_unit++); - RTE_LOG(INFO, PMD, "Initializing pmd_tap for %s as %s\n", - name, tap_name); - if (params && (params[0] != '\0')) { RTE_LOG(INFO, PMD, "paramaters (%s)\n", params); @@ -719,6 +716,9 @@ rte_pmd_tap_probe(const char *name, const char *params) } pmd_link.link_speed = speed; + RTE_LOG(INFO, PMD, "Initializing pmd_tap for %s as %s\n", + name, tap_name); + ret = eth_dev_tap_create(name, tap_name); leave: -- 2.8.0.rc0