tg3: Update ethtool set_settings error checks
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 25 Feb 2009 14:23:01 +0000 (14:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Feb 2009 07:16:32 +0000 (23:16 -0800)
commit7e5856bd9644e2299adbf5d0a8916f9cc56f1f36
tree2e128aa83e4ef363639bc45595547565172dc61d
parentf7b493e02101bb5a0a69a91a8b4b7b002cd60eaf
tg3: Update ethtool set_settings error checks

The ethtool interface has acquired some new enumerations since the
tg3 driver's tg3_set_settings() error checking code was written.  The
error checking code is no longer complete.  This patch rewrites the
error checking so that it is future-proofed.

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