Target/iscsi: Fix sendtargets response pdu for iser transport
authorSagi Grimberg <sagig@mellanox.com>
Tue, 10 Jun 2014 15:27:59 +0000 (18:27 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 11 Jun 2014 18:52:39 +0000 (11:52 -0700)
commit22c7aaa57e80853b4904a46c18f97db0036a3b97
tree480f5c1c0277c263e03e2c039e5c03b3fe3303ca
parente0546fc1ba66c90cb38a5764357366267d3e58e4
Target/iscsi: Fix sendtargets response pdu for iser transport

In case the transport is iser we should not include the
iscsi target info in the sendtargets text response pdu.
This causes sendtargets response to include the target
info twice.

Modify iscsit_build_sendtargets_response to filter
transport types that don't match.

Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Reported-by: Slava Shwartsman <valyushash@gmail.com>
Cc: stable@vger.kernel.org # 3.11+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/isert/ib_isert.c
drivers/target/iscsi/iscsi_target.c
include/target/iscsi/iscsi_transport.h