scsi: be2iscsi: Modify IOCTL to fetch user configured IQN
authorJitendra Bhivare <jitendra.bhivare@broadcom.com>
Tue, 10 Oct 2017 10:48:16 +0000 (16:18 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Oct 2017 18:18:29 +0000 (14:18 -0400)
commit4788e732c39120e55762a7e296cf7dbdf366f44c
treee81a8b5c0deca346f1111374061e94afdb8c694d
parentc5905bf82287a9aada3e4b0b1d3425c6e1a91828
scsi: be2iscsi: Modify IOCTL to fetch user configured IQN

Add version 1 of GET_HBA_NAME to fetch port specific IQN first.
If it fails use version 0 to get the IQN.

To use this old IQN names of interfaces needs to be cleared from
the iscsiadm database.

Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/be2iscsi/be_iscsi.c
drivers/scsi/be2iscsi/be_mgmt.c
drivers/scsi/be2iscsi/be_mgmt.h