examples/power: fix unreachable VF MAC init
authorDavid Hunt <david.hunt@intel.com>
Wed, 10 Apr 2019 13:13:48 +0000 (14:13 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 22 Apr 2019 22:15:10 +0000 (00:15 +0200)
A for loop to MAX_VFS had a break as the last line, so the w++
would never get called, breaking out of the loop after the
first iteration. Remove the break so that the loop can execute
properly.

Coverity issue: 337682
Fixes: ace158c4a821 ("examples/vm_power: add check for port count")
Cc: stable@dpdk.org
Signed-off-by: David Hunt <david.hunt@intel.com>
Acked-by: Rami Rosen <ramirose@gmail.com>
examples/vm_power_manager/main.c

index dd79a82..1a846af 100644 (file)
@@ -391,7 +391,6 @@ main(int argc, char **argv)
                                        break;
                                }
                                printf("\n");
-                               break;
                        }
                }
        }