Spdk/lib/scsi
Shuhei Matsumoto 12ab86e24d scsi: Add helper functions to convert LUN ID between structure and integer
SPDK iSCSI target didn't convert LUN ID from integer to structure
when it sends R2T PDUs. The next patch will fix the issue. Introducing
helper functions into SCSI library and using them will be clean. Hence
this patch adds two helper functions to convert LUN ID between structure
and integer.

The logic of helper functions is derived simply from the current
implementation in SPDK.

Change-Id: I114b546cfcb44109d6cd131a1fa972f4d6bfea38
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/449962
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-04-04 04:40:28 +00:00
..
dev.c scsi: Remove the prefix spdk_ from names of private functions 2019-04-01 00:52:56 +00:00
lun.c scsi: Remove the prefix spdk_ from names of private functions 2019-04-01 00:52:56 +00:00
Makefile scsi: remove lun_db 2018-01-09 13:56:00 -05:00
port.c scsi: add iSCSI initiator port TransportID 2018-12-05 16:04:06 +00:00
scsi_bdev.c scsi: Add helper functions to convert LUN ID between structure and integer 2019-04-04 04:40:28 +00:00
scsi_internal.h scsi: Add an API to return DIF context of bdev and CDB 2019-03-08 01:21:26 +00:00
scsi_rpc.c scsi: Use spdk_json_write_named_* APIs throughout 2019-02-04 07:08:04 +00:00
scsi.c scsi: Add helper functions to convert LUN ID between structure and integer 2019-04-04 04:40:28 +00:00
task.c scsi: Remove the prefix spdk_ from names of private functions 2019-04-01 00:52:56 +00:00