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: c18feafa19
("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>
This commit is contained in:
parent
c2303617e6
commit
5ffbd70b17
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user