diff options
author | Mike Marciniszyn <mike.marciniszyn@intel.com> | 2015-11-09 19:13:59 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-11-19 16:55:37 -0800 |
commit | d7b8ba5121e874fddd09e2e953f09646594a24a8 (patch) | |
tree | 010241d7d0d3abf58b46f2d30f7fb763c5046885 /drivers/staging/rdma/hfi1/ud.c | |
parent | 0a226edd203f1209e4ee6e07a6b41a9cfd8beeb8 (diff) | |
download | linux-stable-d7b8ba5121e874fddd09e2e953f09646594a24a8.tar.gz linux-stable-d7b8ba5121e874fddd09e2e953f09646594a24a8.tar.bz2 linux-stable-d7b8ba5121e874fddd09e2e953f09646594a24a8.zip |
staging/rdma/hfi1: pre-compute sc and sde for RC/UC QPs
Now that we have a multi-threaded work queue we precomputed and store the SC
and SDE on RC and UC QPs for faster access.
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
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 5a9c784bec04..54ff1f5416d4 100644 --- a/drivers/staging/rdma/hfi1/ud.c +++ b/drivers/staging/rdma/hfi1/ud.c @@ -383,6 +383,7 @@ int hfi1_make_ud_req(struct hfi1_qp *qp) lrh0 |= (sc5 & 0xf) << 12; qp->s_sc = sc5; } + qp->s_sde = qp_to_sdma_engine(qp, qp->s_sc); qp->s_hdr->ibh.lrh[0] = cpu_to_be16(lrh0); qp->s_hdr->ibh.lrh[1] = cpu_to_be16(ah_attr->dlid); /* DEST LID */ qp->s_hdr->ibh.lrh[2] = |