diff options
author | David Dillow <dillowda@ornl.gov> | 2011-01-14 18:23:24 -0500 |
---|---|---|
committer | David Dillow <dillowda@ornl.gov> | 2011-03-15 19:35:05 -0400 |
commit | 4924864404d0ce2c32a6d20b27b5b6fcb31e481d (patch) | |
tree | 2157ed7ed90b1fddf4013c560467082374d7c688 /drivers/infiniband/ulp/srp/ib_srp.h | |
parent | 961e0be89a5120a1409ebc525cca6f603615a8a8 (diff) | |
download | linux-4924864404d0ce2c32a6d20b27b5b6fcb31e481d.tar.gz linux-4924864404d0ce2c32a6d20b27b5b6fcb31e481d.tar.bz2 linux-4924864404d0ce2c32a6d20b27b5b6fcb31e481d.zip |
IB/srp: allow sg_tablesize to be set for each target
Different configurations of target software allow differing max sizes of
the command IU. Allowing this to be changed per-target allows all
targets on an initiator to get an optimal setting.
We deprecate srp_sg_tablesize and replace it with cmd_sg_entries in
preparation for allowing more indirect descriptors than can fit in the
IU.
Signed-off-by: David Dillow <dillowda@ornl.gov>
Diffstat (limited to 'drivers/infiniband/ulp/srp/ib_srp.h')
-rw-r--r-- | drivers/infiniband/ulp/srp/ib_srp.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/srp/ib_srp.h b/drivers/infiniband/ulp/srp/ib_srp.h index 9dc6fc3fd894..db39dbf76216 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.h +++ b/drivers/infiniband/ulp/srp/ib_srp.h @@ -130,6 +130,8 @@ struct srp_target_port { u32 lkey; u32 rkey; enum srp_target_state state; + unsigned int max_iu_len; + unsigned int cmd_sg_cnt; /* Everything above this point is used in the hot path of * command processing. Try to keep them packed into cachelines. |