]> git.droids-corp.org - dpdk.git/blobdiff - examples/tep_termination/main.c
mbuf: extend meaning of QinQ stripped bit
[dpdk.git] / examples / tep_termination / main.c
index ab956ad7ce963d5da8eacf2ce294be2ec01c27ad..232ed59b6ec6b983eaa95752b89f9c7267d08025 100644 (file)
@@ -203,10 +203,7 @@ parse_portmask(const char *portmask)
        /* parse hexadecimal string */
        pm = strtoul(portmask, &end, 16);
        if ((portmask[0] == '\0') || (end == NULL) || (*end != '\0'))
-               return -1;
-
-       if (pm == 0)
-               return -1;
+               return 0;
 
        return pm;
 }
@@ -1110,6 +1107,8 @@ print_stats(__rte_unused void *arg)
                        dev_ll = dev_ll->next;
                }
                printf("\n================================================\n");
+
+               fflush(stdout);
        }
 
        return NULL;