bnx2x: cosmetics: Using ethtool_cmd_speed() API
authorDavid Decotigny <decot@google.com>
Thu, 14 Apr 2011 16:11:34 +0000 (16:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2011 06:28:57 +0000 (23:28 -0700)
commitb3337e4cea15beb167e8d3a70ca1023e39abb4e5
treefe657cf315e65df8a27771fc6c5359f2594b100d
parenta01c1335a308ee660518e33db03fb5f5e1dfc166
bnx2x: cosmetics: Using ethtool_cmd_speed() API

This updates bnx2x to use the ethtool_cmd_speed() family of functions
(see b11f8d8c in 2.6.27-rc3 aka. "ethtool: Expand ethtool_cmd.speed to
32 bits") to get and set the link speed via ethtool. This allows to
avoid manually accessing ethtool_cmd's speed_hi field.

Signed-off-by: David Decotigny <decot@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x/bnx2x_ethtool.c