Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 155
b: refs/heads/master
c: e6ded99
h: refs/heads/master
i:
  153: 05dcbe6
  151: bb85082
v: v3
  • Loading branch information
Roland Dreier authored and Linus Torvalds committed Apr 16, 2005
1 parent e623e72 commit 8f9c28c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 62241eb497721be7640e5d9330e60f4a88a4db46
refs/heads/master: e6ded99cbbbfef2cef537d717ad61d2f77f4dfd6
7 changes: 3 additions & 4 deletions trunk/drivers/infiniband/ulp/ipoib/ipoib_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,10 @@ static void path_rec_completion(int status,
.sl = pathrec->sl,
.port_num = priv->port
};
int path_rate = ib_sa_rate_enum_to_int(pathrec->rate);

if (ib_sa_rate_enum_to_int(pathrec->rate) > 0)
av.static_rate = (2 * priv->local_rate -
ib_sa_rate_enum_to_int(pathrec->rate) - 1) /
(priv->local_rate ? priv->local_rate : 1);
if (path_rate > 0 && priv->local_rate > path_rate)
av.static_rate = (priv->local_rate - 1) / path_rate;

ipoib_dbg(priv, "static_rate %d for local port %dX, path %dX\n",
av.static_rate, priv->local_rate,
Expand Down
7 changes: 3 additions & 4 deletions trunk/drivers/infiniband/ulp/ipoib/ipoib_multicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,12 @@ static int ipoib_mcast_join_finish(struct ipoib_mcast *mcast,
.traffic_class = mcast->mcmember.traffic_class
}
};
int path_rate = ib_sa_rate_enum_to_int(mcast->mcmember.rate);

av.grh.dgid = mcast->mcmember.mgid;

if (ib_sa_rate_enum_to_int(mcast->mcmember.rate) > 0)
av.static_rate = (2 * priv->local_rate -
ib_sa_rate_enum_to_int(mcast->mcmember.rate) - 1) /
(priv->local_rate ? priv->local_rate : 1);
if (path_rate > 0 && priv->local_rate > path_rate)
av.static_rate = (priv->local_rate - 1) / path_rate;

ipoib_dbg_mcast(priv, "static_rate %d for local port %dX, mcmember %dX\n",
av.static_rate, priv->local_rate,
Expand Down

0 comments on commit 8f9c28c

Please sign in to comment.