tg3: Allow ethtool to enable/disable loopback.
commit06c03c02ea528af0cbce50ce45ddd6a361864550
authorMahesh Bandewar <maheshb@google.com>
Sun, 8 May 2011 06:51:48 +0000 (8 06:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 May 2011 22:04:58 +0000 (12 18:04 -0400)
treeb09c7d750b47b5fdd5e69f30dcd2f6377c543ada
parentcbfd1526f6076ece92b4e2dcc0a2f1e89041b3bd
tg3: Allow ethtool to enable/disable loopback.

This patch adds tg3_set_features() to handle loopback mode. Currently the
capability is added for the devices which support internal MAC loopback mode.
So when enabled, it enables internal-MAC loopback.

Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c