target/spc: Only expose PI inquiry bits when supported by fabric
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 2 Apr 2014 20:27:43 +0000 (13:27 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 7 Apr 2014 08:48:55 +0000 (01:48 -0700)
commitd2c5304c7ade0356c63e31f79a33452b3d4e3772
tree10980798b8ac3c2d073795c8416f974bedb8ca0b
parente70beee783d6977d80eede88a3394f02eabddad1
target/spc: Only expose PI inquiry bits when supported by fabric

Only expose standard INQUIRY PROTECT=1 and EVPD=0x86 TYPE1/TYPE3
PI control bits if the session + fabric support DIX PASS operations.

Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Quinn Tran <quinn.tran@qlogic.com>
Cc: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_spc.c