Spdk/test/unit/lib/nvmf
Seth Howell 8126509c4f rdma: replace improperly aligned buffers in requests.
It is a very rare thing for a buffer to be split over two memory
regions. In fact, it is only possible in dpdk versions where
--match-allocations is not passed as a startup parameter to dpdk but
dynamic memory allocation is enabled.

By adding a small helper function, we avoid failing an I/O because it
was assigned one of these improperly aligned buffers. Also, we try to
remove the buffer from circulation so that it doesn't get picked up
again by another request.

Also, add a unit test to catch this case.

Change-Id: Ia09865c2f77160a960571665b29c4533b11758ae
Signed-off-by: Seth Howell <seth.howell@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/467446
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
2019-09-17 19:43:01 +00:00
..
ctrlr_bdev.c ut/cunit: added missing semicolon on CU_ASSERT macros 2019-07-24 18:21:22 +00:00
ctrlr_discovery.c nvmf: don't keep a global discovery log page. 2019-09-03 00:30:59 +00:00
ctrlr.c nvmf: check HOSTNQN access right for discovery service 2019-07-24 11:25:59 +00:00
fc_ls.c nvmf/fc: Rename transport_poll_group instance in nvmf_fc_poll_group to group 2019-09-09 00:42:22 +00:00
fc.c nvmf/fc: Rename nvmf_fc_poll_group pointer held in struct to fgroup 2019-09-09 00:42:22 +00:00
rdma.c rdma: replace improperly aligned buffers in requests. 2019-09-17 19:43:01 +00:00
subsystem.c ut: move all spdk_env_* mocks to test_env.c 2019-07-18 04:21:08 +00:00
tcp.c nvmf/tcp: Use STAILQ for queued_c2h_data_tcp_req and pending_data_buf_queue 2019-08-30 16:56:46 +00:00
Makefile NVMe-oF Target: Add FC transport. 2019-07-26 22:17:17 +00:00