Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 658bcef6 authored by Roland Dreier's avatar Roland Dreier
Browse files

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: default avatarRoland Dreier <rolandd@cisco.com>
parent 1812063b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
+3 −5
Original line number Diff line number Diff line
@@ -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)) {
		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
		else
			ipoib_warn(priv, "ib_query_port failed\n");
	}