From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9F1F0C433EF for ; Mon, 20 Jun 2022 09:02:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240433AbiFTJC4 (ORCPT ); Mon, 20 Jun 2022 05:02:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240404AbiFTJCv (ORCPT ); Mon, 20 Jun 2022 05:02:51 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DE72E13CD0 for ; Mon, 20 Jun 2022 02:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655715762; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jAde9gW+1E+Bg88jRc4YpK5LYKa9XhMsApgmKpLZr1g=; b=HD5YWJG44BU/X9ndXzjPs2ojfZoiUlf3gRseUgyI58n0cNb992SHs1ZzUT0PSG3bjDgZ12 xn9UMKwdBGNlf/J23lPlowTVqMpJJ9gZ4FS8gyeLV1wPLW35B1DCg06Vzj6e57KzxQtHB+ bTCPzJDl6uFWC1qcaJPORncfmKf7n5o= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-642-rt5SYEMnOzqZGcHDDZ-eUw-1; Mon, 20 Jun 2022 05:02:41 -0400 X-MC-Unique: rt5SYEMnOzqZGcHDDZ-eUw-1 Received: by mail-ed1-f69.google.com with SMTP id y15-20020a056402270f00b004356adb2ab3so4675928edd.16 for ; Mon, 20 Jun 2022 02:02:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=jAde9gW+1E+Bg88jRc4YpK5LYKa9XhMsApgmKpLZr1g=; b=acGTAO4Qw/fo+u2pVMqt3Bem/IvWpjMevZMSQYszXLf0BaGGKQGuK9J82YEcuhocZt oyrUtpHNunaNcSUQoq2O5xfEeKYglbgWWuxUxAnWEAnSQ6v+2JXbqExjgCY+NEn2imvc wvcGmIN//hQBXzTeLp6XaJdx1U472Kz3BeTQTQ5CafxO1uHpTqYO23ta33HEB1GEnBIP YlcXs/Cb98ewEK+9EyrTjX6oxFY832WYZeuN5HgnRZ5oixVu+mhiCZrKvA3s3phPkw52 r5BD0ZZgNxTm8AAhahRD9nWa4MGcg5kTbbxLRT8yg0UkeAGxkFsUp3Wb+pkqtMW7Styk 5gHQ== X-Gm-Message-State: AJIora+MP6kpnHAVgfgU5azThbohLOY5nMmk8C0oVvbE6OEHBSPKPmhn ZSY0og5rebpw2kp4+/x+xfFxX6rrE4i+xD3iCsr76AMFWt3jHmBWHi6okGQ3+cClYl7IrqInSLO y4f5YAOMsuE4wFhRl X-Received: by 2002:a50:fe0c:0:b0:435:510a:9f1f with SMTP id f12-20020a50fe0c000000b00435510a9f1fmr23840079edt.297.1655715760476; Mon, 20 Jun 2022 02:02:40 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vR73OReUjUkvQTJsfAwPok8qnZD3rOMArwZSq2BbKzkF2vuaTPU20W5RxJwXNZeljCKNGQDw== X-Received: by 2002:a50:fe0c:0:b0:435:510a:9f1f with SMTP id f12-20020a50fe0c000000b00435510a9f1fmr23840060edt.297.1655715760310; Mon, 20 Jun 2022 02:02:40 -0700 (PDT) Received: from redhat.com ([2.52.146.221]) by smtp.gmail.com with ESMTPSA id b5-20020a056402138500b00431962fe5d4sm9680017edv.77.2022.06.20.02.02.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 02:02:39 -0700 (PDT) Date: Mon, 20 Jun 2022 05:02:34 -0400 From: "Michael S. Tsirkin" To: Jason Wang Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, erwan.yvin@stericsson.com Subject: Re: [PATCH 1/3] caif_virtio: remove virtqueue_disable_cb() in probe Message-ID: <20220620050044-mutt-send-email-mst@kernel.org> References: <20220620051115.3142-1-jasowang@redhat.com> <20220620051115.3142-2-jasowang@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220620051115.3142-2-jasowang@redhat.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, Jun 20, 2022 at 01:11:13PM +0800, Jason Wang wrote: > This disabling is a just a hint with best effort, there's no guarantee > that device doesn't send notification. The driver should survive with > that, so let's remove it. > > Signed-off-by: Jason Wang I guess, but frankly this change feels gratituous, and just might uncover latent bugs. Which would be fine if we were out to find and fix them, but given this was compile-tested only, I'm not sure that's the case. > --- > drivers/net/caif/caif_virtio.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/net/caif/caif_virtio.c b/drivers/net/caif/caif_virtio.c > index 5458f57177a0..c677ded81133 100644 > --- a/drivers/net/caif/caif_virtio.c > +++ b/drivers/net/caif/caif_virtio.c > @@ -705,9 +705,6 @@ static int cfv_probe(struct virtio_device *vdev) > netdev->needed_headroom = cfv->tx_hr; > netdev->needed_tailroom = cfv->tx_tr; > > - /* Disable buffer release interrupts unless we have stopped TX queues */ > - virtqueue_disable_cb(cfv->vq_tx); > - > netdev->mtu = cfv->mtu - cfv->tx_tr; > vdev->priv = cfv; > > -- > 2.25.1