net/tap: display name after parsing
authorPascal Mazon <pascal.mazon@6wind.com>
Thu, 2 Feb 2017 16:18:02 +0000 (17:18 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 10 Feb 2017 11:25:49 +0000 (12:25 +0100)
The probe parses for user-defined iface name. Let's use that value.

Signed-off-by: Pascal Mazon <pascal.mazon@6wind.com>
Acked-by: Keith Wiles <keith.wiles@intel.com>
drivers/net/tap/rte_eth_tap.c

index b397308..6a98f46 100644 (file)
@@ -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: