app/testpmd: fix PF/VF check of flow director
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Wed, 19 Oct 2016 01:12:15 +0000 (09:12 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 25 Oct 2016 21:11:02 +0000 (23:11 +0200)
commit1cfde13610fe8574020999ab8ea6d8617d6773c2
tree38a2c54b2e2d20017ac7192f7dfce4500b99e4ce
parent479c4af301dc6a1b83a73f1d4f70fa4e3b279536
app/testpmd: fix PF/VF check of flow director

Parameters pf & vf are added into most of flow director
filter CLIs.
But mac-vlan and tunnel filters don't have these parameters,
the parameters should not be checked for mac-vlan and tunnel
filters.

Fixes: e6a68c013353 ("app/testpmd: extend commands for flow director in VF")

Reported-by: Frederico Cadete <frederico.cadete-ext@oneaccess-net.com>
Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-pmd/cmdline.c