From: Sagi Grimberg Date: Tue, 2 Dec 2014 14:57:35 +0000 (+0200) Subject: iscsi,iser-target: Expose supported protection ops according to t10_pi X-Git-Tag: omap-for-v3.19/fixes-rc1~19^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23a548ee656c8ba6da8cb2412070edcd62e2ac5d;p=pandora-kernel.git iscsi,iser-target: Expose supported protection ops according to t10_pi iSER will report supported protection operations based on the tpg attribute t10_pi settings and HCA PI offload capabilities. If the HCA does not support PI offload or tpg attribute t10_pi is not set, we fall to SW PI mode. In order to do that, we move iscsit_get_sup_prot_ops after connection tpg assignment. Signed-off-by: Sagi Grimberg Cc: # v3.14+ Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed