diff options
author | Jubin John <jubin.john@intel.com> | 2016-02-14 12:45:00 -0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-03-10 20:38:12 -0500 |
commit | 721d04273a8265847612a420174bb6e9a13d8d4f (patch) | |
tree | 6c861beffdae3cc1ba3dca849c0410bdba11944f /drivers/staging/rdma/hfi1/ud.c | |
parent | c239a5b5d6617b8bdae401f86529cab76313f3e7 (diff) | |
download | linux-stable-721d04273a8265847612a420174bb6e9a13d8d4f.tar.gz linux-stable-721d04273a8265847612a420174bb6e9a13d8d4f.tar.bz2 linux-stable-721d04273a8265847612a420174bb6e9a13d8d4f.zip |
staging/rdma/hfi1: Add s_sendcontext priv field
s_sendcontext will be used to map the QPs to the send contexts
for PIO.
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/staging/rdma/hfi1/ud.c')
-rw-r--r-- | drivers/staging/rdma/hfi1/ud.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/rdma/hfi1/ud.c b/drivers/staging/rdma/hfi1/ud.c index a7118bca0d2a..1b4b191ced99 100644 --- a/drivers/staging/rdma/hfi1/ud.c +++ b/drivers/staging/rdma/hfi1/ud.c @@ -394,6 +394,7 @@ int hfi1_make_ud_req(struct rvt_qp *qp, struct hfi1_pkt_state *ps) priv->s_sc = sc5; } priv->s_sde = qp_to_sdma_engine(qp, priv->s_sc); + priv->s_sendcontext = qp_to_send_context(qp, priv->s_sc); ps->s_txreq->phdr.hdr.lrh[0] = cpu_to_be16(lrh0); ps->s_txreq->phdr.hdr.lrh[1] = cpu_to_be16(ah_attr->dlid); ps->s_txreq->phdr.hdr.lrh[2] = |