From patchwork Sun Oct 11 10:22:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Chan X-Patchwork-Id: 270140 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MIME_HEADER_CTYPE_ONLY, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, T_TVD_MIME_NO_HEADERS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F274C433DF for ; Sun, 11 Oct 2020 10:23:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E31F3207F7 for ; Sun, 11 Oct 2020 10:23:27 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="XtivgyGA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729599AbgJKKX0 (ORCPT ); Sun, 11 Oct 2020 06:23:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729379AbgJKKXX (ORCPT ); Sun, 11 Oct 2020 06:23:23 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BC2BC0613CE for ; Sun, 11 Oct 2020 03:23:23 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id y14so11208797pgf.12 for ; Sun, 11 Oct 2020 03:23:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XKCo2C5uFX/aBMpqXZi2XLFPbj1ykwoPeJiS3sWb/LE=; b=XtivgyGA/xH9CPMgn0Ue1SdOPx1g1/wxJtOyGo886rKN6CYOCDRCf3U+p4yHOSWr/T xIsZtkR4xavX6UJkaTEAcmX8Pf+be7S1kWAzpIP3suqPSpp1hcXc26GXzDzOe9nsIHQE ZIlwjF3nnNZurGdTFuNHFsv3l9aNwPqy6NEpc= 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; bh=XKCo2C5uFX/aBMpqXZi2XLFPbj1ykwoPeJiS3sWb/LE=; b=toHOwFShu69uPVCEQbYaHVlk8f/776Uouq1+R8ybGkFGBARGT8CEfVt14AbFyUe1zn 5oiu2H6zUuEVBYV4xl0i/gJZxXXCBunFh7LaFmCmcJRIfAce3dZXFTaDi8vKAxPZGeMA fZckvy1l0pdyNtz8wNXLF9j6PksJMjTtXIX5FqozWbBro66ZHM2PWE64a/BgIGqqFY7v TvuPPq+yuPbyufzHXJFD+jr6pwFLlllClGQ0FePR+Vz0YjS717MhHEkaQXFoUAlcKRaH LK27wBUF0TelMhpY89doSWDqHVo1sLJhXMws1BRj3XHkz+cilgjVgBZHxPpKqQcdatfB vN6w== X-Gm-Message-State: AOAM531MwBMKEWXJoM0GraH/YU6XX5CYZn5kBBmq5NnYMEnprLspOH+/ jPkprNTr+PwmG2w2LJsZUSffBg== X-Google-Smtp-Source: ABdhPJxS+Pj3swXd7Fv3yPtwdpusPwiJL7uVR+8E1eEQWCzW6uymNp3Vcpt8EhV2NMq7nJUUcfkuAQ== X-Received: by 2002:a17:90a:fb92:: with SMTP id cp18mr14835209pjb.228.1602411803013; Sun, 11 Oct 2020 03:23:23 -0700 (PDT) Received: from localhost.swdvt.lab.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id i1sm20155057pjh.52.2020.10.11.03.23.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Oct 2020 03:23:22 -0700 (PDT) From: Michael Chan To: davem@davemloft.net Cc: netdev@vger.kernel.org, kuba@kernel.org, gospo@broadcom.com Subject: [PATCH net-next 3/9] bnxt_en: Set driver default message level. Date: Sun, 11 Oct 2020 06:22:55 -0400 Message-Id: <1602411781-6012-4-git-send-email-michael.chan@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1602411781-6012-1-git-send-email-michael.chan@broadcom.com> References: <1602411781-6012-1-git-send-email-michael.chan@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Currently, bp->msg_enable has default value of 0. It is more useful to have the commonly used NETIF_MSG_DRV and NETIF_MSG_HW enabled by default. Reviewed-by: Edwin Peer Reviewed-by: Vasundhara Volam Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c index d4402a2cd07f..0da6a1138eee 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c @@ -69,6 +69,7 @@ #include "bnxt_debugfs.h" #define BNXT_TX_TIMEOUT (5 * HZ) +#define BNXT_DEF_MSG_ENABLE (NETIF_MSG_DRV | NETIF_MSG_HW) MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Broadcom BCM573xx network driver"); @@ -12510,6 +12511,7 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) return -ENOMEM; bp = netdev_priv(dev); + bp->msg_enable = BNXT_DEF_MSG_ENABLE; bnxt_set_max_func_irqs(bp, max_irqs); if (bnxt_vf_pciid(ent->driver_data))