From 9b19abae3cce12aaa5b6d0e8a9aed9d9950c8fbd Mon Sep 17 00:00:00 2001 From: Alexey Marchuk Date: Fri, 30 Oct 2020 13:00:18 +0300 Subject: [PATCH] sock/posix: Disable zcopy send by default Signed-off-by: Alexey Marchuk Change-Id: I4825c681d742946dfcf5bdc209356194766a15cd Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4978 Tested-by: SPDK CI Jenkins Reviewed-by: Tomasz Zawadzki Reviewed-by: Jim Harris --- examples/nvme/perf/perf.c | 4 ++-- module/sock/posix/posix.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/nvme/perf/perf.c b/examples/nvme/perf/perf.c index 5ca7709fd..f5ce6493d 100644 --- a/examples/nvme/perf/perf.c +++ b/examples/nvme/perf/perf.c @@ -1412,8 +1412,8 @@ static void usage(char *program_name) printf("\t"); spdk_log_usage(stdout, "-T"); printf("\t[-V enable VMD enumeration]\n"); - printf("\t[-z disable zero copy send for the given sock implementation]\n"); - printf("\t[-Z enable zero copy send for the given sock implementation. Default for posix impl]\n"); + printf("\t[-z disable zero copy send for the given sock implementation. Default for posix impl]\n"); + printf("\t[-Z enable zero copy send for the given sock implementation]\n"); printf("\t[-A IO buffer alignment. Must be power of 2 and not less than cache line (%u)]\n", SPDK_CACHE_LINE_SIZE); printf("\t[-S set the default sock impl, e.g. \"posix\"]\n"); diff --git a/module/sock/posix/posix.c b/module/sock/posix/posix.c index 534a61b54..aafdb0f1c 100644 --- a/module/sock/posix/posix.c +++ b/module/sock/posix/posix.c @@ -81,7 +81,7 @@ static struct spdk_sock_impl_opts g_spdk_posix_sock_impl_opts = { .recv_buf_size = MIN_SO_RCVBUF_SIZE, .send_buf_size = MIN_SO_SNDBUF_SIZE, .enable_recv_pipe = true, - .enable_zerocopy_send = true, + .enable_zerocopy_send = false, .enable_quickack = false, .enable_placement_id = false, };