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 E87ECA0562; Tue, 31 Mar 2020 19:32:34 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C47481C119; Tue, 31 Mar 2020 19:31:35 +0200 (CEST) Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by dpdk.org (Postfix) with ESMTP id 09D2C1C0D7 for ; Tue, 31 Mar 2020 19:31:31 +0200 (CEST) Received: by mail-pj1-f66.google.com with SMTP id m15so1361295pje.3 for ; Tue, 31 Mar 2020 10:31:30 -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=9ToMg0lSj5c30+yWXFwD29RxpRRHhuhw6ZagmuwaulQ=; b=uOTrT1X9ole0kv+iVXLLGgG0ybw0lQqvyvij2pxLuPbGPCsIRJtiHzkqjpSp/7XSi5 7QU9ruvbvJh9olGGvDFjwWf436plRzwHhRsZ/7s8wlYdEnbqyPbnIpAtjwDD4lybDdKN QEkGEvcujcGwamjNRh6NyQr61iyuQS+zpDaxdw7cZzcJBtIjch1ErKQWCTN0U4wp23yN DpQHdzGMnB523XUoVUOZO/AJ9N9/WVoTGIUD4zF/uj0i9M6FkKlhoQUyBGlRPFRi0EzS SUB+cR0yQqQ09HQ/5/gqUdPJKMVfWfLGDv9kWwoAbeU+PWlGekcoLSRjAcCz5xfga0wZ 9x9g== 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=9ToMg0lSj5c30+yWXFwD29RxpRRHhuhw6ZagmuwaulQ=; b=PZrxYaoklIqwS0IortMlKNBl4VAnqjw5IZ14Q/rdSRYRiaH/IBbhlBzvFlpxjn4L9B ufesxwOcW4A9zp7rRTTtv0zHBBIhF3rG6k+t2OMrUIX4HyScKdVtNAihoVPOJeJpMZTh HJwYr9eKFIrkp8QFED6u14vZbe22FDxk+lb33BDalx0qD+smji09M6xVhzx7pV2Xy7Yz F1MXpDy2KJlRCfXuNAuXdtGOL8enX/n2+YEY6k8aLcX0QVBd8k0pGr2h4pxod2u3yPvr Oqb/e2pYuauUvBxsD4ioNNmCPcXVTjxJo7rI1DYUAllzLTBFcQ+W9zzMBVXpkonLqkV8 4w2g== X-Gm-Message-State: AGi0PuYpNV1Sg5FBu6tZBkY/1PAd7rtxJKtmSkg5rGwHr2YMXgpGw8MR BoN9d64heIMT3hcYy0dotn5jLmTjK7Zdag== X-Google-Smtp-Source: APiQypJ765mBHPZf/wx0ADSAj5QvrrhBlSnLFTUZaacu6/ZtyeVG8VDHXwkF1X0wRc+/Xy+rD7uSRw== X-Received: by 2002:a17:90a:c207:: with SMTP id e7mr5312094pjt.117.1585675889789; Tue, 31 Mar 2020 10:31:29 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id 198sm12999261pfa.87.2020.03.31.10.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Mar 2020 10:31:28 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , jerin.jacob@caviumnetworks.com Date: Tue, 31 Mar 2020 10:31:10 -0700 Message-Id: <20200331173110.25746-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200331173110.25746-1-stephen@networkplumber.org> References: <20200331044156.31935-1-stephen@networkplumber.org> <20200331173110.25746-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 7/7] net/thunderx: use dynamic logtype 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" The PMD static logtype is original DPDK legacy and should not be used. Fixes: 43362c6a7647 ("net/thunderx: support RSS and RETA query and update") Cc: jerin.jacob@caviumnetworks.com Signed-off-by: Stephen Hemminger --- drivers/net/thunderx/nicvf_ethdev.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/net/thunderx/nicvf_ethdev.c b/drivers/net/thunderx/nicvf_ethdev.c index 6f43541a5d42..bfda0ab0ede8 100644 --- a/drivers/net/thunderx/nicvf_ethdev.c +++ b/drivers/net/thunderx/nicvf_ethdev.c @@ -496,9 +496,10 @@ nicvf_dev_reta_query(struct rte_eth_dev *dev, int ret, i, j; if (reta_size != NIC_MAX_RSS_IDR_TBL_SIZE) { - RTE_LOG(ERR, PMD, "The size of hash lookup table configured " - "(%d) doesn't match the number hardware can supported " - "(%d)", reta_size, NIC_MAX_RSS_IDR_TBL_SIZE); + PMD_DRV_LOG(ERR, + "The size of hash lookup table configured " + "(%u) doesn't match the number hardware can supported " + "(%u)", reta_size, NIC_MAX_RSS_IDR_TBL_SIZE); return -EINVAL; } @@ -526,9 +527,9 @@ nicvf_dev_reta_update(struct rte_eth_dev *dev, int ret, i, j; if (reta_size != NIC_MAX_RSS_IDR_TBL_SIZE) { - RTE_LOG(ERR, PMD, "The size of hash lookup table configured " - "(%d) doesn't match the number hardware can supported " - "(%d)", reta_size, NIC_MAX_RSS_IDR_TBL_SIZE); + PMD_DRV_LOG(ERR, "The size of hash lookup table configured " + "(%u) doesn't match the number hardware can supported " + "(%u)", reta_size, NIC_MAX_RSS_IDR_TBL_SIZE); return -EINVAL; } @@ -569,8 +570,8 @@ nicvf_dev_rss_hash_update(struct rte_eth_dev *dev, if (rss_conf->rss_key && rss_conf->rss_key_len != RSS_HASH_KEY_BYTE_SIZE) { - RTE_LOG(ERR, PMD, "Hash key size mismatch %d", - rss_conf->rss_key_len); + PMD_DRV_LOG(ERR, "Hash key size mismatch %u", + rss_conf->rss_key_len); return -EINVAL; } -- 2.20.1