ixgbevf: Check register reads for adapter removal
authorMark Rustad <mark.d.rustad@intel.com>
Tue, 4 Mar 2014 03:02:34 +0000 (03:02 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 21 Mar 2014 09:19:52 +0000 (02:19 -0700)
commitdbf8b0d891bd3e0436ca17530c372b6b51d6ddab
treec29d2aee2b4adaed712e3d8c7361cda143c90845
parent388b2e4c0f09fa6f98f687b5ae8f3db6fd247e9d
ixgbevf: Check register reads for adapter removal

Check all register reads for adapter removal by checking the status
register after any register read that returns 0xFFFFFFFF. Since the
status register will never return 0xFFFFFFFF unless the adapter is
removed, such a value from a status register read confirms the
removal. Since this patch adds so much to ixgbe_read_reg, stop
inlining it, to reduce driver bloat.

Signed-off-by: Mark Rustad <mark.d.rustad@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.h
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c
drivers/net/ethernet/intel/ixgbevf/vf.h