scsi: ibmvfc: Make discovery buffer per protocol channel group
authorTyrel Datwyler <tyreld@linux.ibm.com>
Thu, 21 Sep 2023 22:54:34 +0000 (17:54 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 22 Sep 2023 02:14:20 +0000 (22:14 -0400)
commit50fe1a3fddda4b25050a7e535d2d087f4ffc0d41
tree459d2959a346a97ca483ba01504d35c5754abb94
parenteb85f1d76aac7c0d0f3487aa31b9b88c0ca81929
scsi: ibmvfc: Make discovery buffer per protocol channel group

The target discovery buffer that the VIOS populates with targets is
currently a host adapter field. To facilitate the discovery of NVMe targets
as well as SCSI another discovery buffer is required. Move the discovery
buffer out of the host struct and into the ibmvfc_channels struct so that
each channels instance for a given protocol has its own discovery buffer.

Signed-off-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Link: https://lore.kernel.org/r/20230921225435.3537728-11-tyreld@linux.ibm.com
Reviewed-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ibmvscsi/ibmvfc.c
drivers/scsi/ibmvscsi/ibmvfc.h