From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BFB15A034E; Wed, 6 May 2020 21:58:48 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 80B9B1D639; Wed, 6 May 2020 21:58:19 +0200 (CEST) Received: from mail-pf1-f196.google.com (mail-pf1-f196.google.com [209.85.210.196]) by dpdk.org (Postfix) with ESMTP id 826811DB13 for ; Wed, 6 May 2020 21:58:15 +0200 (CEST) Received: by mail-pf1-f196.google.com with SMTP id z1so1614457pfn.3 for ; Wed, 06 May 2020 12:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bCpX9ciufVpps0LSAuq13EHXzzYLJNe/o+jX46T9nQk=; b=mfdSG2v9AtBuaWPSw94Aeyc+ltwBXg84nqCtW1CTEbaHdQs9qDA5HCflNr0d8vUAlt QbMLoZyjuRxn6fcnMWQ/HMrac9W1hhUvdmzKOKc7IQ64uqH6ltYnGldxg6LzUGvHJXF1 R24O59oRuhtrXs1s1eEk0+qMhYVNjre0S0AO82acx22+aVjIZ9Q7AF8z7D8EZdpkTiZ5 raq2t8LSM0WlB7di70jibrVvQKcnx9hk3NBID9tsf4eV0qfY5tPg1oq+BlQwxPLQyXyr OQ09lWdapXaNgyfb3ZHpO20kFcPbDU2IEwe7Z0lNgRZSj+sQCbzoQRcB6cLnUZzTC+hZ gAbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bCpX9ciufVpps0LSAuq13EHXzzYLJNe/o+jX46T9nQk=; b=p5U0KcxObt2jT4UNFIUhXUTnZjELQPsgEgQBI8TOswAYT7i7klM9h6uUFcKDGnppdb lHdzayefKSVfrAsfQMDo8j+hAt5eziWxb5rv6gFjXAwUyVthyXvqFW7H3UbLuXG+WP0m 1DC1D9azvRHgNuFyrQW0ZLIwe6ob/eP17saUnGdKXy8WzIfHE5+KPUzX+wfNCZwBDRUR V2efQ78Lx13LwdKn3aJxwxoj3iP6TSFaRsWVWC0fmuqL3E3sOMT3F0BWq8yiruUPFXqi t2tIJy3Wv4483Jy12ZEl6cOSNnuWv7fMHexLdIy5wSuIZ5IIYhLztPitwnw9oYy4tzFY FiTg== X-Gm-Message-State: AGi0PuZTQ4HlqPONQ8Aulgp+lJ34yGSvXj7/LrPJzUduFmLtQJ0cggHg g64LmV+VSNz/LRy+MDxrCfFF/G2cryDvEw== X-Google-Smtp-Source: APiQypIsHpXdhEyrOlD+4BKi9vmrALJN1WwfrFSVXyHc6nFprVr7AfYFJlgriTSJdQm/EuzYhoRFsg== X-Received: by 2002:a62:ae13:: with SMTP id q19mr10324780pff.310.1588795094116; Wed, 06 May 2020 12:58:14 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id w1sm2126238pgh.53.2020.05.06.12.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 12:58:13 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Maryam Tahhan , Reshma Pattan Date: Wed, 6 May 2020 12:57:56 -0700 Message-Id: <20200506195758.27057-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200506195758.27057-1-stephen@networkplumber.org> References: <20200506193741.24117-1-stephen@networkplumber.org> <20200506195758.27057-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 5/7] app/proc-info: hide crypto-context display 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" If crypto context is not present, no point in displaying it. Also fix spelling error. Signed-off-by: Stephen Hemminger --- app/proc-info/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/proc-info/main.c b/app/proc-info/main.c index c4f1f99e7d5d..804c0fd63b3e 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -779,12 +779,11 @@ show_port(void) } } - printf(" - cyrpto context\n"); #ifdef RTE_LIBRTE_SECURITY void *p_ctx = rte_eth_dev_get_sec_ctx(i); - printf("\t -- security context - %p\n", p_ctx); - if (p_ctx) { + printf(" - crypto context\n"); + printf("\t -- security context - %p\n", p_ctx); printf("\t -- size %u\n", rte_security_session_get_size(p_ctx)); const struct rte_security_capability *s_cap = -- 2.20.1