[dpdk-dev] [PATCH v12 5/7] app/testpmd: dump port info for shared Rx queue
Xueming Li
xuemingl at nvidia.com
Thu Oct 21 07:08:30 CEST 2021
In case of shared Rx queue, polling any member port returns mbufs for
all members. This patch dumps mbuf->port for each packet.
Signed-off-by: Xueming Li <xuemingl at nvidia.com>
Acked-by: Xiaoyun Li <xiaoyun.li at intel.com>
---
app/test-pmd/util.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/app/test-pmd/util.c b/app/test-pmd/util.c
index 26dc0c86406..f712f687287 100644
--- a/app/test-pmd/util.c
+++ b/app/test-pmd/util.c
@@ -101,6 +101,9 @@ dump_pkt_burst(uint16_t port_id, uint16_t queue, struct rte_mbuf *pkts[],
struct rte_port *port = &ports[port_id];
mb = pkts[i];
+ if (rxq_share > 0)
+ MKDUMPSTR(print_buf, buf_size, cur_len, "port %u, ",
+ mb->port);
eth_hdr = rte_pktmbuf_read(mb, 0, sizeof(_eth_hdr), &_eth_hdr);
eth_type = RTE_BE_TO_CPU_16(eth_hdr->ether_type);
packet_type = mb->packet_type;
--
2.33.0
More information about the dev
mailing list