]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
IPoIB: Remove unused local_rate tracking
authorRoland Dreier <rolandd@cisco.com>
Thu, 22 Feb 2007 04:28:05 +0000 (20:28 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 22 Feb 2007 04:28:05 +0000 (20:28 -0800)
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>
drivers/infiniband/ulp/ipoib/ipoib.h
drivers/infiniband/ulp/ipoib/ipoib_multicast.c

index 2594db2030b3abef14ac28b9373c3b41999c7c54..fd558267d1cb4481eac786b4868863ad03334d2b 100644 (file)
@@ -219,7 +219,6 @@ struct ipoib_dev_priv {
 
        union ib_gid local_gid;
        u16          local_lid;
-       u8           local_rate;
 
        unsigned int admin_mtu;
        unsigned int mcast_mtu;
index b303ce6bc21ee6664d1471a3a99d2455e11aef2e..bb2e3d5eee20a8bb9fe502ae2dfb97112d0b97c3 100644 (file)
@@ -527,11 +527,9 @@ void ipoib_mcast_join_task(struct work_struct *work)
        {
                struct ib_port_attr attr;
 
-               if (!ib_query_port(priv->ca, priv->port, &attr)) {
-                       priv->local_lid  = attr.lid;
-                       priv->local_rate = attr.active_speed *
-                               ib_width_enum_to_int(attr.active_width);
-               } else
+               if (!ib_query_port(priv->ca, priv->port, &attr))
+                       priv->local_lid = attr.lid;
+               else
                        ipoib_warn(priv, "ib_query_port failed\n");
        }