diff options
| author | Maurizio Lombardi <[email protected]> | 2025-07-14 13:37:38 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2025-07-25 01:57:00 +0000 |
| commit | 6e0f6aa44b68335df404a2df955055f416b5f2aa (patch) | |
| tree | 63653cf168957b8c9b93422bcf57e371173af07e /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | scsi: MAINTAINERS: Update hisi_sas entry (diff) | |
| download | kernel-6e0f6aa44b68335df404a2df955055f416b5f2aa.tar.gz kernel-6e0f6aa44b68335df404a2df955055f416b5f2aa.zip | |
scsi: target: core: Generate correct identifiers for PR OUT transport IDs
Fix target_parse_pr_out_transport_id() to return a string representing
the transport ID in a human-readable format (e.g., naa.xxxxxxxx...) for
various SCSI protocol types (SAS, FCP, SRP, SBP).
Previously, the function returned a pointer to the raw binary buffer,
which was incorrectly compared against human-readable strings, causing
comparisons to fail. Now, the function writes a properly formatted
string into a buffer provided by the caller. The output format depends
on the transport protocol:
* SAS: 64-bit identifier, "naa." prefix.
* FCP: 64-bit identifier, colon separated values.
* SBP: 64-bit identifier, no prefix.
* SRP: 128-bit identifier, "0x" prefix.
* iSCSI: IQN string.
Signed-off-by: Maurizio Lombardi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Dmitry Bogdanov <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
