From patchwork Tue Jul 16 10:34:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Slava Ovsiienko X-Patchwork-Id: 56496 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0C38A37A2; Tue, 16 Jul 2019 12:34:40 +0200 (CEST) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 2ABD037A2 for ; Tue, 16 Jul 2019 12:34:38 +0200 (CEST) Received: from Internal Mail-Server by MTLPINE2 (envelope-from viacheslavo@mellanox.com) with ESMTPS (AES256-SHA encrypted); 16 Jul 2019 13:34:36 +0300 Received: from pegasus12.mtr.labs.mlnx. (pegasus12.mtr.labs.mlnx [10.210.17.40]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x6GAYaMx012136; Tue, 16 Jul 2019 13:34:36 +0300 From: Viacheslav Ovsiienko To: dev@dpdk.org Cc: bernard.iremonger@intel.com, stable@dpdk.org Date: Tue, 16 Jul 2019 10:34:34 +0000 Message-Id: <1563273274-30219-1-git-send-email-viacheslavo@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1563272735-29246-1-git-send-email-viacheslavo@mellanox.com> References: <1563272735-29246-1-git-send-email-viacheslavo@mellanox.com> Subject: [dpdk-dev] [PATCH v3] app/testpmd: fix show port info routine X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" This patch updates "show port info [port_id]" command to display the tx_desc_lim.nb_seg_max and tx_desc_lim.nb_mtu_seg_max fields of rte_eth_dev_info structure. Fixes: 4fb7e803eb1a ("ethdev: add Tx preparation") Cc: stable@dpdk.org Signed-off-by: Viacheslav Ovsiienko Acked-by: Bernard Iremonger --- v3: tag fixed in commit log message v2: addressed comments, converted to fix with backporting v1: http://patches.dpdk.org/patch/56476/ --- app/test-pmd/config.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 1d80470..ba43be5 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -509,6 +509,10 @@ printf("Min possible number of TXDs per queue: %hu\n", dev_info.tx_desc_lim.nb_min); printf("TXDs number alignment: %hu\n", dev_info.tx_desc_lim.nb_align); + printf("Max segment number per packet: %hu\n", + dev_info.tx_desc_lim.nb_seg_max); + printf("Max segment number per MTU/TSO: %hu\n", + dev_info.tx_desc_lim.nb_mtu_seg_max); /* Show switch info only if valid switch domain and port id is set */ if (dev_info.switch_info.domain_id !=