loopback: Add fabric_prot_type attribute support
authorNicholas Bellinger <nab@linux-iscsi.org>
Sun, 8 Feb 2015 20:31:39 +0000 (12:31 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:27:45 +0000 (23:27 -0700)
commit436f4a0a99520623ef3fb994d70d2938fc9f00b6
tree61f52444f6caf4b366fc48f25288f3e364ea9df6
parent1762742f3fd276570456eb669922e34e11bd98b7
loopback: Add fabric_prot_type attribute support

This patch updates loopback to add a new fabric_prot_type TPG attribute,
used for controlling LLD level protection into LIO when the backend
device does not support T10-PI.

Also, go ahead and set DIN_PASS + DOUT_PASS so target-core knows that
it will be doing any WRITE_STRIP and READ_INSERT operations.

Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/loopback/tcm_loop.c
drivers/target/loopback/tcm_loop.h