From patchwork Fri Jun 12 07:34:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhang, Helin" X-Patchwork-Id: 5406 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id BA453C336; Fri, 12 Jun 2015 09:34:28 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 77ED1567C for ; Fri, 12 Jun 2015 09:34:25 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 12 Jun 2015 00:34:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,600,1427785200"; d="scan'208";a="741989380" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by fmsmga002.fm.intel.com with ESMTP; 12 Jun 2015 00:34:24 -0700 Received: from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com [10.239.29.89]) by shvmail01.sh.intel.com with ESMTP id t5C7YK2R005216; Fri, 12 Jun 2015 15:34:20 +0800 Received: from shecgisg004.sh.intel.com (localhost [127.0.0.1]) by shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id t5C7YGxA024013; Fri, 12 Jun 2015 15:34:18 +0800 Received: (from hzhan75@localhost) by shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t5C7YGcx024009; Fri, 12 Jun 2015 15:34:16 +0800 From: Helin Zhang To: dev@dpdk.org Date: Fri, 12 Jun 2015 15:34:01 +0800 Message-Id: <1434094441-23906-7-git-send-email-helin.zhang@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1434094441-23906-1-git-send-email-helin.zhang@intel.com> References: <1433403216-7114-1-git-send-email-helin.zhang@intel.com> <1434094441-23906-1-git-send-email-helin.zhang@intel.com> Subject: [dpdk-dev] [PATCH v3 6/6] app/testpmd: show the hash key size 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" As querying hash key size in byte was supported, it can be shown in testpmd after getting the device information if not zero. Signed-off-by: Helin Zhang --- app/test-pmd/config.c | 2 ++ 1 file changed, 2 insertions(+) v2 changes: * Disabled the code changes by default, to avoid breaking ABI compatibility. v3 changes: * As newly added element was put to a padding space, it will not break ABI compatibility, and no need to disable the code changes by default. diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index f788ed5..800756f 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -361,6 +361,8 @@ port_infos_display(portid_t port_id) memset(&dev_info, 0, sizeof(dev_info)); rte_eth_dev_info_get(port_id, &dev_info); + if (dev_info.hash_key_size > 0) + printf("Hash key size in bytes: %u\n", dev_info.hash_key_size); if (dev_info.reta_size > 0) printf("Redirection table size: %u\n", dev_info.reta_size); if (!dev_info.flow_type_rss_offloads)