]> git.baikalelectronics.ru Git - kernel.git/commit
igb: only read phy specific stats if in internal phy mode
authorNick Nunley <nicholasx.d.nunley@intel.com>
Wed, 17 Feb 2010 01:03:58 +0000 (01:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Feb 2010 21:21:36 +0000 (13:21 -0800)
commita0985830b2fdf4e8007afe655b574fe97a2e07c1
tree8bd6a84a28892e973b0e71c8baa4e68df90ed7ef
parent50aeea4e387d20770a070fec4e2889a3ca11e1fb
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>
drivers/net/igb/igb_main.c