1e33a802b4
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> |
||
---|---|---|
.. | ||
linux | ||
spdk | ||
spdk_internal |