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 256CDA0532; Wed, 22 Jan 2020 18:56:17 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 21FB42C6A; Wed, 22 Jan 2020 18:56:10 +0100 (CET) Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) by dpdk.org (Postfix) with ESMTP id 9E50F2BBE for ; Wed, 22 Jan 2020 18:56:07 +0100 (CET) Received: by mail-pj1-f66.google.com with SMTP id d15so237848pjw.1 for ; Wed, 22 Jan 2020 09:56:07 -0800 (PST) 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=x1QWBWesceyiv3X85OwiXQwsGvAqndMrEL4xTvBazsI=; b=l+WBSTkSeK5+H8WXnvAqeQhEcostncohV/lw1vq26YnbjlOmEy5vsnSpBNdQ2bt6Um SatPFLVPLsvVBgmWYQAXJeMYGWxCNOTFW+20ugeoTg1EH82xbPpf6oFgb2gsiQF9URWP s4tLckmEu00MCyOO6CKi8gfbZV96JbQnQ5jd85IQ2fuoDafru8BpyoLMPQhiMjgyKHVO +jnkunDjlbSLJjIOdUzrKzFo77efoWrM5PZ2Xj2JpyDGSEHUVguo4CJN3DiqAPTP3oV0 lCpVOoaBLh/NVjvkAvV0z6YCtirOS4OWUvM70OIUEiJ8x237TkRr2q9HiFoNVqvzsjag YfEA== 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=x1QWBWesceyiv3X85OwiXQwsGvAqndMrEL4xTvBazsI=; b=YOGEYy9MSghxkHu2CeB/w3iQs2vuKVPRpzSDTmPoOUJVOH8Bh9MMzKePuMNVP/bkBY W9Vgj4YXiT0FwFTPI2QBR2lywhTIMfqf+wjBZt4iqoX+iQcUf8RRFP7nOSq8BNcJ1xdH tqMJvk8c2vzR7CmqKZFl8EsmzaAyQ4EFDxONwmPcX0+9SKgInN5UijEaOdfc05Hu7QXI fuM/RpgJDpA/SihckTsgy32U3IfCqq21f5voyO21CKpwwXWXeD1HkEww4KHsdMlFH1Tf tGOgsDfYziqkeohy0Hz/KCWXpzkIUB46ps5uZn0Kq9MpkXG2RaaQ09W0Y2m+YJTK/jIx Xlag== X-Gm-Message-State: APjAAAXpIsmlGqZFPpFYcYzhhCIS3eiKpkNIJYvrVlbDNZ+uWvpK7M7Z 0vvmEimw4ZhrK5+ZIWOV+Io0FL1B8ZY= X-Google-Smtp-Source: APXvYqzn+aDSvEfRgeVyCTq22qL1j2PROinFfYNhxHVBEsx+a6isKbbKlV+ismrtQ8ZHuIE0wRLvyw== X-Received: by 2002:a17:902:d918:: with SMTP id c24mr12165617plz.167.1579715766297; Wed, 22 Jan 2020 09:56:06 -0800 (PST) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id a6sm44610667pgg.25.2020.01.22.09.56.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jan 2020 09:56:05 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , ajit.khaparde@broadcom.com, stable@dpdk.org Date: Wed, 22 Jan 2020 09:55:13 -0800 Message-Id: <20200122175514.26213-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200122175514.26213-1-stephen@networkplumber.org> References: <20200122175514.26213-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 1/2] net/bnxt: do not print error if stats queried before start 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" When using pktgen lots of unnecessary errors are printed because pktgen queries statistics before device is started. Fixes: 3e92fd4e4ec0 ("net/bnxt: use dynamic log type") Cc: ajit.khaparde@broadcom.com Cc: stable@dpdk.org Signed-off-by: Stephen Hemminger --- drivers/net/bnxt/bnxt_stats.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/bnxt/bnxt_stats.c b/drivers/net/bnxt/bnxt_stats.c index 20a16a629fb5..65f90e0d8588 100644 --- a/drivers/net/bnxt/bnxt_stats.c +++ b/drivers/net/bnxt/bnxt_stats.c @@ -390,10 +390,8 @@ int bnxt_stats_get_op(struct rte_eth_dev *eth_dev, return rc; memset(bnxt_stats, 0, sizeof(*bnxt_stats)); - if (!(bp->flags & BNXT_FLAG_INIT_DONE)) { - PMD_DRV_LOG(ERR, "Device Initialization not complete!\n"); + if (!(bp->flags & BNXT_FLAG_INIT_DONE)) return -EIO; - } num_q_stats = RTE_MIN(bp->rx_cp_nr_rings, (unsigned int)RTE_ETHDEV_QUEUE_STAT_CNTRS); -- 2.20.1