[PATCH][9/18] InfiniBand/core: add QP number to work completion struct

From: Roland Dreier
Date: Wed Jan 12 2005 - 19:58:08 EST


InfiniBand spec rev 1.2 compliance: add local qp number to
work completion structure.

Signed-off-by: Michael S. Tsirkin <mst@xxxxxxxxxxxxxx>
Signed-off-by: Roland Dreier <roland@xxxxxxxxxxx>

--- linux/drivers/infiniband/include/ib_verbs.h (revision 1466)
+++ linux/drivers/infiniband/include/ib_verbs.h (revision 1468)
@@ -352,6 +352,7 @@
u32 vendor_err;
u32 byte_len;
__be32 imm_data;
+ u32 qp_num;
u32 src_qp;
int wc_flags;
u16 pkey_index;
--- linux/drivers/infiniband/core/mad.c (revision 1466)
+++ linux/drivers/infiniband/core/mad.c (revision 1468)
@@ -2026,6 +2026,7 @@
wc.slid = IB_LID_PERMISSIVE;
wc.sl = 0;
wc.dlid_path_bits = 0;
+ wc.qp_num = IB_QP0;
local->mad_priv->header.recv_wc.wc = &wc;
local->mad_priv->header.recv_wc.mad_len =
sizeof(struct ib_mad);
--- linux/drivers/infiniband/hw/mthca/mthca_cq.c (revision 1466)
+++ linux/drivers/infiniband/hw/mthca/mthca_cq.c (revision 1468)
@@ -444,6 +444,8 @@
spin_lock(&(*cur_qp)->lock);
}

+ entry->qp_num = (*cur_qp)->qpn;
+
if (is_send) {
wq = &(*cur_qp)->sq;
wqe_index = ((be32_to_cpu(cqe->wqe) - (*cur_qp)->send_wqe_offset)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/