Spdk/test/unit/lib/nvmf/rdma.c
Alexey Marchuk 864d93c053 nvmf: Add check for bidirectional xfer type
RDMA target can't handle bidirectional xfer type, in debug build
it throws an assert in nvmf_rdma_setup_wr function. NVMF controller
performs checks od opcodes, but the failure happens before this
check. Add similar validation in TCP transport.

Change-Id: I14400b9c301295c0ae1d35a4330189d38aeee723
Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3436
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2020-08-04 18:27:45 +00:00
..
.gitignore test/unit: add rdma unittest file. 2018-12-04 17:13:29 +00:00
Makefile test/unit: add rdma unittest file. 2018-12-04 17:13:29 +00:00
rdma_ut.c nvmf: Add check for bidirectional xfer type 2020-08-04 18:27:45 +00:00