Spdk/test/unit/lib/nvmf/tcp.c
Shuhei Matsumoto 2bc819dd52 nvmf/tcp: Use STAILQ for queued_c2h_data_tcp_req and pending_data_buf_queue
This is a small performance optimization and an effort to unify
I/O buffer management further among transports.

It is ensured that the request is the first of STAILQ when
spdk_nvmf_tcp_send_c2h_data() is called or the case
TCP_REQUEST_STATE_NEED_BUFFER is executed in spdk_nvmf_tcp_req_process().

Hence change TAILQ_REMOVE to STAILQ_REMOVE_HEAD for these two cases.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I0b195874ac22a8d5ecfb283a9865d2615b7d5912
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/466637
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2019-08-30 16:56:46 +00:00
..
.gitignore test/nvmf: Add unit tests for NVMe-oF TCP transport 2018-12-13 02:42:12 +00:00
Makefile test/nvmf: Add unit tests for NVMe-oF TCP transport 2018-12-13 02:42:12 +00:00
tcp_ut.c nvmf/tcp: Use STAILQ for queued_c2h_data_tcp_req and pending_data_buf_queue 2019-08-30 16:56:46 +00:00