aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_addr.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /include/rdma/ib_addr.h
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'include/rdma/ib_addr.h')
-rw-r--r--include/rdma/ib_addr.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/rdma/ib_addr.h b/include/rdma/ib_addr.h
index 99965395c5f..ae8c68f30f1 100644
--- a/include/rdma/ib_addr.h
+++ b/include/rdma/ib_addr.h
@@ -218,12 +218,8 @@ static inline int iboe_get_rate(struct net_device *dev)
218{ 218{
219 struct ethtool_cmd cmd; 219 struct ethtool_cmd cmd;
220 u32 speed; 220 u32 speed;
221 int err;
222 221
223 rtnl_lock(); 222 if (dev_ethtool_get_settings(dev, &cmd))
224 err = __ethtool_get_settings(dev, &cmd);
225 rtnl_unlock();
226 if (err)
227 return IB_RATE_PORT_CURRENT; 223 return IB_RATE_PORT_CURRENT;
228 224
229 speed = ethtool_cmd_speed(&cmd); 225 speed = ethtool_cmd_speed(&cmd);
@@ -281,7 +277,7 @@ static inline u16 rdma_get_vlan_id(union ib_gid *dgid)
281static inline struct net_device *rdma_vlan_dev_real_dev(const struct net_device *dev) 277static inline struct net_device *rdma_vlan_dev_real_dev(const struct net_device *dev)
282{ 278{
283 return dev->priv_flags & IFF_802_1Q_VLAN ? 279 return dev->priv_flags & IFF_802_1Q_VLAN ?
284 vlan_dev_real_dev(dev) : NULL; 280 vlan_dev_real_dev(dev) : 0;
285} 281}
286 282
287#endif /* IB_ADDR_H */ 283#endif /* IB_ADDR_H */