app/testpmd: fix build with bypass without ixgbe
authorThomas Monjalon <thomas@monjalon.net>
Thu, 15 Jun 2017 09:25:06 +0000 (11:25 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 16 Jun 2017 14:07:03 +0000 (16:07 +0200)
commit50c4440ee89bf1fe1303baa86f5b8f9e99b35361
treeeb42cea48df1956f30d34571e2950711821fbaee
parent8bd3bb40c9ae2e3b5bd78ec11067afc086180b31
app/testpmd: fix build with bypass without ixgbe

When ixgbe bypass is not explicitly disabled while ixgbe is disabled:
app/test-pmd/testpmd.c:304:27: error:
‘RTE_PMD_IXGBE_BYPASS_TMT_OFF’ undeclared here

The ixgbe bypass feature is meaningful only if ixgbe is enabled.
So we need to check both.

A best fix will be to enable bypass always and remove this option.

Fixes: e261265e42a1 ("ethdev: move bypass functions to ixgbe PMD")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
app/test-pmd/cmdline.c
app/test-pmd/testpmd.c