Return-Path: Received: from mx1.redhat.com ([209.132.183.28]:49898 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750821AbdE3Q6I (ORCPT ); Tue, 30 May 2017 12:58:08 -0400 Date: Tue, 30 May 2017 19:58:06 +0300 From: "Michael S. Tsirkin" To: "bfields@fieldses.org" Cc: hch , Trond Myklebust , "anna.schumaker@netapp.com" , "jlayton@poochiereds.net" , "linux-nfs@vger.kernel.org" , virtualization@lists.linux-foundation.org Subject: Re: remove function pointer casts and constify function tables Message-ID: <20170530195716-mutt-send-email-mst@kernel.org> References: <20170513072557.GA14602@lst.de> <1494691819.31377.1.camel@primarydata.com> <20170515152134.GC24547@fieldses.org> <20170515154450.GA18630@lst.de> <20170523081159.GA19216@lst.de> <20170523122334.GA4298@fieldses.org> <20170526150839.GA4593@fieldses.org> <20170526150956.GB4593@fieldses.org> <20170526193133.GA9874@fieldses.org> <20170530192544-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20170530192544-mutt-send-email-mst@kernel.org> Sender: linux-nfs-owner@vger.kernel.org List-ID: On Tue, May 30, 2017 at 07:26:37PM +0300, Michael S. Tsirkin wrote: > On Fri, May 26, 2017 at 03:31:33PM -0400, bfields@fieldses.org wrote: > > Looks like the culprit is very likely d85b758f72b0 "virtio_net: fix > > support for small rings". > > > > After that patch, my NFS server VM stops responding to packets after a > > few minutes of testing. Before that patch, my server keeps working. > > > > --b. > > Others complained about that too. > I'm still trying to reproduce though. > > Meanwhile, could you please locate this line of code: > + vi->rq[i].min_buf_len = mergeable_min_buf_len(vi, vi->rq[i].vq); > > and add something like > printk(KERN_ERR, "min buf = 0x%x expected 0x%x size 0x%x big %d\n", > vi->rq[i].min_buf_len, GOOD_PACKET_LEN, > virtqueue_get_vring_size(vi->rq[i].vq), > (int)vi->big_packets); > > after it? > Then boot and capture the output. > > Thanks! > Also, can you pls print the mergeable_rx_buffer_size attribute from sysfs for this device? > -- > MST