From patchwork Mon Feb 20 18:50:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 124215 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8266E41CEE; Mon, 20 Feb 2023 19:50:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8F245430EC; Mon, 20 Feb 2023 19:50:14 +0100 (CET) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id 9FEBD430CE for ; Mon, 20 Feb 2023 19:50:07 +0100 (CET) Received: by mail-pl1-f181.google.com with SMTP id p1so490406plg.7 for ; Mon, 20 Feb 2023 10:50:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; 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=0XJ+g0kD2Qe+7BJbKO63/uCY6D20Y6WQZhAQwgT+Y2U=; b=rN5gMJIdJBbMNb362T7LqknMbxbC2pzDqU7AnIbhycMxmIDOB+EDnW/F5KfYUEl8Eb tmmVthdWl+A2RwB+my++tzTGF6H30WrOu+bZQiTSq+1w0I82eChBts3H8Qd9kalua2MG MyW7Ao6eev5iWAQNSUratrVYfMaca/m3GdKfKh4PzCOvY0609EUUVXVRjOuYdk5WHn55 J62LQqb1D6RkA7rBkyUHSBO5pEOUDgi4MHhRbGJVrPFkquYNzcsehiBXQ0FtYivbaIv+ rXwBiNEFyIKiFKPnbzdjM/YxWawh1iUI9RRqckKqKtHSJ4sAl9jshXW6cZ1951CscjR9 bxyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=0XJ+g0kD2Qe+7BJbKO63/uCY6D20Y6WQZhAQwgT+Y2U=; b=LmcPEf4Z/NDOHAuc8Q8uhpjHxOu1Bc0Qn0xv0FMcn5RGO1fLMDgUWQnJf9BaIR4OCn HT3VXlHuwvK1KlA34LzWvYJXRLMHYwyMeFmVqw4hWc8Fak8ieQGQSxGVJFMwsl5SW4Lw t7XkLxH5sSvdla5H/yijN4EE3IFslaIrgu7loMvScTdtN0JGog7IOWX2p40giBTxTLyI fEzTOavJyA7eaQyu36jqcn65J0datyyg3lX96w+C+jI2QXCc+oetFsdM/0/cpslWa5r1 WYowqCX45Q2uKya5Jp7ACkM58zk0s83b17nc/SCosXjsMjThnV6Uhr2WLkZnIlJ662OY XKiA== X-Gm-Message-State: AO0yUKXbbTukkvfSgtQjfc+jt9uO5o0e7C/ZRrODpwH2wXPAFrorlwrC dAEXVkqzKBdMjhfb67fVydv8W13peZoPr/bAeKs= X-Google-Smtp-Source: AK7set8sS5LfJcOwockCvrmFk15V9yKOJEikOUMTUoh7lEu8tJ+RbjE9PtQ0iPL6gyxIPFhT3tbizg== X-Received: by 2002:a17:902:ebcf:b0:19b:98ce:48e6 with SMTP id p15-20020a170902ebcf00b0019b98ce48e6mr934707plg.6.1676919006830; Mon, 20 Feb 2023 10:50:06 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id n21-20020a170902969500b0019607547f29sm2020798plp.304.2023.02.20.10.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 10:50:06 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Chenbo Xia , Maxime Coquelin Subject: [PATCH v6 4/5] vhost: use logtype instead of RTE_LOGTYPE_USER1 Date: Mon, 20 Feb 2023 10:50:00 -0800 Message-Id: <20230220185001.50714-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230220185001.50714-1-stephen@networkplumber.org> References: <20230208044825.1682620-1-stephen@networkplumber.org> <20230220185001.50714-1-stephen@networkplumber.org> MIME-Version: 1.0 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 Fix instances of USER1 logtype in fdset and crypto sections. Acked-by: Chenbo Xia Reviewed-by: Maxime Coquelin Signed-off-by: Stephen Hemminger --- lib/vhost/fd_man.c | 4 ++-- lib/vhost/vhost_crypto.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/vhost/fd_man.c b/lib/vhost/fd_man.c index 1876fada3354..46037d02784e 100644 --- a/lib/vhost/fd_man.c +++ b/lib/vhost/fd_man.c @@ -10,8 +10,8 @@ #include "fd_man.h" - -#define RTE_LOGTYPE_VHOST_FDMAN RTE_LOGTYPE_USER1 +RTE_LOG_REGISTER_SUFFIX(vhost_fdset_logtype, fdset, INFO); +#define RTE_LOGTYPE_VHOST_FDMAN vhost_fdset_logtype #define FDPOLLERR (POLLERR | POLLHUP | POLLNVAL) diff --git a/lib/vhost/vhost_crypto.c b/lib/vhost/vhost_crypto.c index f02bf865c349..ad420ea012d0 100644 --- a/lib/vhost/vhost_crypto.c +++ b/lib/vhost/vhost_crypto.c @@ -4,6 +4,7 @@ #include #include #include +#include #include #include @@ -16,6 +17,9 @@ #define IV_OFFSET (sizeof(struct rte_crypto_op) + \ sizeof(struct rte_crypto_sym_op)) +RTE_LOG_REGISTER_SUFFIX(vhost_crypto_logtype, crypto, INFO); +#define RTE_LOGTYPE_VHOST_CRYPTO vhost_crypto_logtype + #ifdef RTE_LIBRTE_VHOST_DEBUG #define VC_LOG_ERR(fmt, args...) \ RTE_LOG(ERR, USER1, "[%s] %s() line %u: " fmt "\n", \