]> git.baikalelectronics.ru Git - kernel.git/commit
iscsi,iser-target: Expose supported protection ops according to t10_pi
authorSagi Grimberg <sagig@mellanox.com>
Tue, 2 Dec 2014 14:57:35 +0000 (16:57 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 13 Dec 2014 07:32:26 +0000 (23:32 -0800)
commita2c9cf6c113cdf1a1c90635594db3340d0d26857
tree9aaedc8d899f08a2363293c420919b5bfae04076
parent11fd836c76d9355c7391f2c20e3db255f2d748b3
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 <sagig@mellanox.com>
Cc: <stable@vger.kernel.org> # v3.14+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c
drivers/infiniband/ulp/isert/ib_isert.h
drivers/target/iscsi/iscsi_target_login.c