diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2015-08-10 17:09:05 -0700 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-08-30 18:12:38 -0400 |
commit | 330179f2fa93c1c6c41a90c7deabc98e363018e5 (patch) | |
tree | 6b738e3ffbcc08bcaae7f72843269680d01366e3 /drivers/infiniband/ulp/srp/ib_srp.h | |
parent | 002f15674c84fb4c38ed5237c1e7235e09c033f0 (diff) | |
download | linux-next-330179f2fa93c1c6c41a90c7deabc98e363018e5.tar.gz |
IB/srp: Register the indirect data buffer descriptor
Instead of always using the global rkey for the indirect data
buffer descriptor, register that descriptor with the HCA if
the kernel module parameter register_always has been set to Y.
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.h')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.h b/drivers/infiniband/ulp/srp/ib_srp.h index 60a33c1de328..255b0e591aa4 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.h +++ b/drivers/infiniband/ulp/srp/ib_srp.h @@ -288,6 +288,10 @@ struct srp_map_state { struct srp_fr_desc **next; struct srp_fr_desc **end; } fr; + struct { + void **next; + void **end; + } gen; }; struct srp_direct_buf *desc; u64 *pages; |