examples/power: fix build with some disabled PMDs
authorDavid Christensen <drc@linux.vnet.ibm.com>
Tue, 2 Apr 2019 18:46:12 +0000 (14:46 -0400)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 22 Apr 2019 22:15:10 +0000 (00:15 +0200)
commit70b2c7f12c2fbc32ca0f7784c69e52717483ea1b
treea75163522050a2d31d58f0fb65b7c3871e97ce7d
parent7e7b7a1f427013374f38e1b101969a1dbce5c9c1
examples/power: fix build with some disabled PMDs

Running the devtools/test-build.sh script on IBM Power systems fails
because the IXGBE_PMD is explicity disabled for Power as an untested
driver, but the examples/vm_power_manager application has a hard
dependency on a function call in the IXGBE_PMD.

Modify the example application so that all dependencies on PMD code
are conditionally compiled.

Bugzilla ID: 237
Fixes: c9a4779135c9 ("examples/vm_power_mgr: set MAC address of VF")

Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
Acked-by: David Hunt <david.hunt@intel.com>
examples/vm_power_manager/main.c