From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Sender: List-Post: List-Help: List-Unsubscribe: List-Subscribe: Received: from lists.oasis-open.org (oasis-open.org [10.110.1.242]) by lists.oasis-open.org (Postfix) with ESMTP id D86229865F9 for ; Thu, 22 Sep 2022 09:27:00 +0000 (UTC) Date: Thu, 22 Sep 2022 05:26:51 -0400 From: "Michael S. Tsirkin" Message-ID: <20220922052233-mutt-send-email-mst@kernel.org> References: <20220907103420-mutt-send-email-mst@kernel.org> <20220907141447-mutt-send-email-mst@kernel.org> <20220907151026-mutt-send-email-mst@kernel.org> <20220907152156-mutt-send-email-mst@kernel.org> <20220907153425-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 In-Reply-To: Subject: [virtio-dev] Re: [PATCH v5 2/2] virtio-net: use mtu size as buffer length for big packets Content-Type: text/plain; charset=us-ascii Content-Disposition: inline To: Parav Pandit Cc: Gavin Li , "stephen@networkplumber.org" , "davem@davemloft.net" , "jesse.brandeburg@intel.com" , "kuba@kernel.org" , "sridhar.samudrala@intel.com" , "jasowang@redhat.com" , "loseweigh@gmail.com" , "netdev@vger.kernel.org" , "virtualization@lists.linux-foundation.org" , "virtio-dev@lists.oasis-open.org" , Gavi Teitz , Xuan Zhuo , Si-Wei Liu List-ID: On Wed, Sep 07, 2022 at 07:51:38PM +0000, Parav Pandit wrote: > > > From: Michael S. Tsirkin > > Sent: Wednesday, September 7, 2022 3:36 PM > > > > On Wed, Sep 07, 2022 at 07:27:16PM +0000, Parav Pandit wrote: > > > > > > > From: Michael S. Tsirkin > > > > Sent: Wednesday, September 7, 2022 3:24 PM > > > > > > > > On Wed, Sep 07, 2022 at 07:18:06PM +0000, Parav Pandit wrote: > > > > > > > > > > > From: Michael S. Tsirkin > > > > > > Sent: Wednesday, September 7, 2022 3:12 PM > > > > > > > > > > > > Because of shallow queue of 16 entries deep. > > > > > > > > > > > > but why is the queue just 16 entries? > > > > > I explained the calculation in [1] about 16 entries. > > > > > > > > > > [1] > > > > > > > > > > > https://lore.kernel.org/netdev/PH0PR12MB54812EC7F4711C1EA4CAA119DC > > > > 419@ > > > > > PH0PR12MB5481.namprd12.prod.outlook.com/ > > > > > > > > > > > does the device not support indirect? > > > > > > > > > > > Yes, indirect feature bit is disabled on the device. > > > > > > > > OK that explains it. > > > > > > So can we proceed with v6 to contain > > > (a) updated commit message and > > > (b) function name change you suggested to drop _fields suffix? > > > > (c) replace mtu = 0 with sensibly not calling the function when mtu is > > unknown. > > > > > > > And I'd like commit log to include results of perf testing > > - with indirect feature on > Which device do you suggest using for this test? AFAIK most devices support INDIRECT, e.g. don't nvidia cards do this? > > - with mtu feature off > Why is this needed when it is not touching the area of mtu being not offered? I don't really like it that instead of checking the MTU feature bit everywhere the patch sets mtu variable to 0. Because of this it wasn't all that obvious that the patch did not affect !MTU performance (the code does change). Rereading it afresh I think it's ok. But explicit check for !MTU would be better imho making it obvious we do not need to test !MTU. -- MST --------------------------------------------------------------------- To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org