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 7219741C7B; Sun, 12 Feb 2023 17:15:24 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9CFF242D13; Sun, 12 Feb 2023 17:15:06 +0100 (CET) Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) by mails.dpdk.org (Postfix) with ESMTP id 7AC6F42C54 for ; Sun, 12 Feb 2023 17:15:01 +0100 (CET) Received: by mail-pl1-f171.google.com with SMTP id b5so11264168plz.5 for ; Sun, 12 Feb 2023 08:15:01 -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=eII66MefFlLIqh58zDth/TOhsKHd1mfCvOz8kThiOapakEwZN0vNyj1hOFE9iEHRyP Benl3CR0QoWMdnJ6Bm/vcP3B3klxjjMWDCWtp2PT22a83gOenxF23BsgGDr1TLDiHtZT f1bbn0MjLYMV5SNGOSMRSV9GPNcekR3ohprvQia4EhA9mSTRCq78mLqpqElFaZUOI5jM 87q/j8Qr0TTtEM/+Mg6nN4pudX7d2jz9AMkVzT7NmBo1RBoHp35DkgNNskMq8MPmGF2s fU4lTzZYx6ROumxyW0FX6M0EJXfxh/5WNV79zjQI/tz49fkxvEhAde0RUVo6HF9fu20r 4IDw== 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=yqRvpO1DD1qsoJHtM9AFzWxmySgOe601ZEewizh/lNWKQgaArEGaivxKRAwNkVeZJ3 pDS7Fk1bzQVtL86fTqWKcWcgI+6WuGkn08HaYOot5LpmlDa3vAKhCzLB0twG0wYfyyMk b2Yr1yKZzIyPb+8rSCLnKKSrBKlfxYElrXHTIX9YsZX2mw5zpUEiAr/KmfAlAQduKI69 sS1sDJWvI2VTNHksPFnZCFyqy5t/bnbzeSL3x8pHmlgJWL7FJrDfb3ZRpxpmxwoX69TO uKGyn4zegR0UGvJ8U4AM8jwTXx3KDxavH7yVe6RzgyxtUIL4OsVfmz7qsFdKMRabTEte U3HQ== X-Gm-Message-State: AO0yUKWTfSyCKYnldNtZ2Xfrv/pm2MTB6znrYN6z1oSzUr3PN5+x7B9f yRgad2rv0YgA5/lQfF5efX2OPpQw9HJMOOSQXbk= X-Google-Smtp-Source: AK7set+98a8+SylExUzwQvRSlNbv8W4CQxZBMkX7WYiGvRZUU8FcsbtzRMpiIeoYoDqy+BbPtVUGGA== X-Received: by 2002:a17:90b:388b:b0:233:e0d5:a2ab with SMTP id mu11-20020a17090b388b00b00233e0d5a2abmr2978458pjb.34.1676218500472; Sun, 12 Feb 2023 08:15:00 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id a14-20020a17090abe0e00b002308e6e645bsm2709817pjs.49.2023.02.12.08.14.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Feb 2023 08:15:00 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Chenbo Xia , Maxime Coquelin Subject: [PATCH 4/5] vhost: use logtype instead of RTE_LOGTYPE_USER1 Date: Sun, 12 Feb 2023 08:14:53 -0800 Message-Id: <20230212161454.836493-5-stephen@networkplumber.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230212161454.836493-1-stephen@networkplumber.org> References: <20230208044825.1682620-1-stephen@networkplumber.org> <20230212161454.836493-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 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", \ -- 2.39.1