]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit74b315361fee40c414a5cd005f577aaccf1d661d
tree01cd7c22a8f8b0b752d036421c69eba203174f52
parent4862111a9d17402aaf0b4bbd9e554fc278e756ef
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