From: Mauro Rodrigues <maurosr@linux.vnet.ibm.com>
To: intel-wired-lan@osuosl.org
Subject: [Intel-wired-lan] [PATCH] ixgbe: Fix free irq process when removing device due to PCI Errors]
Date: Mon, 23 Apr 2018 15:51:43 -0300 [thread overview]
Message-ID: <20180423185143.GA7337@korriban> (raw)
In-Reply-To: <f7422ddf-db30-14e6-efa9-14c4e14d9eaa@gpiccoli.net>
Hi Guilherme, thanks for your review, answer to your suggestion is
inline.
On Wed, Apr 18, 2018 at 03:14:14PM -0300, Guilherme G. Piccoli wrote:
> Thanks Mauro, nice fix! A minor suggestion below.
> Other than that, feel free to add:
>
> Reviewed-by: Guilherme G. Piccoli <kernel@gpiccoli.net>
>
> >
> > [...]
> >diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
> >index afadba9..d170de8 100644
> >--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
> >+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
> >@@ -6679,7 +6679,8 @@ int ixgbe_close(struct net_device *netdev)
> >
> > ixgbe_ptp_stop(adapter);
> >
> >- if (netif_device_present(netdev))
> >+ if (netif_device_present(netdev) ||
> >+ adapter->pdev->error_state == pci_channel_io_perm_failure)
>
> How about using pci_channel_offline() here instead of manually
> checking the error_state flag? It's a minor though heheh
So the thing here is that I want to proceed through out this path only
when the device is in pci_channle_io_perm_failure. Looking at the
function you suggested there is a third state that would return True
here which is pci_channel_io_frozen, it's also a concern that this list
of possible values can increase eventually as well, so I would rather
keep this as is.
I've just realized that I need to fix this in ixgbevf as well, so I'll
send a second version of this one soon.
Thanks,
Mauro
>
> Cheers,
>
>
> Guilherme
>
> > ixgbe_close_suspend(adapter);
> >
> > ixgbe_fdir_filter_exit(adapter);
> >
>
next prev parent reply other threads:[~2018-04-23 18:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20180418175613.GA2121@korriban>
2018-04-18 18:14 ` [Intel-wired-lan] [PATCH] ixgbe: Fix free irq process when removing device due to PCI Errors] Guilherme G. Piccoli
2018-04-23 18:51 ` Mauro Rodrigues [this message]
2018-04-26 13:40 ` Guilherme Piccoli
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=20180423185143.GA7337@korriban \
--to=maurosr@linux.vnet.ibm.com \
--cc=intel-wired-lan@osuosl.org \
/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