From 9c36043576fe696416c06717918e25ae3ad31933 Mon Sep 17 00:00:00 2001 From: Ben Walker Date: Fri, 30 Aug 2019 14:18:08 -0700 Subject: [PATCH] iscsi: No longer set sock recvbuf size The socket now automatically sets the recvbuf size to 2MB, so this isn't necessary. Change-Id: Id2196f4038f6835118047233f18c0395fa3f2670 Signed-off-by: Ben Walker Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/466992 Tested-by: SPDK CI Jenkins Reviewed-by: Paul Luse Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto --- lib/iscsi/conn.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/iscsi/conn.c b/lib/iscsi/conn.c index 22cb6d6d8..e3d4dbd04 100644 --- a/lib/iscsi/conn.c +++ b/lib/iscsi/conn.c @@ -263,12 +263,6 @@ spdk_iscsi_conn_construct(struct spdk_iscsi_portal *portal, goto error_return; } - bufsize = 2 * 1024 * 1024; - rc = spdk_sock_set_recvbuf(conn->sock, bufsize); - if (rc != 0) { - SPDK_ERRLOG("spdk_sock_set_recvbuf failed\n"); - } - bufsize = 32 * 1024 * 1024 / g_spdk_iscsi.MaxConnections; if (bufsize > 2 * 1024 * 1024) { bufsize = 2 * 1024 * 1024;