app/testpmd: fix cleanup of Tx metadata offload
Commit in fixes tag removed the match_metadata Tx offload. This patch removes the option to select this offload from testpmd menu, help text and documentation. It also modifies the cmd_show_tx_metadata_parsed() function, to display the value correctly, and the dump_pkt_burst() function to display the relevant (Tx/Rx) metadata only. Fixes: 9bf26e1318e3 ("ethdev: move egress metadata to dynamic field") Signed-off-by: Dekel Peled <dekelp@mellanox.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
This commit is contained in:
parent
8d75f49e61
commit
d56ec3dcad
@ -874,7 +874,7 @@ static void cmd_help_long_parsed(void *parsed_result,
|
||||
"udp_tso|outer_ipv4_cksum|qinq_insert|vxlan_tnl_tso|"
|
||||
"gre_tnl_tso|ipip_tnl_tso|geneve_tnl_tso|"
|
||||
"macsec_insert|mt_lockfree|multi_segs|mbuf_fast_free|"
|
||||
"security|match_metadata on|off\n"
|
||||
"security on|off\n"
|
||||
" Enable or disable a per port Tx offloading"
|
||||
" on all Tx queues of a port\n\n"
|
||||
|
||||
@ -18571,8 +18571,7 @@ cmdline_parse_token_string_t cmd_config_per_port_tx_offload_result_offload =
|
||||
"sctp_cksum#tcp_tso#udp_tso#outer_ipv4_cksum#"
|
||||
"qinq_insert#vxlan_tnl_tso#gre_tnl_tso#"
|
||||
"ipip_tnl_tso#geneve_tnl_tso#macsec_insert#"
|
||||
"mt_lockfree#multi_segs#mbuf_fast_free#security#"
|
||||
"match_metadata");
|
||||
"mt_lockfree#multi_segs#mbuf_fast_free#security");
|
||||
cmdline_parse_token_string_t cmd_config_per_port_tx_offload_result_on_off =
|
||||
TOKEN_STRING_INITIALIZER
|
||||
(struct cmd_config_per_port_tx_offload_result,
|
||||
@ -18657,8 +18656,7 @@ cmdline_parse_inst_t cmd_config_per_port_tx_offload = {
|
||||
"sctp_cksum|tcp_tso|udp_tso|outer_ipv4_cksum|"
|
||||
"qinq_insert|vxlan_tnl_tso|gre_tnl_tso|"
|
||||
"ipip_tnl_tso|geneve_tnl_tso|macsec_insert|"
|
||||
"mt_lockfree|multi_segs|mbuf_fast_free|security|"
|
||||
"match_metadata on|off",
|
||||
"mt_lockfree|multi_segs|mbuf_fast_free|security on|off",
|
||||
.tokens = {
|
||||
(void *)&cmd_config_per_port_tx_offload_result_port,
|
||||
(void *)&cmd_config_per_port_tx_offload_result_config,
|
||||
@ -18857,7 +18855,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,
|
||||
rte_be_to_cpu_32(ports[res->cmd_pid].tx_metadata));
|
||||
ports[res->cmd_pid].tx_metadata);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -82,10 +82,10 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[],
|
||||
mb->vlan_tci, mb->vlan_tci_outer);
|
||||
else if (ol_flags & PKT_RX_VLAN)
|
||||
printf(" - VLAN tci=0x%x", mb->vlan_tci);
|
||||
if (ol_flags & PKT_TX_DYNF_METADATA)
|
||||
if (!is_rx && (ol_flags & PKT_TX_DYNF_METADATA))
|
||||
printf(" - Tx metadata: 0x%x",
|
||||
*RTE_FLOW_DYNF_METADATA(mb));
|
||||
if (ol_flags & PKT_RX_DYNF_METADATA)
|
||||
if (is_rx && (ol_flags & PKT_RX_DYNF_METADATA))
|
||||
printf(" - Rx metadata: 0x%x",
|
||||
*RTE_FLOW_DYNF_METADATA(mb));
|
||||
if (mb->packet_type) {
|
||||
|
@ -1718,8 +1718,7 @@ Enable or disable a per port Tx offloading on all Tx queues of a port::
|
||||
sctp_cksum, tcp_tso, udp_tso, outer_ipv4_cksum,
|
||||
qinq_insert, vxlan_tnl_tso, gre_tnl_tso,
|
||||
ipip_tnl_tso, geneve_tnl_tso, macsec_insert,
|
||||
mt_lockfree, multi_segs, mbuf_fast_free, security,
|
||||
match_metadata
|
||||
mt_lockfree, multi_segs, mbuf_fast_free, security
|
||||
|
||||
This command should be run when the port is stopped, or else it will fail.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user