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 B7CBCA0562; Tue, 31 Mar 2020 06:43:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3B3721C0CF; Tue, 31 Mar 2020 06:42:22 +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 183BD1C0BD for ; Tue, 31 Mar 2020 06:42:17 +0200 (CEST) Received: by mail-pj1-f68.google.com with SMTP id np9so554696pjb.4 for ; Mon, 30 Mar 2020 21:42:17 -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=kfWY8BpKtVfj3exsjUIbHGRPW5ZZLZ0U7/DrQto+CZ8=; b=kSAlGkJHpI5MytJAcf38iSF+NmDEa302khMt52sy4VRxFPjeuwlw2Ak9WMTZ6FGrF9 Cnl7h8K+e7Z+rOLRPE9AfjWGfPSptVE3KYF+cD3gThTr7faBNs/3C5sFuEXIxyy0q3cA Ag6yMTVeoRBdLi0XAi7NcXrFVYCeDHpw1zU1dPYsKYxvVz9p2c0GG4pQbYt2wNAV8bzv /heId8pjYm44+bdt7eewkqfaIos+JL+kZsyl0xVoPiBqNWSv3UgwiZu9iAhIxpXJ6fQ7 uGnBFjf3sF1bJJd6tUTxlqS6b9MW2xX70J3c0hsHACMlS3XpPdHxXqzRaCjdXKK2cUAQ z4Dw== 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=kfWY8BpKtVfj3exsjUIbHGRPW5ZZLZ0U7/DrQto+CZ8=; b=Tm90Sa5Iu41xfI5fMR6qKkvFnUfhcn5/FcdN18WjHHi7PYWEl55fg6bLXepxMi4f0N uDUi4O+9tyw4Eu8vf8ay2SBaF/0d6aPl1DhWIGDeWZB2qYtSrEdci67e3prTkPXNDmyv Qj1UTOfIEWWDtmHY75q0Xk8wBYlNyJxoPktfzFQpCHFrZQvvKB/9MOFzG+YQorn7eBtd insMS5VsQGuo1yClW4RK17V/GV8wMI3iM6kHDhROTWV6cWaNCveTHHoqGWSxfdA9sRYd dhtUdIwVUt5J2DI8AvwveCiuq0uDLDtuBKniMufWPzN56+mWVL3/J0PKy558FXsz35oa NuNQ== X-Gm-Message-State: AGi0PuZizjzhNJkvt5nIiETjdQjNr3PK2u94KRckkRJuLPER5euJ5FM+ PHDGaz319REnnKCeaBFHzI/52pxd1EaEhw== X-Google-Smtp-Source: APiQypIXUwOYzufrJuxwnTbXOssuN3rPcAPuK1OY010aFeVcI7m+nBESd/mcKk910IXOXAy8iX1Xxg== X-Received: by 2002:a17:90a:2489:: with SMTP id i9mr1585023pje.183.1585629735675; Mon, 30 Mar 2020 21:42:15 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id u129sm11417107pfb.101.2020.03.30.21.42.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 21:42:14 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , jerin.jacob@caviumnetworks.com Date: Mon, 30 Mar 2020 21:41:56 -0700 Message-Id: <20200331044156.31935-8-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200331044156.31935-1-stephen@networkplumber.org> References: <20200331044156.31935-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 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..00e8287fac38 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