tg3: Restructure tg3_test_loopback
authorMatt Carlson <mcarlson@broadcom.com>
Fri, 19 Aug 2011 13:58:22 +0000 (13:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Aug 2011 17:34:27 +0000 (10:34 -0700)
commit28a4595786a64fb51d41c0bad819256198525e49
treef1912d57e01f07b2901d2c41a7e79fef9e28f26c
parent5e5a7f371ffea4b5aeca60253f912e0b36391495
tg3: Restructure tg3_test_loopback

The tg3_test_loopback() function is starting to get more complicated as
more loopback tests are added.  This patch cleans up the code.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Reviewed-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c