app/testpmd: remove duplicated flow type name table
authorFerruh Yigit <ferruh.yigit@xilinx.com>
Wed, 29 Jun 2022 08:34:51 +0000 (16:34 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Wed, 29 Jun 2022 19:40:50 +0000 (21:40 +0200)
commit119786aa6e353abd37dac2168084cc5c2909a2f3
treed124db137853a32446153ab0d427f910d157c7fa
parentd7bfa4df990c32dd888966ad5eb6102b3d71f66f
app/testpmd: remove duplicated flow type name table

Flow type table has two instance, one is used for flow type to string
conversion, and other is used for string to flow type conversion.
And tables are diverged by time.

Unifying tables to prevent maintaining two different tables.

Note: made 'flowtype_to_str()' and 'str_to_flowtype()' non-static to
prevent build error for the case PMDs using it disables. Making the two
functions generic, not for some PMDs.

Signed-off-by: Ferruh Yigit <ferruh.yigit@xilinx.com>
Signed-off-by: Huisong Li <lihuisong@huawei.com>
app/test-pmd/config.c
app/test-pmd/testpmd.h
drivers/net/i40e/i40e_testpmd.c