app/testpmd: fix build without i40e
authorViacheslav Ovsiienko <viacheslavo@nvidia.com>
Tue, 24 Nov 2020 11:49:56 +0000 (11:49 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Nov 2020 00:01:02 +0000 (01:01 +0100)
commit8f9b74390009b5033b873661afecdec0fd4b3e28
tree5fadc0a495cb4c67b3536cb4ed730f2ed2d3f2f0
parent4467fed6f9abe01e8193eeb9a7be7de69a4fd336
app/testpmd: fix build without i40e

If there was no RTE_NET_I40E configured the static routine
str2flowtype() was not used causing compilation warning.

The str2flowtype() is moved under #ifdef RTE_NET_I40E block.

Fixes: 1be514fbcea9 ("ethdev: remove legacy FDIR filter type support")

Signed-off-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline.c