app/testpmd: fix Tx metadata show command
authorDekel Peled <dekelp@mellanox.com>
Tue, 22 Jan 2019 15:16:43 +0000 (17:16 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 24 Jan 2019 09:08:31 +0000 (10:08 +0100)
commit5ffbd70b1712d1856aa86f18877628b2d94813ce
tree9883891e43509dabc5a1710f7fd9b6d68fcaa79e
parentc2303617e664d5af3e5aac143d407f0474d5d7c0
app/testpmd: fix Tx metadata show command

Function cmd_config_tx_metadata_specific_parsed() takes input value,
applies rte_cpu_to_be_32() on it, and stores it for Tx use.
Function cmd_show_tx_metadata_parsed() displays the stored value as is.

This patch modifies function cmd_show_tx_metadata_parsed(), to apply
rte_be_to_cpu_32() on the stored value before displaying it.

Fixes: c18feafa193c ("app/testpmd: support metadata as flow rule item")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
app/test-pmd/cmdline.c