examples/vm_power: fix build without i40e
authorDavid Hunt <david.hunt@intel.com>
Thu, 24 Oct 2019 14:26:10 +0000 (15:26 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 27 Oct 2019 18:38:02 +0000 (19:38 +0100)
commite4d028a0fb53809a341f62a39e59f9e13e7c7f59
tree143e0ecad8b14fde571c8c3cafda57c8a4db53bc
parent0de94bcac7fc9bd4264716ab4851c1376b5a2582
examples/vm_power: fix build without i40e

channel_monitor.c was dependent on i40e driver being available.
This is only necessary for the TRAFFIC policy, so use #ifdef's
to not call these when i40e not available.

Fixes: f14791a8126e ("examples/vm_power_mgr: add policy to channels")
Cc: stable@dpdk.org
Signed-off-by: David Hunt <david.hunt@intel.com>
Tested-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
examples/vm_power_manager/channel_monitor.c