[SCSI] IB/iser: Add Discovery support
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 8 Aug 2013 10:44:29 +0000 (13:44 +0300)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 26 Aug 2013 14:53:49 +0000 (18:53 +0400)
commit6a06a4b8cff89b91cb04d3b44242658df1b3e851
treeec62488048174098e8a95faf83ef1958c02bf2de
parente1e819cc9608760e9b5d094f8198c33238b01336
[SCSI] IB/iser: Add Discovery support

To run discovery over iSER we need to advertize the CAP_TEXT_NEGO capability
towards user space. Also need to make sure the login RX buffer is posted when
SendTargets TEXT PDUs are sent. For that end, we use a setting of the
ISCSI_PARAM_DISCOVERY_SESS iscsi param as an indication that this is
discovery session.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/infiniband/ulp/iser/iscsi_iser.c
drivers/infiniband/ulp/iser/iser_initiator.c
drivers/scsi/libiscsi.c