DPDK patches and discussions
 help / color / mirror / Atom feed
From: Olivier Matz <olivier.matz@6wind.com>
To: dev@dpdk.org, pablo.de.lara.guarch@intel.com
Subject: [dpdk-dev] [PATCH 6/8] app/testpmd: display rx port in csum engine
Date: Mon, 11 Jul 2016 20:39:43 +0200	[thread overview]
Message-ID: <1468262385-32038-7-git-send-email-olivier.matz@6wind.com> (raw)
In-Reply-To: <1468262385-32038-1-git-send-email-olivier.matz@6wind.com>

This information is useful when debugging, especially with
bidirectional traffic.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
---
 app/test-pmd/csumonly.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c
index ee98724..35edf1d 100644
--- a/app/test-pmd/csumonly.c
+++ b/app/test-pmd/csumonly.c
@@ -774,8 +774,8 @@ pkt_burst_checksum_forward(struct fwd_stream *fs)
 			char buf[256];
 
 			printf("-----------------\n");
-			printf("mbuf=%p, pkt_len=%u, nb_segs=%hhu:\n",
-				m, m->pkt_len, m->nb_segs);
+			printf("port=%u, mbuf=%p, pkt_len=%u, nb_segs=%hhu:\n",
+				fs->rx_port, m, m->pkt_len, m->nb_segs);
 			/* dump rx parsed packet info */
 			rte_get_rx_ol_flag_list(rx_ol_flags, buf, sizeof(buf));
 			printf("rx: l2_len=%d ethertype=%x l3_len=%d "
-- 
2.8.1

  parent reply	other threads:[~2016-07-11 18:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-11 18:39 [dpdk-dev] [PATCH 0/8] Misc enhancements in testpmd Olivier Matz
2016-07-11 18:39 ` [dpdk-dev] [PATCH 1/8] mbuf: add function to dump ol flag list Olivier Matz
2016-07-11 18:39 ` [dpdk-dev] [PATCH 2/8] app/testpmd: use new function to dump offload flags Olivier Matz
2016-07-11 18:39 ` [dpdk-dev] [PATCH 3/8] app/testpmd: dump rx flags in csum engine Olivier Matz
2016-07-11 18:39 ` [dpdk-dev] [PATCH 4/8] app/testpmd: add option to enable lro Olivier Matz
2016-07-11 18:39 ` [dpdk-dev] [PATCH 5/8] app/testpmd: do not change ip addrs in csum engine Olivier Matz
2016-07-11 18:39 ` Olivier Matz [this message]
2016-07-11 18:39 ` [dpdk-dev] [PATCH 7/8] app/testpmd: don't use tso if packet is too small Olivier Matz
2016-07-11 18:39 ` [dpdk-dev] [PATCH 8/8] app/testpmd: hide segsize when unrelevant in csum engine Olivier Matz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1468262385-32038-7-git-send-email-olivier.matz@6wind.com \
    --to=olivier.matz@6wind.com \
    --cc=dev@dpdk.org \
    --cc=pablo.de.lara.guarch@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).