target: Add protection SGLs to target_submit_cmd_map_sgls
authorNicholas Bellinger <nab@linux-iscsi.org>
Mon, 23 Dec 2013 20:38:30 +0000 (20:38 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 18 Jan 2014 09:58:09 +0000 (09:58 +0000)
commitdef2b339b422070ecb99298a80e4b15033adc0ce
tree820c7c3d2e4395ba9567e500111eb53975fe74a9
parent2ed22c9cbca61f0f696a0a1cbbb777da281bd79d
target: Add protection SGLs to target_submit_cmd_map_sgls

This patch adds support to target_submit_cmd_map_sgls() for
accepting 'sgl_prot' + 'sgl_prot_count' parameters for
DIF protection information.

Note the passed parameters are stored at se_cmd->t_prot_sg
and se_cmd->t_prot_nents respectively.

Also, update tcm_loop and vhost-scsi fabrics usage of
target_submit_cmd_map_sgls() to take into account the
new parameters.

Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/loopback/tcm_loop.c
drivers/target/target_core_transport.c
drivers/vhost/scsi.c
include/target/target_core_fabric.h