Spdk/lib
Daniel Verkamp 1e33a802b4 iscsi: fix layout of logout request reason field
The Logout Request reason field is the low 7 bits of byte byte 1; the
last bit of byte 1 is specified to be always 1, and we shouldn't
consider it to be part of the reason field.

The existing debug print code was parsing the reason field correctly (by
masking it against 0x7f), but it's simpler to just make the reason field
into a bitfield of the proper size; this fixes the real bug in the
reqh->reason != 0 check, which did not use the 0x7f mask.

Fixes GitHub issue #198.

Change-Id: I4813da2236c70dc1761e303b34d321750ee36626
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/378658
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ziye Yang <optimistyzy@gmail.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2017-09-22 16:11:11 -04:00
..
bdev lvol: remove page_size field from lvol store struct 2017-09-22 15:53:06 -04:00
blob blobstore: do not _spdk_bs_free before io devices are registered 2017-09-22 15:35:32 -04:00
blobfs blobfs: Make the behaviour of "delete file" as unlink. 2017-09-15 17:13:14 -04:00
conf log: Use SPDK_ERRLOG in lieu of fprintf(stderr 2017-05-09 11:28:28 -07:00
copy copy: Move asynchronous module init to event_copy 2017-06-20 13:46:37 -04:00
cunit include: Move the remainder of the code base to stdinc.h 2017-05-08 13:20:36 -07:00
env_dpdk env_dpdk: use detected include file path 2017-09-12 16:43:20 -04:00
event reactor: add context_switch_monitor RPC 2017-09-01 12:46:18 -04:00
ioat env: Rename spdk_malloc/zmalloc/realloc/free to spdk_dma_(func) 2017-05-31 15:30:27 -04:00
iscsi iscsi: fix layout of logout request reason field 2017-09-22 16:11:11 -04:00
json json: add function to write UTF-16LE strings 2017-07-12 18:12:52 -04:00
jsonrpc log: rename SPDK_TRACELOG to SPDK_DEBUGLOG 2017-08-29 13:25:58 -04:00
log log: add new parm to spdk_trace_dump() 2017-09-06 17:33:03 -04:00
lvol lvol: remove page_size field from lvol store struct 2017-09-22 15:53:06 -04:00
nbd nbd, nvmf: fix clang 4.0 packed member warnings 2017-09-07 12:15:45 -04:00
net log: remove uses of SPDK_TRACE_DEBUG 2017-08-29 15:07:13 -04:00
nvme nvme: override the default queue depth if users specified the value 2017-09-20 19:58:49 -04:00
nvmf nvmf: don't allow 0xFFFFFFFF as a NSID 2017-09-19 17:16:59 -04:00
rocksdb lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00
rpc rpc: add get_rpc_methods RPC call 2017-08-01 13:43:14 -04:00
scsi scsi: remove LUN I/O channel ref counting 2017-09-01 12:46:43 -04:00
trace lib: replace strerror with strerror_r 2017-08-15 16:47:01 -04:00
ut_mock test/mock: add pthread_self 2017-09-19 17:15:15 -04:00
util util: fail io_device unregister if foreach operations outstanding 2017-09-20 19:27:06 -04:00
vhost rpc/vhost_scsi: defer remove_scsi_dev RPC response 2017-09-22 14:13:40 -04:00
Makefile lvol: Logical volume implementation 2017-09-14 19:30:54 -04:00