[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>
这个提交包含在:
@@ -672,6 +672,7 @@ static umode_t iser_attr_is_visible(int param_type, int param)
|
||||
case ISCSI_PARAM_TGT_RESET_TMO:
|
||||
case ISCSI_PARAM_IFACE_NAME:
|
||||
case ISCSI_PARAM_INITIATOR_NAME:
|
||||
case ISCSI_PARAM_DISCOVERY_SESS:
|
||||
return S_IRUGO;
|
||||
default:
|
||||
return 0;
|
||||
@@ -701,7 +702,7 @@ static struct scsi_host_template iscsi_iser_sht = {
|
||||
static struct iscsi_transport iscsi_iser_transport = {
|
||||
.owner = THIS_MODULE,
|
||||
.name = "iser",
|
||||
.caps = CAP_RECOVERY_L0 | CAP_MULTI_R2T,
|
||||
.caps = CAP_RECOVERY_L0 | CAP_MULTI_R2T | CAP_TEXT_NEGO,
|
||||
/* session management */
|
||||
.create_session = iscsi_iser_session_create,
|
||||
.destroy_session = iscsi_iser_session_destroy,
|
||||
|
在新工单中引用
屏蔽一个用户