From: Nithin Dabilpuram Date: Mon, 16 Aug 2021 07:09:42 +0000 (+0530) Subject: app/testpmd: fix dump of Tx offload flags X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=eeedef704c11bd74c367d62838700bdb8e5b573f;p=dpdk.git app/testpmd: fix dump of Tx offload flags Fix verbose mode dump for Tx to dump tx offload flags instead of Rx offload flags. Fixes: d862c45b5955 ("app/testpmd: move dumping packets to a separate function") Cc: stable@dpdk.org Signed-off-by: Nithin Dabilpuram Acked-by: Xiaoyun Li Acked-by: Raslan Darawsheh --- diff --git a/app/test-pmd/util.c b/app/test-pmd/util.c index 5dd7157947..14a9a251fb 100644 --- a/app/test-pmd/util.c +++ b/app/test-pmd/util.c @@ -275,7 +275,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)