nvme/tcp: Fix the zero copy enablement issue.
Remove the polling group check. Because at this moment, the qpair is not added into a polling group. If we do not remove it, we will never enable zcopy feature for I/O qpair. And in sock implementmentation, we already fixed the zero copy handling if a socket is not in a polling group. See posix_sock_flush function. So we can fix this issue if we directly remove this check. Reported by: Aleksey Marchuk <alexeymar@mellanox.com> Signed-off-by: Ziye Yang <ziye.yang@intel.com> Change-Id: I969936c4b6c7f13cbfa4d6eb479010c53f3e384a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7056 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Community-CI: Mellanox Build Bot
This commit is contained in:
parent
48c057814b
commit
a620cd198f
@ -1805,7 +1805,7 @@ nvme_tcp_qpair_connect_sock(struct spdk_nvme_ctrlr *ctrlr, struct spdk_nvme_qpai
|
||||
opts.opts_size = sizeof(opts);
|
||||
spdk_sock_get_default_opts(&opts);
|
||||
opts.priority = ctrlr->trid.priority;
|
||||
opts.zcopy = !nvme_qpair_is_admin_queue(qpair) && qpair->poll_group != NULL;
|
||||
opts.zcopy = !nvme_qpair_is_admin_queue(qpair);
|
||||
tqpair->sock = spdk_sock_connect_ext(ctrlr->trid.traddr, port, NULL, &opts);
|
||||
if (!tqpair->sock) {
|
||||
SPDK_ERRLOG("sock connection error of tqpair=%p with addr=%s, port=%ld\n",
|
||||
|
Loading…
Reference in New Issue
Block a user