ixgbe: Fix free irq process when removing device due to PCI Errors]
A message that is not in the archive (sent off-list or not yet received): 20180418175613.GA2121@korriban
PATCH 1/1 ixgbe: Fix free irq process when removing device due to PCI Errors]
Thanks Mauro, nice fix! A minor suggestion below.
Other than that, feel free to add:
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int ixgbe_close(struct net_device *netdev) · line 6683
Quoted 13 lines
[...]
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +2
-1@@ -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
Cheers,
Guilherme
Quoted 4 lines
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +0
-0ixgbe_close_suspend (adapter);ixgbe_fdir_filter_exit (adapter);
PATCH 1/1 ixgbe: Fix free irq process when removing device due to PCI Errors]
Hi Guilherme, thanks for your review, answer to your suggestion is inline.
Quoted 13 lines · Guilherme G. Piccoli
Thanks Mauro, nice fix! A minor suggestion below.
Other than that, feel free to add:Reviewed-by Guilherme G. Piccoli <[email protected]>Quoted 8 lines
[...]
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +0
-0@@ -6679,7 +6679,8 @@ int ixgbe_close(struct net_device *netdev)
Quoted 8 lines
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int ixgbe_close(struct net_device *netdev) · line 6683
Quoted 5 lines
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +2
-1ixgbe_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 theerror_stateflag? 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
Quoted 11 lines
Cheers,
Guilherme
Quoted 4 lines
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +0
-0ixgbe_close_suspend (adapter);ixgbe_fdir_filter_exit (adapter);
PATCH 1/1 ixgbe: Fix free irq process when removing device due to PCI Errors]
Perfect Mauro, thanks for answer, makes sense!
Cheers,
Guilherme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/intel-wired-lan/attachments/20180426/be3911e9/attachment.html>