From 7835953870fbde60517ee0342cef6222901505b6 Mon Sep 17 00:00:00 2001 From: Pascal Mazon Date: Thu, 2 Feb 2017 17:18:02 +0100 Subject: [PATCH] net/tap: display name after parsing The probe parses for user-defined iface name. Let's use that value. Signed-off-by: Pascal Mazon Acked-by: Keith Wiles --- 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 b39730832d..6a98f4653d 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -691,9 +691,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); @@ -720,6 +717,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.20.1