Remove SO_RCVLOWAT / SO_RCVBUF, they are arbitrary and drastically affect performance. Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx> --- examples/send-zerocopy.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/send-zerocopy.c b/examples/send-zerocopy.c index 8e1242e..f400f38 100644 --- a/examples/send-zerocopy.c +++ b/examples/send-zerocopy.c @@ -237,8 +237,6 @@ static void do_setup_rx(int domain, int type, int protocol) if (fd == -1) t_error(1, errno, "socket r"); - do_setsockopt(fd, SOL_SOCKET, SO_RCVBUF, 1 << 21); - do_setsockopt(fd, SOL_SOCKET, SO_RCVLOWAT, 1 << 16); do_setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, 1); setup_sockaddr(cfg_family, str_addr, &addr); @@ -328,8 +326,6 @@ static void do_tx(struct thread_data *td, int domain, int type, int protocol) if (fd == -1) t_error(1, errno, "socket t"); - do_setsockopt(fd, SOL_SOCKET, SO_SNDBUF, 1 << 21); - if (connect(fd, (void *)&td->dst_addr, cfg_alen)) t_error(1, errno, "connect, idx %i", td->idx); -- 2.39.1