RDS does not compile on 2.6.25 and 2.6.27 kernels due to a broken
reference to a recently modified data struct.  The patch below modifies
the reference to point to the new location.

Signed-Off-By: Jon Mason <[EMAIL PROTECTED]>

diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c
index 6b3b476..9f72556 100644
--- a/net/rds/ib_recv.c
+++ b/net/rds/ib_recv.c
@@ -796,7 +796,7 @@ void rds_ib_recv_cq_comp_handler(struct ib_cq *cq, void 
*context)
        while (ib_poll_cq(cq, 1, &wc) > 0) {
                rdsdebug("wc wr_id 0x%llx status %u byte_len %u imm_data %u\n",
                         (unsigned long long)wc.wr_id, wc.status, wc.byte_len,
-                        be32_to_cpu(wc.imm_data));
+                        be32_to_cpu(wc.ex.imm_data));
                rds_ib_stats_inc(s_ib_rx_cq_event);
 
                recv = &ic->i_recvs[rds_ib_ring_oldest(&ic->i_recv_ring)];
diff --git a/net/rds/ib_send.c b/net/rds/ib_send.c
index 865301a..43d3faa 100644
--- a/net/rds/ib_send.c
+++ b/net/rds/ib_send.c
@@ -195,7 +195,7 @@ void rds_ib_send_cq_comp_handler(struct ib_cq *cq, void 
*context)
        while (ib_poll_cq(cq, 1, &wc) > 0 ) {
                rdsdebug("wc wr_id 0x%llx status %u byte_len %u imm_data %u\n",
                         (unsigned long long)wc.wr_id, wc.status, wc.byte_len,
-                        be32_to_cpu(wc.imm_data));
+                        be32_to_cpu(wc.ex.imm_data));
                rds_ib_stats_inc(s_ib_tx_cq_event);
 
                if (wc.wr_id == RDS_IB_ACK_WR_ID) {
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to