app/testpmd: fix flow transfer proxy port handling
authorIvan Malov <ivan.malov@oktetlabs.ru>
Tue, 16 Nov 2021 15:38:17 +0000 (18:38 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 17 Nov 2021 10:26:27 +0000 (11:26 +0100)
commit2490bb897182f57de80fd924dd3ae48dda819b8c
tree6550a976cfde208378795f8cf21a16fb51c8c7e0
parente4c402afc18691cadc7d07e1617ba54a2ec4a86b
app/testpmd: fix flow transfer proxy port handling

The current approach detects the proxy port on each port (re-)plug and
may spam the log with error messages if the PMD does not support flows.
As testpmd is a debug tool, it must not do such implicit port handling.
Instead, the new API should be called only when the user requests that.

Revoke the existing code. Implement an explicit command-line primitive
to let the user find the proxy port themselves. Provide relevant hints.

Fixes: 1179f05cc9a0 ("ethdev: query proxy port to manage transfer flows")

Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Ori Kam <orika@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
app/test-pmd/cmdline.c
app/test-pmd/config.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h
app/test-pmd/util.c
doc/guides/testpmd_app_ug/testpmd_funcs.rst