Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1081236yba; Thu, 4 Apr 2019 04:00:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2/Rb5SRrUzq2IY0EtvAQKUj1csdroK84b9CtbL+weDJPd61DIZnlDUq5GdJxM6fXa30Ys X-Received: by 2002:a63:4e10:: with SMTP id c16mr5157460pgb.302.1554375604263; Thu, 04 Apr 2019 04:00:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554375604; cv=none; d=google.com; s=arc-20160816; b=PjQ/ua5qYsVFJ2wzFAmKWjzRj2CY+3wJNQKgphrFzVX+DoV6Sv+Aq+R7WQJ7IkxzCT lXlYNW2K1gm8FjXawwkSt+12cUx9LWPjdYqKgZM2qhEMe1zufUYPtAPTTGRAly8DYTx2 wddHXH7SIspE61j+9TONoN57n9CafQGlESQ00AtIjolvv+beMS6r9oV+rz+UHRmLHSrh pzjj7wyIXxAD5sjxyZ/BJFTNmnhysarjJW/+SLF5N857Ka78LDesM3J5cW6mQBkPRRFJ lnFys+rbvEfRvgoOxPKcYy+6Sy9Mtw9qOnSpvnqZkxzqWtUKN+VS74vnkmM6bwuGHcmn oKmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=hB+2Sds1HMlk2aj8sWxQD1+Z6zyuzu7yXzARY2aB1DI=; b=FKM1MaGvsMpEURutk5hm8ibaGvMUmalPXUPCKzmU2Y3id07xr8F+hhqxtkN9DsRvbs DI4aUHgfZAAfRuDuuo79nAqf3qEygKlF3N86r+j/+mfrUkj24IOBjyLsifoOa+9xChYo 3fwRcaygo5ap99wt9eLWror0dTD6dvwOXeZRxGSNjOLNkEtLDdSZqzlt/uvB6vppN6KI 3wjhCgvTbidsxNJ+TT+sBIyBS5hl3odg9gtnjdaSCieXisGGHbn351fYW2iW4SF7rM8G WJaeQIvNLJfwELfRAhCT0lsgnKBnRNb9HRN4oPvzkZ7kY4mnJ9cOvNXX90pbjiATLO05 /UoA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g33si12100295pgb.192.2019.04.04.03.59.49; Thu, 04 Apr 2019 04:00:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729838AbfDDK67 (ORCPT + 99 others); Thu, 4 Apr 2019 06:58:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38926 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729787AbfDDK65 (ORCPT ); Thu, 4 Apr 2019 06:58:57 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 250AB90B18; Thu, 4 Apr 2019 10:58:57 +0000 (UTC) Received: from steredhat.redhat.com (ovpn-117-25.ams2.redhat.com [10.36.117.25]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1092A1001E65; Thu, 4 Apr 2019 10:58:54 +0000 (UTC) From: Stefano Garzarella To: netdev@vger.kernel.org Cc: Jason Wang , "Michael S. Tsirkin" , Stefan Hajnoczi , kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, "David S. Miller" Subject: [PATCH RFC 4/4] vsock/virtio: increase RX buffer size to 64 KiB Date: Thu, 4 Apr 2019 12:58:38 +0200 Message-Id: <20190404105838.101559-5-sgarzare@redhat.com> In-Reply-To: <20190404105838.101559-1-sgarzare@redhat.com> References: <20190404105838.101559-1-sgarzare@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Thu, 04 Apr 2019 10:58:57 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In order to increase host -> guest throughput with large packets, we can use 64 KiB RX buffers. Signed-off-by: Stefano Garzarella --- include/linux/virtio_vsock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/virtio_vsock.h b/include/linux/virtio_vsock.h index 6d7a22cc20bf..43cce304408e 100644 --- a/include/linux/virtio_vsock.h +++ b/include/linux/virtio_vsock.h @@ -10,7 +10,7 @@ #define VIRTIO_VSOCK_DEFAULT_MIN_BUF_SIZE 128 #define VIRTIO_VSOCK_DEFAULT_BUF_SIZE (1024 * 256) #define VIRTIO_VSOCK_DEFAULT_MAX_BUF_SIZE (1024 * 256) -#define VIRTIO_VSOCK_DEFAULT_RX_BUF_SIZE (1024 * 4) +#define VIRTIO_VSOCK_DEFAULT_RX_BUF_SIZE (1024 * 64) #define VIRTIO_VSOCK_MAX_BUF_SIZE 0xFFFFFFFFUL #define VIRTIO_VSOCK_MAX_PKT_BUF_SIZE (1024 * 64) -- 2.20.1