From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: davem@davemloft.net, Shannon Nelson <shannon.nelson@intel.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>,
netdev@vger.kernel.org, gospo@redhat.com, sassmann@redhat.com
Subject: Re: [net-next 02/14] i40e: make prep_for_reset void
Date: Tue, 24 Jun 2014 18:03:59 +0400 [thread overview]
Message-ID: <53A9854F.8020405@cogentembedded.com> (raw)
In-Reply-To: <1403570858-13548-3-git-send-email-jeffrey.t.kirsher@intel.com>
Hello.
On 06/24/2014 04:47 AM, Jeff Kirsher wrote:
> From: Shannon Nelson <shannon.nelson@intel.com>
> The return from i40e_prep_for_reset() was being ignored by almost all
> its callers. The one place it wasn't ignored could have caused a silent
> and confusing failure of the driver to finish a reset. Since we really
> are doing a rebuild anyway, ignore this last case as well and simply
> make the function a void type.
> Change-ID: Ia4fed7f903d39a6c47c5722625a53e59c3f7ed53
> Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
> ---
> drivers/net/ethernet/intel/i40e/i40e_main.c | 17 ++++++-----------
> 1 file changed, 6 insertions(+), 11 deletions(-)
> diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
> index b167fc2..0a68065 100644
> --- a/drivers/net/ethernet/intel/i40e/i40e_main.c
> +++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
[...]
> @@ -5636,13 +5636,11 @@ static int i40e_prep_for_reset(struct i40e_pf *pf)
> /* call shutdown HMC */
> if (hw->hmc.hmc_obj) {
> ret = i40e_shutdown_lan_hmc(hw);
> - if (ret) {
> + if (ret)
> dev_warn(&pf->pdev->dev,
> "shutdown_lan_hmc failed: %d\n", ret);
> - clear_bit(__I40E_RESET_RECOVERY_PENDING, &pf->state);
> - }
> }
> - return ret;
> + return;
*return* at the end of function not needed.
> }
>
> /**
WBR, Sergei
next prev parent reply other threads:[~2014-06-24 14:03 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-24 0:47 [net-next 00/14][pull request] Intel Wired LAN Driver Updates 2014-06-23 Jeff Kirsher
2014-06-24 0:47 ` [net-next 01/14] i40e: Stop the VF device after setting its MAC address Jeff Kirsher
2014-06-24 0:47 ` [net-next 02/14] i40e: make prep_for_reset void Jeff Kirsher
2014-06-24 14:03 ` Sergei Shtylyov [this message]
2014-06-24 0:47 ` [net-next 03/14] i40e: Add PF reset when Malicious driver event for PF Jeff Kirsher
2014-06-24 14:11 ` Sergei Shtylyov
2014-06-24 0:47 ` [net-next 04/14] i40e: warn on newer/older firmware API rev Jeff Kirsher
2014-06-24 0:47 ` [net-next 05/14] i40e: fix a stray print message Jeff Kirsher
2014-06-24 0:47 ` [net-next 06/14] i40e: Fix ethtool coalesce settings Jeff Kirsher
2014-06-24 0:47 ` [net-next 07/14] i40e/i40evf: remove reserved type Jeff Kirsher
2014-06-24 0:47 ` [net-next 08/14] i40e: Add ablitity to enable/disable link from set_link_restart_an Jeff Kirsher
2014-06-24 0:47 ` [net-next 09/14] i40e: use WoL flag when setting LAA Jeff Kirsher
2014-06-24 0:47 ` [net-next 10/14] i40e: allow user to set LAA again Jeff Kirsher
2014-06-24 0:47 ` [net-next 11/14] i40e: reapply LAA after reset Jeff Kirsher
2014-06-24 0:47 ` [net-next 12/14] i40e: no pf reset at pci remove Jeff Kirsher
2014-06-24 0:47 ` [net-next 13/14] i40e: Bypass timeout recovery level 0 so as to not cause MDD Jeff Kirsher
2014-06-24 0:47 ` [net-next 14/14] i40e/i40evf: Bump i40e to 0.4.17 and i40evf to 0.9.36 Jeff Kirsher
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=53A9854F.8020405@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=davem@davemloft.net \
--cc=gospo@redhat.com \
--cc=jeffrey.t.kirsher@intel.com \
--cc=netdev@vger.kernel.org \
--cc=sassmann@redhat.com \
--cc=shannon.nelson@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.