From: "Michael S. Tsirkin" <mst@mellanox.co.il>
To: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Andrew Morton <akpm@osdl.org>
Cc: "Michael S. Tsirkin" <mst@mellanox.co.il>,
openib-general@openib.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org
Subject: [PATCH] IB/mthca: fix static rate returned by mthca_ah_query
Date: Mon, 10 Jul 2006 14:06:18 +0300 [thread overview]
Message-ID: <20060710110618.GC24705@mellanox.co.il> (raw)
Andrew,
this has been out for a couple of days - could you drop this into -mm /
push this along to Linus, please?
----- Forwarded message from "Michael S. Tsirkin" <mst@mellanox.co.il> -----
Please review:
git://www.mellanox.co.il/~git/infiniband mst-for-2.6.18
This has the following patch:
IB/mthca: fix static rate returned by mthca_ah_query
--
commit 8b9395d3b67af87ce4c218af06a259a8af246d75
Author: Jack Morgenstein <jackm@mellanox.co.il>
Date: Thu Jul 6 19:33:25 2006 +0300
mthca_ah_query returs the static rate of the address handle in internal mthc
format. fix it to use rate encoding from enum ib_rate, which is what users
expect.
Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Index: latest/drivers/infiniband/hw/mthca/mthca_av.c
===================================================================
--- latest.orig/drivers/infiniband/hw/mthca/mthca_av.c 2006-07-02 18:00:34.000000000 +0300
+++ latest/drivers/infiniband/hw/mthca/mthca_av.c 2006-07-05 13:50:06.000000000 +0300
@@ -303,9 +303,10 @@ int mthca_ah_query(struct ib_ah *ibah, s
memset(attr, 0, sizeof *attr);
attr->dlid = be16_to_cpu(ah->av->dlid);
attr->sl = be32_to_cpu(ah->av->sl_tclass_flowlabel) >> 28;
- attr->static_rate = ah->av->msg_sr & 0x7;
- attr->src_path_bits = ah->av->g_slid & 0x7F;
attr->port_num = be32_to_cpu(ah->av->port_pd) >> 24;
+ attr->static_rate = mthca_rate_to_ib(dev, ah->av->msg_sr & 0x7,
+ attr->port_num);
+ attr->src_path_bits = ah->av->g_slid & 0x7F;
attr->ah_flags = mthca_ah_grh_present(ah) ? IB_AH_GRH : 0;
if (attr->ah_flags) {
--
MST
reply other threads:[~2006-07-10 11:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060710110618.GC24705@mellanox.co.il \
--to=mst@mellanox.co.il \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=openib-general@openib.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®