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)
commit958d14d38659d96859718657743a963bd6e9f1f4
tree496c98a7054abd0f2cae2095c5e9f9a8d9d5d5c4
parentda4ac8e5991a05d06a1e009a83c232dd824eac77
examples/power: fix unreachable VF MAC init

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