app/testpmd: fix build without i40e
authorWisam Jaddo <wisamm@mellanox.com>
Wed, 18 Apr 2018 15:31:03 +0000 (18:31 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 18 Apr 2018 16:04:18 +0000 (18:04 +0200)
commite62f3a8a04768352bc78389d499be50c923bf6aa
tree29119eaa7b9d87948495efd6324b1cfa731519f0
parentfb338b80e5fa91a0bf726cfa0627a177e01e9483
app/testpmd: fix build without i40e

Unused variables will appear when setting RTE_LIBRTE_I40E_PMD
to be disabled.

The fix was to move these variables to the I40E_PMD scope,
since only I40E_PMD is using it.

Fixes: a9dbe1802226 ("fix ethdev port id validation")

Signed-off-by: Wisam Jaddo <wisamm@mellanox.com>
app/test-pmd/cmdline.c