commit | 43915c7c9a99e38406103d9c72b73edeaa19d0ff | [log] [tgz] |
---|---|---|
author | Nick Nunley <nicholasx.d.nunley@intel.com> | Wed Feb 17 01:03:58 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Wed Feb 17 13:21:36 2010 -0800 |
tree | 8bd6a84a28892e973b0e71c8baa4e68df90ed7ef | |
parent | e6bdb6fefc590ad2fb5f79e1d1d3660afbc7c8ff [diff] |
igb: only read phy specific stats if in internal phy mode There are a couple statistics registers that are not meant to be read when in SGMII/serdes mode. This patch adds a check to verify mode before reading and updating these statistics. Signed-off-by: Nicholas Nunley <nicholasx.d.nunley@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>