From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8617E43A57; Sat, 3 Feb 2024 05:14:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 44A6E42EC6; Sat, 3 Feb 2024 05:13:41 +0100 (CET) Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) by mails.dpdk.org (Postfix) with ESMTP id 1189842E9E for ; Sat, 3 Feb 2024 05:13:34 +0100 (CET) Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-1d7881b1843so23930455ad.3 for ; Fri, 02 Feb 2024 20:13:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1706933613; x=1707538413; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=w6XNvsluzYEUaPqXdnYNnznpRxZgur3JSnJK348vD6E=; b=yEn/MUuSPYwFGug2CQe3+5oZnuCC+1G6/VETQKD1PHAEK7J7b3/IxGhRaU34JAAZkx Qphz+QZi7H60Cu/qk2lB3rISE7+Qwjy4xIGY88+oaqT0Jpfr5UsJOZ7vqOta3ANoWu0/ xcgm1rXg1brjjoyj1EID3U+B6WLgwcHYgoWE+EsV/GAHGI3ZGeD8ecYnbAu2GrDzT56N zY/iOk5VHz2OcAU9kcbT9STTfcG7e4SNWY/I0aZYf23iSwguOmzBUoc+5gdP9qLqc3Jk PqIrHZTDf3Jgjrtx+7fyFRYALa2NmmHzHSOCqTUMLBYKHcBkq7BF5medpUhRRhnSXjES 4KbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706933613; x=1707538413; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w6XNvsluzYEUaPqXdnYNnznpRxZgur3JSnJK348vD6E=; b=a6JiYi7AyXv/b/9AAYDtfnUq9BODI0g236vsIROVAg5ODuRTjO4yfw1ertxEPHzOm/ KB/Io/y9wcVaAHSzGeBnmSWuDqRBFezJxdsCHun5Y/sAdS1sp5yaDTknFkgdNk99iKVs CvpzjLsieA4/n03LMYi+ahYSFi3DPXP8/5fkIqZ7NQ2If26guWkjN1udUydZga7IaqU/ B67bKn+C9MxpBS2sYL9A3RfTk4U5Iix+eVxgO9NAvGGQ8TiPUMGwsSJJbTH604eGGBt0 eBZEFUeHbrTWjqbbKBOGvA/tS1021ER5ZpbfW/xgC/uAHWF914vIK3cIDMCSLN/3+IJm dYag== X-Gm-Message-State: AOJu0YwwsEx6VoXcYiFpNFBWl0n8yBBSuksvxE0wUQPGD9WsGWLZst3y Z44oxFAf47C0XNWE0HfyJiTZvmed3WdztKWF3FalmyHEhLn2m3waUY00k8CKonmGvwV5xffzuSZ BO7Q= X-Google-Smtp-Source: AGHT+IEeMeaY0zxqBYjUgHkRXuqumCp4/oFPBN6plIngY+Y3d2vSl/jn2ujsyM0L3u8VjUZLuGtuQQ== X-Received: by 2002:a17:902:c94d:b0:1d9:5038:f10f with SMTP id i13-20020a170902c94d00b001d95038f10fmr6151164pla.46.1706933613330; Fri, 02 Feb 2024 20:13:33 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCUb5M8+819Hre2oRFHrZowwp9UjvEzmv/ZgeW4qb26IBjLWY/W5c12cEZ6P+tKAKaPqkI8tAWi3rL/Ayi46iCTWtVE7lmPxzIPG2GW/WZ3SQoyCiaUpei91WtZLPXWoUtYu9+sn/Q== Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id mf11-20020a170902fc8b00b001d94a3f398esm2361800plb.141.2024.02.02.20.13.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 20:13:33 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Sunil Uttarwar , Ravi Kumar Subject: [PATCH v7 13/19] crypto/ccp: do not use PMD logtype Date: Fri, 2 Feb 2024 20:11:46 -0800 Message-ID: <20240203041230.285599-14-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240203041230.285599-1-stephen@networkplumber.org> References: <20231213014408.612051-1-stephen@networkplumber.org> <20240203041230.285599-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This driver has logging macros but not used consistently. Fixes: ef4b04f87fa6 ("crypto/ccp: support device init") Signed-off-by: Stephen Hemminger --- drivers/crypto/ccp/rte_ccp_pmd.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/crypto/ccp/rte_ccp_pmd.c b/drivers/crypto/ccp/rte_ccp_pmd.c index a5271d72273d..869399597ef1 100644 --- a/drivers/crypto/ccp/rte_ccp_pmd.c +++ b/drivers/crypto/ccp/rte_ccp_pmd.c @@ -194,8 +194,7 @@ cryptodev_ccp_remove(struct rte_pci_device *pci_dev) ccp_pmd_init_done = 0; - RTE_LOG(INFO, PMD, "Closing ccp device %s on numa socket %u\n", - name, rte_socket_id()); + CCP_LOG_INFO("Closing ccp device %s on numa socket %u", name, rte_socket_id()); return rte_cryptodev_pmd_destroy(dev); } @@ -279,7 +278,7 @@ cryptodev_ccp_probe(struct rte_pci_driver *pci_drv __rte_unused, }; if (ccp_pmd_init_done) { - RTE_LOG(INFO, PMD, "CCP PMD already initialized\n"); + CCP_LOG_INFO("CCP PMD already initialized"); return -EFAULT; } rte_pci_device_name(&pci_dev->addr, name, sizeof(name)); @@ -288,11 +287,11 @@ cryptodev_ccp_probe(struct rte_pci_driver *pci_drv __rte_unused, init_params.def_p.max_nb_queue_pairs = CCP_PMD_MAX_QUEUE_PAIRS; - RTE_LOG(INFO, PMD, "Initialising %s on NUMA node %d\n", name, + CCP_LOG_INFO("Initialising %s on NUMA node %d", name, init_params.def_p.socket_id); - RTE_LOG(INFO, PMD, "Max number of queue pairs = %d\n", + CCP_LOG_INFO("Max number of queue pairs = %d", init_params.def_p.max_nb_queue_pairs); - RTE_LOG(INFO, PMD, "Authentication offload to %s\n", + CCP_LOG_INFO("Authentication offload to %s", ((init_params.auth_opt == 0) ? "CCP" : "CPU")); rte_pci_device_name(&pci_dev->addr, name, sizeof(name)); -- 2.43.0