From patchwork Mon Aug 16 07:09:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 96942 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B4303A0C46; Mon, 16 Aug 2021 09:09:58 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 212A54113F; Mon, 16 Aug 2021 09:09:55 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 9736D41145; Mon, 16 Aug 2021 09:09:53 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.0.43) with SMTP id 17FMNmus009204; Mon, 16 Aug 2021 00:09:52 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0220; bh=kZStKAo36hoBDiqJcTKtWUGa6ecCEqEwRUbFkhUK+6k=; b=IlnSnbJfk/Tbxu2y4RfVB5CRSceDCprTrvMo+5G4pQNzZVmNnYmzXXg6/v0vywIxgG09 LBx6+6qp5IKjO+FTxAC4Ka4fQ6pUmCzCy+bQKdjUKMQGhD0p/p/VsIki2wL5fAqIiCFK CKFZyhSRCdFKAt3lIEbhzoFCqrDSA9vwxAhnzh4YM8IRfZHxHbvTQvjZPE3LJgrhU3+N LaJZw3Tz8HmmVzZggbjsYAKlmfDMMPZCJNSsdJdKBW7e90pYPkKtdKS66FetFE8EFcRa YZ4+4CBAkx5ZYnbYhrmGZ2eX0gsFQ8ykW8ALUuDKwFVvXf1FIplAL6hvE4viXq6xy9Cy lw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com with ESMTP id 3af0ptj3k2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 16 Aug 2021 00:09:52 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 16 Aug 2021 00:09:51 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Mon, 16 Aug 2021 00:09:51 -0700 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 533F43F705D; Mon, 16 Aug 2021 00:09:49 -0700 (PDT) From: Nithin Dabilpuram To: Xiaoyun Li CC: , , Nithin Dabilpuram , , Date: Mon, 16 Aug 2021 12:39:42 +0530 Message-ID: <20210816070943.26807-2-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20210816070943.26807-1-ndabilpuram@marvell.com> References: <20210816070943.26807-1-ndabilpuram@marvell.com> MIME-Version: 1.0 X-Proofpoint-GUID: lHTHz54cDssG6R3autgSC4aEVzCGkPmp X-Proofpoint-ORIG-GUID: lHTHz54cDssG6R3autgSC4aEVzCGkPmp X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-08-16_02,2021-08-13_02,2020-04-07_01 Subject: [dpdk-dev] [PATCH 2/2] app/testpmd: fix verbose mode dump for Tx X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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: rasland@mellanox.com Cc: stable@dpdk.org Signed-off-by: Nithin Dabilpuram Acked-by: Xiaoyun Li Acked-by: Raslan Darawsheh --- app/test-pmd/util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/test-pmd/util.c b/app/test-pmd/util.c index 5dd7157..14a9a25 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)