Skip to content

Commit

Permalink
app/testpmd: fix dump of Tx offload flags
Browse files Browse the repository at this point in the history
[ upstream commit eeedef7 ]

Fix verbose mode dump for Tx to dump tx offload flags instead of
Rx offload flags.

Fixes: d862c45 ("app/testpmd: move dumping packets to a separate function")

Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>
Acked-by: Xiaoyun Li <xiaoyun.li@intel.com>
Acked-by: Raslan Darawsheh <rasland@nvidia.com>
  • Loading branch information
nithind1988 authored and cpaelzer committed Nov 29, 2021
1 parent 82785de commit f534d15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/test-pmd/util.c
Expand Up @@ -191,7 +191,11 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[],
" - %s queue=0x%x", is_rx ? "Receive" : "Send",
(unsigned int) queue);
MKDUMPSTR(print_buf, buf_size, cur_len, "\n");
rte_get_rx_ol_flag_list(mb->ol_flags, buf, sizeof(buf));
if (is_rx)
rte_get_rx_ol_flag_list(mb->ol_flags, buf, sizeof(buf));
else
rte_get_tx_ol_flag_list(mb->ol_flags, buf, sizeof(buf));

MKDUMPSTR(print_buf, buf_size, cur_len,
" ol_flags: %s\n", buf);
if (rte_mbuf_check(mb, 1, &reason) < 0)
Expand Down

0 comments on commit f534d15

Please sign in to comment.