]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita4b8fef28bdc27424faf130f408f18c6ffc74d33
treefe657cf315e65df8a27771fc6c5359f2594b100d
parentf7fc1146b402e3249c11f33956cfde665279293f
bnx2x: cosmetics: Using ethtool_cmd_speed() API

This updates bnx2x to use the ethtool_cmd_speed() family of functions
(see c5ddb7d4 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