net/igb/e1000/e1000e: more robust ethtool duplex/speed configuration
authorDavid Decotigny <decot@google.com>
Wed, 27 Apr 2011 18:32:43 +0000 (18:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Apr 2011 21:03:03 +0000 (14:03 -0700)
commit14ad2513ed5b709e566a853f4b515d91c5d83311
tree19ce2e6deefaa0725533612df85c51b99d2513cb
parentfbef7139a8b89a7f49ba1410593ed894b4c8b017
net/igb/e1000/e1000e: more robust ethtool duplex/speed configuration

This makes sure that one cannot request a 99Mbps full-duplex and get a
100Mbps half-duplex configuration in return due to the way the
speed/duplex parameters are handled internally.

Tested: e1000 works
Signed-off-by: David Decotigny <decot@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000/e1000.h
drivers/net/e1000/e1000_ethtool.c
drivers/net/e1000/e1000_main.c
drivers/net/e1000e/ethtool.c
drivers/net/igb/igb.h
drivers/net/igb/igb_ethtool.c
drivers/net/igb/igb_main.c