Netdev List
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: davem@davemloft.net, Mitch Williams <mitch.a.williams@intel.com>,
	netdev@vger.kernel.org, gospo@redhat.com, sassmann@redhat.com
Subject: Re: [net-next 04/13] i40evf: make messages less dire
Date: Fri, 06 Jun 2014 05:19:17 -0700	[thread overview]
Message-ID: <1402057157.3038.8.camel@joe-AO725> (raw)
In-Reply-To: <1402045462-10304-5-git-send-email-jeffrey.t.kirsher@intel.com>

On Fri, 2014-06-06 at 02:04 -0700, Jeff Kirsher wrote:
> Depending on the timing of what the PF driver is doing, it make take a
> few tries before the VF driver is able to communicate with the PF driver
> on init or reset recovery. In order to prevent confusion, make the most
> common messages less scary by lowering them to a less terrifying log
> level and indicate that the driver will retry.
[]
> diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c
[]
> @@ -1963,7 +1963,7 @@ static void i40evf_init_task(struct work_struct *work)
>  		}
>  		err = i40evf_check_reset_complete(hw);
>  		if (err) {
> -			dev_err(&pdev->dev, "Device is still in reset (%d)\n",
> +			dev_info(&pdev->dev, "Device is still in reset (%d), retrying\n",
>  				err);
>  			goto err;
>  		}
> @@ -1996,7 +1996,7 @@ static void i40evf_init_task(struct work_struct *work)
>  		/* aq msg sent, awaiting reply */
>  		err = i40evf_verify_api_ver(adapter);
>  		if (err) {
> -			dev_err(&pdev->dev, "Unable to verify API version (%d)\n",
> +			dev_info(&pdev->dev, "Unable to verify API version (%d), retrying\n",
>  				err);
>  			goto err;
>  		}

trivia:

It'd be nicer to reindent the multi-line statements.

CHECK: Alignment should match open parenthesis
#73: FILE: drivers/net/ethernet/intel/i40evf/i40evf_main.c:1967:
+			dev_info(&pdev->dev, "Device is still in reset (%d), retrying\n",
 				err);

CHECK: Alignment should match open parenthesis
#82: FILE: drivers/net/ethernet/intel/i40evf/i40evf_main.c:2000:
+			dev_info(&pdev->dev, "Unable to verify API version (%d), retrying\n",
 				err);

  reply	other threads:[~2014-06-06 12:19 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-06  9:04 [net-next 00/13][pull request] Intel Wired LAN Driver Updates 2014-06-06 Jeff Kirsher
2014-06-06  9:04 ` [net-next 01/13] i40e: set lan_veb index Jeff Kirsher
2014-06-06  9:04 ` [net-next 02/13] i40e: add VEB stats to ethtool Jeff Kirsher
2014-06-06  9:04 ` [net-next 03/13] i40e: print message for pre-production hardware Jeff Kirsher
2014-06-06  9:04 ` [net-next 04/13] i40evf: make messages less dire Jeff Kirsher
2014-06-06 12:19   ` Joe Perches [this message]
2014-06-06 17:23     ` Williams, Mitch A
2014-06-06  9:04 ` [net-next 05/13] i40e/i40evf: check AQ register for valid data Jeff Kirsher
2014-06-06  9:04 ` [net-next 06/13] i40e/i40evf: add Tx pre queue disable function Jeff Kirsher
2014-06-06  9:04 ` [net-next 07/13] i40e: increase reset wait time Jeff Kirsher
2014-06-06  9:04 ` [net-next 08/13] i40e: add vsi x-cast stats Jeff Kirsher
2014-06-06  9:04 ` [net-next 09/13] i40e: add xcast stats for port Jeff Kirsher
2014-06-06  9:04 ` [net-next 10/13] i40e: print full link message Jeff Kirsher
2014-06-06 12:23   ` Joe Perches
2014-06-06  9:04 ` [net-next 11/13] i40e: don't remove HMC that doesn't exist Jeff Kirsher
2014-06-06  9:04 ` [net-next 12/13] i40e: remove irqs only when they are set up Jeff Kirsher
2014-06-06  9:04 ` [net-next 13/13] i40e/i40evf: Bump build version Jeff Kirsher
2014-06-06 20:04 ` [net-next 00/13][pull request] Intel Wired LAN Driver Updates 2014-06-06 David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1402057157.3038.8.camel@joe-AO725 \
    --to=joe@perches.com \
    --cc=davem@davemloft.net \
    --cc=gospo@redhat.com \
    --cc=jeffrey.t.kirsher@intel.com \
    --cc=mitch.a.williams@intel.com \
    --cc=netdev@vger.kernel.org \
    --cc=sassmann@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox