]> git.baikalelectronics.ru Git - kernel.git/commit
fm10k: Cleanup exception handling for changing queues
authorAlexander Duyck <aduyck@mirantis.com>
Tue, 10 Nov 2015 17:40:30 +0000 (09:40 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 22 Dec 2015 12:50:11 +0000 (04:50 -0800)
commit325684e60f6f61f5ad55f4873534706b049c6131
treea2b966423be1f8dcf99d6f41aefe19c048ac74c2
parenteabebdf4475ee1dc523c3ef2c8fe4007f99b8040
fm10k: Cleanup exception handling for changing queues

This patch is meant to cleanup the exception handling for the paths where
we reset the interrupts and then reconfigure them.  In all of these paths
we had very different levels of exception handling.  I have updated the
driver so that all of the paths should result in a similar state if we
fail.

Specifically the driver will now unload the mailbox interrupt, free the
queue vectors and MSI-X, and then detach the interface.

In addition for any of the PCIe related resets I have added a check with
the hw_ready function to just make sure the registers are in a readable
state prior to reopening the interface.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Reviewed-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_netdev.c
drivers/net/ethernet/intel/fm10k/fm10k_pci.c