Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1165778rwd; Tue, 16 May 2023 12:50:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6CTxxNjx99a8q/0Ix/lvKL6ePR9e7l1zTY4g9xwIZC4YYkD8VOLC9jZ7zCvOxz8sykxifj X-Received: by 2002:a17:902:ecc3:b0:1aa:f818:7a24 with SMTP id a3-20020a170902ecc300b001aaf8187a24mr49322752plh.1.1684266611770; Tue, 16 May 2023 12:50:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684266611; cv=none; d=google.com; s=arc-20160816; b=ZddSzYgF6l3NKjxfNzzuPSA9Fwd1+PWzeonZqm9N0hn3Rc6OyCdkzoVhCPGpabI651 cPMq/lU4nX4FeEWYKZvQhVgmOqu9TXfKYVJSsAzAoR4YyPDriHFtwnzskgeHaK63idvQ E3KiCNvkl9aOk8yv6fWrY7K4JG2yNxzl9X8J1SjEBBMNU+6b75wTnbqkpgRaRsK1E3lK TCjxZhC77nczp6oPj1IhJcOEg6Fc/xg1C5u3oPQB26KFT1+P2H2XNWI40hYNiQkAQ3Nh y8YL7jxhmVGuZdE0tc4UWCJ+1rap75F0RhWgOrVctp9mpdq0wHtEaAA8MM+viY7d/e4+ nVDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=yzZF/Uqj9Wd0fmC26xXSRySnOYC7DRfQdLxNWqeDIxE=; b=UA51+zjYHGK0Jk/O/KbSkAcLhQbv/Yq+djuSB80/4mYFV39FOFpPQRARNNwaNEFiN2 WvpLejVmq7Lu606QQdOIyujvyHZ8pQZJW6fGqz+F82B0gsT4iDHP2uKPif+4JupHwOO1 ddjsbEVXngiBvn8SRIH/brit80T/RroI7UBFTXktNKfmApY9vrOt8Wf1Dsyeym7RRFL2 VCg1Vpoi6OZ/ptJUQb4D0/Ku2PJyQV1tpLbBg5VWPJuoRiTWJ9eAAhQSp2NsV6wRBpD4 WPjc+RkiQzzxIVxA+mwTfUptqdiOWSELLz9t8bIRxeqUPpm8e5kBLuSlTlg02ObhDNdo YNjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ebHfqCqa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u15-20020a170902e80f00b001ab2337ecf5si894361plg.467.2023.05.16.12.49.59; Tue, 16 May 2023 12:50:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ebHfqCqa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229814AbjEPTg7 (ORCPT + 99 others); Tue, 16 May 2023 15:36:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjEPTg6 (ORCPT ); Tue, 16 May 2023 15:36:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C297B902E for ; Tue, 16 May 2023 12:36:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 33F9963927 for ; Tue, 16 May 2023 19:36:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 32594C4339B; Tue, 16 May 2023 19:36:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684265796; bh=OuFy3VqAIPXlxy9jiJj4Z1KMk1POVJhyIATNgEp9BiY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ebHfqCqajGW45iUzhEIDqRVSUeW5Q4Q+UyIGOYq+ywBIr6+8dJeOLg2jiHElX6GeA PTpD98AJAVJOLZQVEXLScQaV1HN6Lbm0MDqnYpShsiSPHN080dyrVNKMHk6EfIeepP gVRcpLNg0+ypamQdvttVkz6izNE95kr8fZAOzpOF5mWYwiFrad5gICIRMEEjcesbqT 2SPT7intum6X8cxdXNHuYRzDOEUB6d332yxbRvREDcAPyUHid+ZG+PTqA2pYYqzOQC GRIaWGdZOyjKXjHYKryVT45Xm5X01vMrvtoOu6o7qDHhxPGr7lI5+RsZzi0A4zBCnB IuY99sY2QJy9Q== Date: Tue, 16 May 2023 12:36:35 -0700 From: Jakub Kicinski To: Jason Wang Cc: "Michael S. Tsirkin" , davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org, maxime.coquelin@redhat.com, alvaro.karsz@solid-run.com, eperezma@redhat.com, xuanzhuo@linux.alibaba.com, david.marchand@redhat.com, netdev Subject: Re: [PATCH net-next V2 1/2] virtio-net: convert rx mode setting to use workqueue Message-ID: <20230516123635.58a20bb0@kernel.org> In-Reply-To: References: <20230413121525-mutt-send-email-mst@kernel.org> <20230414031947-mutt-send-email-mst@kernel.org> <20230510012951-mutt-send-email-mst@kernel.org> <20230515004422-mutt-send-email-mst@kernel.org> <20230515061455-mutt-send-email-mst@kernel.org> <20230516000829-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 May 2023 12:17:50 +0800 Jason Wang wrote: > > It's not reliable for other drivers but has been reliable for virtio. > > I worry some software relied on this. > > It's probably fine since some device like vhost doesn't support this > at all and we manage to survive for several years. > > > You are making good points though ... could we get some > > maintainer's feedback on this? > > That would be helpful. Jakub, any input on this? AFAIU the question is whether .ndo_set_rx_mode needs to be reliable and instantaneous? I haven't heard any complaints for it not being immediate, and most 10G+ NICs do the config via a workqueue. I even have an "intern task" to implement a workqueue in the core, for this to save the boilerplate code in the drivers.