summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDekel Peled <dekelp@mellanox.com>2019-01-22 17:16:43 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2019-01-24 10:08:31 +0100
commit5ffbd70b1712d1856aa86f18877628b2d94813ce (patch)
tree9883891e43509dabc5a1710f7fd9b6d68fcaa79e /app
parentc2303617e664d5af3e5aac143d407f0474d5d7c0 (diff)
downloaddpdk-next-eventdev-5ffbd70b1712d1856aa86f18877628b2d94813ce.zip
dpdk-next-eventdev-5ffbd70b1712d1856aa86f18877628b2d94813ce.tar.gz
dpdk-next-eventdev-5ffbd70b1712d1856aa86f18877628b2d94813ce.tar.xz
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>
Diffstat (limited to 'app')
-rw-r--r--app/test-pmd/cmdline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 3ddc3e0..51704b5 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -18455,7 +18455,7 @@ cmd_show_tx_metadata_parsed(void *parsed_result,
}
if (!strcmp(res->cmd_keyword, "tx_metadata")) {
printf("Port %u tx_metadata: %u\n", res->cmd_pid,
- ports[res->cmd_pid].tx_metadata);
+ rte_be_to_cpu_32(ports[res->cmd_pid].tx_metadata));
}
}