[openib-general] [PATCH][TRIVIAL] Fix build of mad_ib.c
Tom Duffy
tduffy at sun.com
Wed Sep 8 18:48:18 PDT 2004
On Wed, 2004-09-08 at 14:47 -0700, roland at openib.org wrote:
> Change grh_flag to generic ah_flags (patch from Sean Hefty)
<snip>
> Modified: gen2/branches/roland-merge/src/linux-kernel/infiniband/core/mad_ib.c
> ===================================================================
> --- gen2/branches/roland-merge/src/linux-kernel/infiniband/core/mad_ib.c 2004-09-08 08:22:45 UTC (rev 756)
> +++ gen2/branches/roland-merge/src/linux-kernel/infiniband/core/mad_ib.c 2004-09-08 21:47:04 UTC (rev 757)
> @@ -73,11 +73,11 @@
> av.dlid = mad->dlid;
> av.port_num = mad->port;
> av.src_path_bits = 0;
> - av.grh_flag = mad->has_grh;
> + av.ah_flags = mad->has_grh ? IB_AH_GRH : 0;
> av.sl = mad->sl;
> av.static_rate = 0;
>
> - if (av.grh_flag) {
> + if (mad.has_grh) {
> av.grh.sgid_index = mad->gid_index;
> av.grh.flow_label = mad->flow_label;
> av.grh.hop_limit = mad->hop_limit;
Pointers, references, who's counting ;)
Index: drivers/infiniband/core/mad_ib.c
===================================================================
--- drivers/infiniband/core/mad_ib.c (revision 757)
+++ drivers/infiniband/core/mad_ib.c (working copy)
@@ -77,7 +77,7 @@
av.sl = mad->sl;
av.static_rate = 0;
- if (mad.has_grh) {
+ if (mad->has_grh) {
av.grh.sgid_index = mad->gid_index;
av.grh.flow_label = mad->flow_label;
av.grh.hop_limit = mad->hop_limit;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20040908/f1b82e57/attachment.sig>
More information about the general
mailing list