summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@redhat.com>2019-01-07 09:57:12 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-01-15 02:40:40 +0100
commitb6ec9ce9e32ac9e86ece11180bac94284158d2ee (patch)
treeab2eda6fbd258ea18fb468e03bfd2830896ff36e /app
parentd4dca8fe437760ff866cf2aa35a612d7a099862b (diff)
downloaddpdk-next-eventdev-b6ec9ce9e32ac9e86ece11180bac94284158d2ee.zip
dpdk-next-eventdev-b6ec9ce9e32ac9e86ece11180bac94284158d2ee.tar.gz
dpdk-next-eventdev-b6ec9ce9e32ac9e86ece11180bac94284158d2ee.tar.xz
app/testpmd: check mbufs in verbose mode
Let's check the received/sent mbufs, it can help debugging. Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
Diffstat (limited to 'app')
-rw-r--r--app/test-pmd/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/test-pmd/util.c b/app/test-pmd/util.c
index 687bfa4..6b0791d 100644
--- a/app/test-pmd/util.c
+++ b/app/test-pmd/util.c
@@ -36,6 +36,7 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[],
uint32_t sw_packet_type;
uint16_t udp_port;
uint32_t vx_vni;
+ const char *reason;
if (!nb_pkts)
return;
@@ -147,6 +148,8 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[],
printf("\n");
rte_get_rx_ol_flag_list(mb->ol_flags, buf, sizeof(buf));
printf(" ol_flags: %s\n", buf);
+ if (rte_mbuf_check(mb, 1, &reason) < 0)
+ printf("INVALID mbuf: %s\n", reason);
}
}