aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rdma/hfi1/hfi.h
diff options
context:
space:
mode:
authorJubin John <jubin.john@intel.com>2016-02-14 12:46:10 -0800
committerDoug Ledford <dledford@redhat.com>2016-03-10 20:38:15 -0500
commit35f6befc8441d20724a41bafc810b7c8f5a92986 (patch)
treef2f139f6a88330c547f4db639f03f5964b9e5966 /drivers/staging/rdma/hfi1/hfi.h
parentstaging/rdma/hfi: fix CQ completion order issue (diff)
downloadlinux-dev-35f6befc8441d20724a41bafc810b7c8f5a92986.tar.xz
linux-dev-35f6befc8441d20724a41bafc810b7c8f5a92986.zip
staging/rdma/hfi1: Add qp to send context mapping for PIO
PIO send context mapping is changed from per-VL to QPN based. qp to send context mapping is done using a mapping infrastructure similar to the current vl to sdma engine mapping. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@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/hfi.h')
-rw-r--r--drivers/staging/rdma/hfi1/hfi.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/staging/rdma/hfi1/hfi.h b/drivers/staging/rdma/hfi1/hfi.h
index 43d48613d48e..4d5a18ece115 100644
--- a/drivers/staging/rdma/hfi1/hfi.h
+++ b/drivers/staging/rdma/hfi1/hfi.h
@@ -841,6 +841,12 @@ struct hfi1_devdata {
spinlock_t sc_lock;
/* Per VL data. Enough for all VLs but not all elements are set/used. */
struct per_vl_data vld[PER_VL_SEND_CONTEXTS];
+ /* lock for pio_map */
+ spinlock_t pio_map_lock;
+ /* array of kernel send contexts */
+ struct send_context **kernel_send_context;
+ /* array of vl maps */
+ struct pio_vl_map __rcu *pio_map;
/* seqlock for sc2vl */
seqlock_t sc2vl_lock;
u64 sc2vl[4];