Spdk/lib/nvmf
Jim Harris f0935084bd nvmf: set cid when failing a misordered fused command
If we don't set the cid before failing the misordered
command, we use some other random cid, causing the
initiator to think the wrong command was completed.

Fixes #2481.

For this issue, the target was completing a
previously submitted AER, not the fuzzed fused
command.  The initiator would then submit another
AER to replace the completed one, but the target
complained that the initiator sent too many AERs
since the target didn't really know it had completed
an AER so hadn't adjusted its num_aer count.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I4bd66f147086b262d0e48b8399d237e5ed3c2651
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/12452
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
2022-05-05 07:11:17 +00:00
..
ctrlr_bdev.c nvmf: make nacwu 0-based 2022-04-29 07:29:06 +00:00
ctrlr_discovery.c nvmf: fix trid comparison for discovery subsystem entries 2022-03-14 08:44:21 +00:00
ctrlr.c nvmf: make acwu 0-based based 2022-04-27 07:36:44 +00:00
fc_ls.c spelling: lib 2021-12-03 08:12:55 +00:00
fc.c nvmf/fc: call free() to the object allocated by calloc() 2022-02-28 11:08:16 +00:00
Makefile so_ver: increase all major versions 2022-01-31 15:29:56 +00:00
nvmf_fc.h spelling: lib 2021-12-03 08:12:55 +00:00
nvmf_internal.h nvmf: add internal set Controller Fatal Status API 2022-03-08 02:35:05 +00:00
nvmf_rpc.c nvmf: remove deprecated max_qpairs_per_ctrlr parameter 2022-02-15 14:38:37 +00:00
nvmf.c nvmf: pass poll group to transport during create 2022-02-23 10:05:15 +00:00
rdma.c nvmf/rdma: Use spdk allocation scheme for RDMA requests and receives 2022-04-15 07:48:23 +00:00
spdk_nvmf.map lib/nvmf : Added support for ZCOPY 2021-07-23 08:34:43 +00:00
subsystem.c nvmf: deprecate automatic discovery listener 2022-02-28 11:06:16 +00:00
tcp.c nvmf: set cid when failing a misordered fused command 2022-05-05 07:11:17 +00:00
transport.c nvmf/rdma: Improve read performance in DIF strip mode 2022-04-01 11:19:18 +00:00
transport.h nvmf/rdma: Improve read performance in DIF strip mode 2022-04-01 11:19:18 +00:00
vfio_user.c nvmf/vfio-user: remove unnecessary read barrier 2022-04-27 07:36:30 +00:00