zfcp: Report scatter gather limit for DIX protection information
commit175b79f0632544d62aae72e5496c14e3e3ff2ae7
authorChristof Schmitt <christof.schmitt@de.ibm.com>
Fri, 10 Sep 2010 18:50:40 +0000 (10 20:50 +0200)
committerJens Axboe <axboe@carl.home.kernel.dk>
Fri, 10 Sep 2010 18:50:40 +0000 (10 20:50 +0200)
tree12966ef2e49689a646259c7d41b88c7a832bb23c
parent13f05c8d8e98bbdce89158bfdb2e380940695a88
zfcp: Report scatter gather limit for DIX protection information

When sending DIX integrity segments with an I/O request, the
restriction for the maximum number of segments is still the same for
the zfcp hardware. Report the new sg_prot_tablesize for the SCSI host,
so that the number of integrity segments plus the number of data
segments is not larger than the hardware limit. This results in using
half of the hardware segments for integrity data and the other half
for regular data.

Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: Jens Axboe <axboe@carl.home.kernel.dk>
drivers/s390/scsi/zfcp_scsi.c