From: Pascal Mazon Date: Thu, 2 Feb 2017 16:18:02 +0000 (+0100) Subject: net/tap: display name after parsing X-Git-Tag: spdx-start~4551 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7835953870fbde60517ee0342cef6222901505b6;p=dpdk.git 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 --- 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: