ethtool: cosmetic: Use ethtool ethtool_cmd_speed API
authorDavid Decotigny <decot@google.com>
Wed, 27 Apr 2011 18:32:40 +0000 (18:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Apr 2011 21:03:01 +0000 (14:03 -0700)
commit707394972093e2056e1e8cc39be19cf9bcb3e7b3
treef6dc95219bca6895adf304b79241e9d60561f8f5
parent25db0338813a8915457636b1f6abe6a28fa73f8d
ethtool: cosmetic: Use ethtool ethtool_cmd_speed API

This updates the network drivers so that they don't access the
ethtool_cmd::speed field directly, but use ethtool_cmd_speed()
instead.

For most of the drivers, these changes are purely cosmetic and don't
fix any problem, such as for those 1GbE/10GbE drivers that indirectly
call their own ethtool get_settings()/mii_ethtool_gset(). The changes
are meant to enforce code consistency and provide robustness with
future larger throughputs, at the expense of a few CPU cycles for each
ethtool operation.

All drivers compiled with make allyesconfig ion x86_64 have been
updated.

Tested: make allyesconfig on x86_64 + e1000e/bnx2x work
Signed-off-by: David Decotigny <decot@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
76 files changed:
drivers/infiniband/hw/nes/nes_nic.c
drivers/net/3c509.c
drivers/net/acenic.c
drivers/net/arm/etherh.c
drivers/net/arm/ks8695net.c
drivers/net/atl1c/atl1c_ethtool.c
drivers/net/atl1e/atl1e_ethtool.c
drivers/net/atlx/atl1.c
drivers/net/atlx/atl2.c
drivers/net/b44.c
drivers/net/bcm63xx_enet.c
drivers/net/benet/be_ethtool.c
drivers/net/bna/bnad_ethtool.c
drivers/net/bnx2.c
drivers/net/cassini.c
drivers/net/chelsio/cxgb2.c
drivers/net/cxgb3/cxgb3_main.c
drivers/net/cxgb4/cxgb4_main.c
drivers/net/cxgb4vf/cxgb4vf_main.c
drivers/net/dl2k.c
drivers/net/e1000/e1000_ethtool.c
drivers/net/e1000e/ethtool.c
drivers/net/eepro.c
drivers/net/ehea/ehea_ethtool.c
drivers/net/enc28j60.c
drivers/net/enic/enic_main.c
drivers/net/ewrk3.c
drivers/net/forcedeth.c
drivers/net/ibmveth.c
drivers/net/igb/igb_ethtool.c
drivers/net/igbvf/ethtool.c
drivers/net/ixgb/ixgb_ethtool.c
drivers/net/ixgbe/ixgbe_ethtool.c
drivers/net/ixgbevf/ethtool.c
drivers/net/mdio.c
drivers/net/mii.c
drivers/net/mlx4/en_ethtool.c
drivers/net/mv643xx_eth.c
drivers/net/myri10ge/myri10ge.c
drivers/net/natsemi.c
drivers/net/netxen/netxen_nic_ethtool.c
drivers/net/niu.c
drivers/net/ns83820.c
drivers/net/pch_gbe/pch_gbe_phy.c
drivers/net/pcmcia/smc91c92_cs.c
drivers/net/phy/phy.c
drivers/net/ps3_gelic_net.c
drivers/net/qla3xxx.c
drivers/net/qlcnic/qlcnic_ethtool.c
drivers/net/qlge/qlge_ethtool.c
drivers/net/r8169.c
drivers/net/s2io.c
drivers/net/sc92031.c
drivers/net/sfc/ethtool.c
drivers/net/sfc/mcdi_phy.c
drivers/net/sfc/tenxpress.c
drivers/net/skge.c
drivers/net/sky2.c
drivers/net/smc911x.c
drivers/net/smc91x.c
drivers/net/spider_net_ethtool.c
drivers/net/sungem.c
drivers/net/sunhme.c
drivers/net/tehuti.c
drivers/net/tg3.c
drivers/net/tulip/de2104x.c
drivers/net/tulip/uli526x.c
drivers/net/tun.c
drivers/net/typhoon.c
drivers/net/usb/catc.c
drivers/net/usb/rtl8150.c
drivers/net/veth.c
drivers/net/via-velocity.c
drivers/net/vmxnet3/vmxnet3_ethtool.c
drivers/net/vxge/vxge-ethtool.c
net/batman-adv/soft-interface.c