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 BE57BA034E; Wed, 6 May 2020 21:38:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 402421DAB8; Wed, 6 May 2020 21:38:03 +0200 (CEST) Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) by dpdk.org (Postfix) with ESMTP id EAAF41DAB0 for ; Wed, 6 May 2020 21:38:00 +0200 (CEST) Received: by mail-pj1-f68.google.com with SMTP id fu13so1386688pjb.5 for ; Wed, 06 May 2020 12:38:00 -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=xmLSaYtfihDhfD+DIsnmr5rhkx+ex4NVrfXTem7sf4U=; b=NY5vClRMrVjpHro1wTPjmM/EQScT5jb9ScV8UDQr1eCXXV7TcxB5tvQufQyoWjIA1B S88Y0TK4Z2sbx7hQ1AuhmMYnAhsU1CysrWfVjFYZILVOVtZTg5N9kOl8LK0m/HWZL3dL v7hrP1244j/vQ+Y2sEsyKeuZnN1aT/RamUv52OxYUeziwr24sYtXwXNvwWLeOKK5wj4A 3nGQuwBdcZM/zA0jC2J6jDVFhwZ233eSl7k1dUK/GqzwFC1WkP5RKUOQMTLAQwdyj44k QvqTnBd4VTBXS9zamgztHKw1XGySwXxT0HXQ9FMvyAsoGonSvbpqanseZdRtp5Rax7Fc Ulnw== 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=xmLSaYtfihDhfD+DIsnmr5rhkx+ex4NVrfXTem7sf4U=; b=NGxBBxC4V33jTBVDqIzIxTm1Twknkpi6NM5QojdyatLRidr3JXZ6qXVKVm+giTKVWz 4UgsAjR2neXcriQQVvtLNQq2hruMsUscFcupAlPoIKn6E548FybKrdUItpbRU3Z88IoW HXWsVpz//QnHv7vwQCV8PSTgxl/+YgLYBYYWA01kzGJ50iFBx/RLEIzAfwc5ZZLRaulw LuB2SE9iTB0q5pXUlfTIEm6byCpUu/iUbtQZE8vO960eVJiEEZeaK9PolrHCbDP2N4O7 szwkOfzO+tKbrmw7pP68rj6QxAinyuWtkY1tew9q5rFHcW6873BV933Yj6qs/Mo3jrvP hOEA== X-Gm-Message-State: AGi0PuY/D8EX8GVVmJ4MtpbNev0BKQwfwYtL8G/yW9xZho7WTWxumqaE VOgHtTvUdxcCw/XgM/FFGSVo5927T2MizQ== X-Google-Smtp-Source: APiQypLri+MrzxgQV0w7g78jdVheebRyd72BHmOJ/W3NKC8CAZ9BERjTDYoOdniFg1bt0joh+gJv9g== X-Received: by 2002:a17:90a:a40e:: with SMTP id y14mr12031363pjp.101.1588793879674; Wed, 06 May 2020 12:37:59 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j5sm1832971pjf.0.2020.05.06.12.37.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 May 2020 12:37:58 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Maryam Tahhan , Reshma Pattan Date: Wed, 6 May 2020 12:37:39 -0700 Message-Id: <20200506193741.24117-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200506193741.24117-1-stephen@networkplumber.org> References: <20200506193741.24117-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 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 2f74cbf462d5..bb0e0cbe9e6e 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