examples/l3fwd-power: allow only supported environments
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 19 Jun 2020 10:53:50 +0000 (11:53 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 11 Jul 2020 11:28:02 +0000 (13:28 +0200)
commit9b133b42ab687224ee1a8342cf729c8d477a6170
tree661b7d5e93cb44965a05df41a25e766c73d8eba0
parentf06493ad733cc20f6b6109453b1443a9a0ffb4c1
examples/l3fwd-power: allow only supported environments

Currently, l3fwd-power will attempt to run even if the power env
is set to KVM, which is not supported. Fix this by preventing the
app from initializing unless the env is set to one of the supported
modes.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Tested-by: Yinan Wang <yinan.wang@intel.com>
examples/l3fwd-power/main.c