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 57D02C6FD20 for ; Mon, 6 Mar 2023 18:13:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230296AbjCFSNY (ORCPT ); Mon, 6 Mar 2023 13:13:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231211AbjCFSNR (ORCPT ); Mon, 6 Mar 2023 13:13:17 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E3386E684; Mon, 6 Mar 2023 10:12:41 -0800 (PST) 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 D1A7C6106E; Mon, 6 Mar 2023 18:12:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8F52C433D2; Mon, 6 Mar 2023 18:12:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1678126356; bh=iySKmJ2aWJ/TsVLFiMQb56CpiMGPq3mQumEWAGlMXX8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IcCI3f17HnlxnVSWclCOnPr1C9yWyov/hgwRiShE4z+60/AoCWYrf6oBO0EF9KCe/ 8ilkXVOh5xmEvsA7aOQBOaXMR+i7M9deOJdSghsBUm0MC/Wrhyd8E50Ku0GT3zLF0/ QxPCjGeKIA3DBqboIiWQDQJn0DZ5aD1XX9uZNjLJt+DxNJPT1+UFZOQ/c7w0miDNkc 4CbBbsPbD7hmGeCvqXvXPE3D2imL7v/23lusMs7dMlMiqya6XRX1m8TGwAL2JVF+vK xM/ZRMSsfzBmuS5ypV7+n8lS6LJCM0TReCCxQp1cjcGw0LZSdH+VvL5iFcXdCXZWkc xE+fxYBsuuS/w== Date: Mon, 6 Mar 2023 10:12:34 -0800 From: Jakub Kicinski To: "Michael S. Tsirkin" Cc: Jason Wang , rbradford@rivosinc.com, "David S. Miller" , Eric Dumazet , Paolo Abeni , virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] virtio-net: Fix probe of virtio-net on kvmtool Message-ID: <20230306101234.08da367d@kernel.org> In-Reply-To: <20230305045249-mutt-send-email-mst@kernel.org> References: <20230223-virtio-net-kvmtool-v3-1-e038660624de@rivosinc.com> <20230301093054-mutt-send-email-mst@kernel.org> <20230302044806-mutt-send-email-mst@kernel.org> <20230303164603.7b35a76f@kernel.org> <20230305045249-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 5 Mar 2023 04:53:58 -0500 Michael S. Tsirkin wrote: > > > yes what we do work according to code. So the documentation is wrong then? > > > > It's definitely incomplete but which part are you saying is wrong? > > So it says: > 2. netdev->features set contains features which are currently enabled > for a device. > > ok so far. > But this part: > > This should be changed only by network core or in > error paths of ndo_set_features callback. > > seems to say virtio should not touch netdev->features, no? Oh, I see, yes. We should add a mention of ndo_fix_features there, and perhaps "see Part II for more information"?. The sentence reads like someone was trying to make sure drivers don't silently change features without calling netdev_update_features().