aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2007-02-21 23:28:05 -0500
committerRoland Dreier <rolandd@cisco.com>2007-02-21 23:28:05 -0500
commit658bcef619f50d9eb6028452ff9e1ad4a96c2af9 (patch)
tree9a282962b85bddeab3c51fae0bc1a061d0ef78c8 /drivers/infiniband
parent1812063ba3365aeb5eb9117861a7fb05432f7ed0 (diff)
IPoIB: Remove unused local_rate tracking
Now that low-level drivers handle the conversion from an absolute rate to a relative rate, there's no need for the IPoIB driver to keep track of the local port's data rate. Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib.h1
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib_multicast.c8
2 files changed, 3 insertions, 6 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib.h b/drivers/infiniband/ulp/ipoib/ipoib.h
index 2594db2030b3..fd558267d1cb 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib.h
+++ b/drivers/infiniband/ulp/ipoib/ipoib.h
@@ -219,7 +219,6 @@ struct ipoib_dev_priv {
219 219
220 union ib_gid local_gid; 220 union ib_gid local_gid;
221 u16 local_lid; 221 u16 local_lid;
222 u8 local_rate;
223 222
224 unsigned int admin_mtu; 223 unsigned int admin_mtu;
225 unsigned int mcast_mtu; 224 unsigned int mcast_mtu;
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
index b303ce6bc21e..bb2e3d5eee20 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
@@ -527,11 +527,9 @@ void ipoib_mcast_join_task(struct work_struct *work)
527 { 527 {
528 struct ib_port_attr attr; 528 struct ib_port_attr attr;
529 529
530 if (!ib_query_port(priv->ca, priv->port, &attr)) { 530 if (!ib_query_port(priv->ca, priv->port, &attr))
531 priv->local_lid = attr.lid; 531 priv->local_lid = attr.lid;
532 priv->local_rate = attr.active_speed * 532 else
533 ib_width_enum_to_int(attr.active_width);
534 } else
535 ipoib_warn(priv, "ib_query_port failed\n"); 533 ipoib_warn(priv, "ib_query_port failed\n");
536 } 534 }
537 535