numam-spdk/test/unit/lib/nvmf
jiaqizho ab04d59c57 ut/tcp: add nvmf incapsule data unit test
This patch is used to test the pending buffer policy
of nvme request which has incapsule data. When
group->pending_buff queue not null , we should make
sure spdk_nvmf_tcp_capsule_cmd_hdr_handle method still
can handle the request.

relate to : issues/995

We try to simulate the following manner: If there
is req waiting for the buffer in the list, the
nvme request which has incapsule data will be
handled firstly even it is added into the
pending_buf_queue. The reason is that currently,
those command will get the buffer from its own queue.

We made these test steps:

 1. submit a tcp request into spdk_nvmf_tcp_req_process
    and make sure it pause in group->pending_buff queue
 2. submit a incapsule tcp request into
    spdk_nvmf_tcp_capsule_cmd_hdr_handle method , and
    this method will call the spdk_nvmf_tcp_req_process
    method to handle this request.
 3. check whether the incapsule tcp request is handled
    correctly. and check the group->pending_buff queue
    remain.

Signed-off-by: jiaqizho <jiaqi.zhou@intel.com>
Change-Id: I85fcbb49e309e1203b4b308115e3bfefc0fcba2a
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/472665
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Community-CI: Broadcom SPDK FC-NVMe CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2019-12-10 17:33:11 +00:00
..
ctrlr_bdev.c nvme: allow setting of completion queue CDW0 2019-10-24 18:02:38 +00:00
ctrlr_discovery.c test/nvmf: Remove event function stubs 2019-09-18 16:45:05 +00:00
ctrlr.c nvme: replace cdw11 with specific union strucutre 2019-12-06 14:43:41 +00:00
fc_ls.c nvmf: Add context parameter to new_qpair() callback 2019-10-17 16:29:36 +00:00
fc.c ut/nvmf/fc: Fix FC unit test build with RDMA 2019-10-02 22:30:29 +00:00
rdma.c rdma: Add tests for spdk_nvmf_rdma_request_parse_sgl with metadata 2019-10-18 17:28:52 +00:00
subsystem.c nvme: replace cdw10 with specific union command 2019-12-06 14:43:41 +00:00
tcp.c ut/tcp: add nvmf incapsule data unit test 2019-12-10 17:33:11 +00:00
Makefile NVMe-oF Target: Add FC transport. 2019-07-26 22:17:17 +00:00