e1000e: cleanup ethtool loopback setup code
commit3af50481eee6bb278da9050266ff31804e7a57d6
authorBruce Allan <bruce.w.allan@intel.com>
Wed, 16 Jun 2010 13:25:55 +0000 (16 13:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Jun 2010 05:12:14 +0000 (18 22:12 -0700)
tree34350fe19d0b53382060e126cdda662376d1b38a
parent20c0da65d72598ced2bfd4d4ca9a5aca1c93f5b9
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