From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from proxy.6wind.com (host.76.145.23.62.rev.coltfrance.com [62.23.145.76]) by dpdk.org (Postfix) with ESMTP id D2A3A7DEC for ; Wed, 12 Oct 2016 17:40:20 +0200 (CEST) Received: from glumotte.dev.6wind.com (unknown [10.16.0.195]) by proxy.6wind.com (Postfix) with ESMTP id CAE982838F; Wed, 12 Oct 2016 17:40:19 +0200 (CEST) From: Olivier Matz To: dev@dpdk.org, pablo.de.lara.guarch@intel.com Cc: thomas.monjalon@6wind.com Date: Wed, 12 Oct 2016 17:39:50 +0200 Message-Id: <1476286790-26271-9-git-send-email-olivier.matz@6wind.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1476286790-26271-1-git-send-email-olivier.matz@6wind.com> References: <1475856318-24616-1-git-send-email-olivier.matz@6wind.com> <1476286790-26271-1-git-send-email-olivier.matz@6wind.com> Subject: [dpdk-dev] [PATCH v6 8/8] app/testpmd: hide segsize when unrelevant in csum engine X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2016 15:40:21 -0000 When TSO is not asked, hide the segment size. Signed-off-by: Olivier Matz Acked-by: Pablo de Lara --- app/test-pmd/csumonly.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index d51d85a..f9e65b6 100644 --- a/app/test-pmd/csumonly.c +++ b/app/test-pmd/csumonly.c @@ -843,10 +843,12 @@ pkt_burst_checksum_forward(struct fwd_stream *fs) "m->outer_l3_len=%d\n", m->outer_l2_len, m->outer_l3_len); - if (info.tunnel_tso_segsz != 0) + if (info.tunnel_tso_segsz != 0 && + (m->ol_flags & PKT_TX_TCP_SEG)) printf("tx: m->tso_segsz=%d\n", m->tso_segsz); - } else if (info.tso_segsz != 0) + } else if (info.tso_segsz != 0 && + (m->ol_flags & PKT_TX_TCP_SEG)) printf("tx: m->tso_segsz=%d\n", m->tso_segsz); rte_get_tx_ol_flag_list(m->ol_flags, buf, sizeof(buf)); printf("tx: flags=%s", buf); -- 2.8.1