]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: cleanup ethtool loopback setup code
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 16 Jun 2010 13:25:55 +0000 (13:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Jun 2010 05:12:14 +0000 (22:12 -0700)
commit46069644ca5bb2012433ee5983ac231e5d433005
tree34350fe19d0b53382060e126cdda662376d1b38a
parent3624705b5ccc152a8e72ff207374054f27f6d48e
e1000e: cleanup ethtool loopback setup code

Refactor the loopback setup code to first handle the only 10/100 PHY
supported by the driver if applicable and then handle the 1Gig PHYs in a
switch statement for PHY-specific setups.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000e/ethtool.c