Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp520929imm; Fri, 10 Aug 2018 16:08:22 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwvog0I/bAFIr1w9j/hyT5Spaos5YU6uUi8nYnlq6VlJvJKrcjJs/GF9mxHv8LL30YlZe9A X-Received: by 2002:a63:c14a:: with SMTP id p10-v6mr8277519pgi.305.1533942501928; Fri, 10 Aug 2018 16:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533942501; cv=none; d=google.com; s=arc-20160816; b=waLs4E26Jv+q6d1M50jSST2BJNx52OcaKxRZiPgUZ4P/YEvHs5YK6ebxbjEqfTgZ/r IFDYQNbmA1P5rpyU4wDJavDfkPUoB4CR1ixR0jlsD5l0aQcAIen/N5pA7KwUlitwb2PL xjSRL31Liy3LXeXqa2D/4LZvcnW2E5GA2AOYaNJThtudyc3Ny0h+4NaOgvWm4tLPzIeO m+szCiAJVDgBNIqQk9Vc+XqvM7FBGyOhambMP7aRXzhEc+SzDZ0bXkw7o8Mu3riJYjuZ F8G/bIDMNKXuXr/yl59rMEu0wID2Q4yfsk2DxBI9voygoTorTDAM+DCR4/PokCXpp2rj YCKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:reply-to:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=H2xBpzp1XrfLQBiWZj/IgQgDSvkySOqC1uAopWw+c58=; b=gvhv88n1uCT1ewGm1eqeCjgYx8JKBBS3Y+p0E1BXYXGqJfv5G8urP+u5KaJCU31wB9 Lb2L/3iZz2cjU36iX7Kb8S6tC6a1jJPKlnJlhRLIh5o3nIs1tydWmuWfxlmAsG5zuuRc ftCpMTboNhzhXwUSDYRIKQDpIU5vGJ17bAiyIGQ07GUQmTItGCGDKMTtiPY3OHD8YXxh Rg47l/cN0BQke2hCRQvmABupw9Maw5gUFDDtsu177Vq/hmXOrNClqxtOd5fHPQNa3Ovw P6xETk0i/MOxpdUQQSj3EV7n6GDvBIxr1vfmJoUAbIu9nfrWlr+do6RjF8gQrgAs1A2f U2Kg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8-v6si8874978plb.381.2018.08.10.16.08.07; Fri, 10 Aug 2018 16:08:21 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727395AbeHKBjK (ORCPT + 99 others); Fri, 10 Aug 2018 21:39:10 -0400 Received: from a2nlsmtp01-04.prod.iad2.secureserver.net ([198.71.225.38]:54702 "EHLO a2nlsmtp01-04.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727263AbeHKBjJ (ORCPT ); Fri, 10 Aug 2018 21:39:09 -0400 Received: from linuxonhyperv2.linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id oGU0f4oyCq9i0oGU0fSK4h; Fri, 10 Aug 2018 16:06:13 -0700 x-originating-ip: 107.180.71.197 Received: from kys by linuxonhyperv2.linuxonhyperv.com with local (Exim 4.91) (envelope-from ) id 1foGU0-0000Z2-Pa; Fri, 10 Aug 2018 16:06:12 -0700 From: kys@linuxonhyperv.com To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, olaf@aepfle.de, apw@canonical.com, jasowang@redhat.com, sthemmin@microsoft.com, Michael.H.Kelley@microsoft.com, vkuznets@redhat.com Cc: Stephen Hemminger , "K . Y . Srinivasan" Subject: [PATCH 3/5] uio_hv_generic: increase size of receive and send buffers Date: Fri, 10 Aug 2018 23:06:09 +0000 Message-Id: <20180810230611.2114-3-kys@linuxonhyperv.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180810230611.2114-1-kys@linuxonhyperv.com> References: <20180810230520.2055-1-kys@linuxonhyperv.com> <20180810230611.2114-1-kys@linuxonhyperv.com> Reply-To: kys@microsoft.com X-CMAE-Envelope: MS4wfHsqQEKkIf7CyfGr4vNHEQvjCb0NoDYYqX5+FbVjP9iuZIYtVfTmZgyhPlx5wwey9QBdy/YyzIhm8XvmyJEyiFekESkytkXGU3e9Tydw+clrIl0CfU8K U+TSNmbW4EiD4QnRdzllapVsTIt95G2vTNRMVo6soyqizfMrsxnpr3AkPXIMhdoWlAPwzqDTs9+0Seby98c68j+SZfpEyJrBCqOH2wTqtH9jM5ORuZDv9La3 3UhjoJPqCyTuxPL+9Pq0kTRCfNslFPh3YIprh49NLAa4e5/F02qA+RLIXtUuSPsLusg5gXLE/RddXWFPEuI1pWmDe1z2yyioJi0dd9CwiuJDDwj9QB5QxW4g PV/5jXty31VZ4CK683+TkM7S/QOMTE1Z8LCyQQAinecbl/mcPDTKRrT13xRgdlbb7xfDNHcIqUXjYMsRuclvFzrD0ZOSlcBnGVoE64ivKvTVGMCKAyMv2is3 TCm6XiSkWwlYX98FlgnlR8MkYofrZIEmVwKoDiWy3fyN6rTRltaoducEOVLujR3Ge6UDA0ufFdzoAkdh3EaqaBGbh2spiybLMgL1rg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Stephen Hemminger When using DPDK there is significant performance boost by using the largest possible send and receive buffer area. Unfortunately, with UIO model there is not a good way to configure this at run time. But it is okay to have a bigger buffer available even if application only decides to use a smaller piece of it. Signed-off-by: Stephen Hemminger Signed-off-by: K. Y. Srinivasan --- drivers/uio/uio_hv_generic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/uio/uio_hv_generic.c b/drivers/uio/uio_hv_generic.c index c690d100adcd..35678d08d9d8 100644 --- a/drivers/uio/uio_hv_generic.c +++ b/drivers/uio/uio_hv_generic.c @@ -35,13 +35,13 @@ #include "../hv/hyperv_vmbus.h" -#define DRIVER_VERSION "0.02.0" +#define DRIVER_VERSION "0.02.1" #define DRIVER_AUTHOR "Stephen Hemminger " #define DRIVER_DESC "Generic UIO driver for VMBus devices" #define HV_RING_SIZE 512 /* pages */ -#define SEND_BUFFER_SIZE (15 * 1024 * 1024) -#define RECV_BUFFER_SIZE (15 * 1024 * 1024) +#define SEND_BUFFER_SIZE (16 * 1024 * 1024) +#define RECV_BUFFER_SIZE (31 * 1024 * 1024) /* * List of resources to be mapped to user space -- 2.18.0