ixgbevf: Fix ordering of shutdown to correctly disable Rx and Tx
authorEmil Tantilov <emil.s.tantilov@intel.com>
Wed, 28 Jan 2015 03:21:18 +0000 (03:21 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 6 Feb 2015 03:58:44 +0000 (19:58 -0800)
commitd9bdb57f9c9eee20835a947f2b9ece1ed2ef8485
tree01cd7c22a8f8b0b752d036421c69eba203174f52
parent39f35a370b59d65506bbfb8f9c1b9362d58b44fe
ixgbevf: Fix ordering of shutdown to correctly disable Rx and Tx

This patch updates the ordering of the shutdown path so that we attempt to
shutdown the rings more gracefully. Basically the big changes are that we
shutdown the main Rx filter in the case of Rx and we set the carrier_off
state in the case of Tx so that packets stop being delivered from outside
the driver.  Then we shut down interrupts and NAPI.  Finally we stop the
rings from performing DMA and clean them.  This is a bit more graceful than
the previous path.

CC: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c