Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1792041rwb; Tue, 27 Sep 2022 19:21:25 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6eNWB9+7lnr8yGylQ4vDXVnqtjOrigeAAqeIpbHzg8rO87mSYNDJNnFlbsK8F1TngDWcSP X-Received: by 2002:a17:907:a43:b0:77b:ba98:d2f with SMTP id be3-20020a1709070a4300b0077bba980d2fmr26150864ejc.270.1664331685035; Tue, 27 Sep 2022 19:21:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664331685; cv=none; d=google.com; s=arc-20160816; b=UoCqhiM+b5CCsNCkZKQAnRPpFKW9dZhV/ocTM3+TQ0giTNS0HROsXAU+mxfJHakuN5 NDhsMYDkgUrpHsKTW89JgbZ8v1lGvHg6iJFL8cQ7YAIukC9n4GrCtC2waPNeqe5+GA7+ Au712NDgu5Id4KjYINWtsJsPsVYDjYpmc3Rvf7DJW5HAdGTxx3oAXrrWcyacChzltbiM ukUTpOej7mg/TCaikWxYg9f294BRUkd5nDKqypZ7N9dRn7rYl5q4hulcKNYOC1NJiBSB Fkwdu3AaWCad8rZVBp5ubU2J4bxJXzw22vV6nLxmnSpe6vW5xud8k9j9ngGvSB9eLbsX JNeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:message-id:subject:cc:to :from:date:dkim-signature; bh=Qz5cZ1dKHpFe+uznEPT4rkoMBo9Ge3E30XeFeUWy5mE=; b=BgyfyotM81qMqL9guwW3LkpIlBQNOc3SYmxe2t/cTktC1eDCyCn0Nhjo4nmk2Awr0u 3A0JcZKNCT+oUrMsKdRyPH1yGjWwJxhtRSa3VzpWmUCqo+Xv3WMtBMPXvp+mudJt71CY nbT871sochvNMde6CFNrolOOl/RZS4GYbjb0CYFNHM9vlAso6G7gkUL5rnY7/qZ+pXZf VzdOI3AlQDYDc9NWE3PADAa5aYG0sD14JC+kRg9Iqp+tvOH8uT5Kg3y5Kp4rddfIpayi VY5RPr0Jk7pcaTMJRcBojIF2noeUsI8l9G9ABvODlJ/WCfxwh+qVUytDA4ZqxJV1R+gk gZFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arista.com header.s=Arista-B header.b=E16SIa4l; 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=REJECT sp=REJECT dis=NONE) header.from=arista.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n11-20020a05640206cb00b0044efa9938d5si3078885edy.583.2022.09.27.19.20.58; Tue, 27 Sep 2022 19:21:25 -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=@arista.com header.s=Arista-B header.b=E16SIa4l; 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=REJECT sp=REJECT dis=NONE) header.from=arista.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232346AbiI1B1y (ORCPT + 99 others); Tue, 27 Sep 2022 21:27:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232171AbiI1B1w (ORCPT ); Tue, 27 Sep 2022 21:27:52 -0400 Received: from mail-vk1-xa63.google.com (mail-vk1-xa63.google.com [IPv6:2607:f8b0:4864:20::a63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA1851DCC75 for ; Tue, 27 Sep 2022 18:27:51 -0700 (PDT) Received: by mail-vk1-xa63.google.com with SMTP id b81so5780299vkf.1 for ; Tue, 27 Sep 2022 18:27:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:message-id:subject:cc:to:from:date :dkim-signature:x-gm-message-state:from:to:cc:subject:date; bh=Qz5cZ1dKHpFe+uznEPT4rkoMBo9Ge3E30XeFeUWy5mE=; b=W93jpcRr4vtZVYKX9kczoBDKZmJyaU4fi2hssmieVuPLQLKMIiTBfeA3q9a/e5YpD7 Jm5rPaCZNEXRGPtUjkful3Q4NjJgWFltCDMbDzpKeopVBy0kBeupJxWLzns94E7GXkdt +5+6XgFVPQyhxAF8i1uyzAc/DanTlMExsXgzysesNlmDGqJJoRUtm5D+aYNmucdWciHX 2Nf9DQUZt4N/gg2eiltIXsBoloC36rnZoXRB4eDzd3siKnE8Rxadp82kVcTBAsGp052W eafuryRI9Z3Tav8qec50ELDSLqS9kUWba/Luk60PWaRaamslKwzzzBHYDjb6rnV5jngy pCYg== X-Gm-Message-State: ACrzQf0ToXs1/xeTLv1SKEv1tF0tSz887+smB0C3nfRtANSbQkWbuE6a H7iut8d4d0dtOWjw6eVeMCGyitCGl/hx+/Upv/ADozCkqMFU X-Received: by 2002:a05:6122:91e:b0:3a2:e497:2484 with SMTP id j30-20020a056122091e00b003a2e4972484mr12793883vka.41.1664328471019; Tue, 27 Sep 2022 18:27:51 -0700 (PDT) Received: from smtp.aristanetworks.com (smtp.aristanetworks.com. [52.0.43.43]) by smtp-relay.gmail.com with ESMTPS id j189-20020a1fd2c6000000b003a4a4c7dc91sm320320vkg.9.2022.09.27.18.27.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Sep 2022 18:27:51 -0700 (PDT) X-Relaying-Domain: arista.com Received: from chmeee (unknown [10.95.71.70]) by smtp.aristanetworks.com (Postfix) with ESMTPS id 465A430000AD; Tue, 27 Sep 2022 18:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=Arista-B; t=1664328469; bh=Qz5cZ1dKHpFe+uznEPT4rkoMBo9Ge3E30XeFeUWy5mE=; h=Date:From:To:Cc:Subject:From; b=E16SIa4lYOPZo3XnRkH0LzvPn3MnnOt1gbxBIZFiC8tRowFKa75tR/WZqeuIpnCSQ dlRwL4ziIBBOeCqTHx79NOAVVL4SmpO6L18IAx+sqz+EC1SETjSPPWoUTSRQXtE7X7 dc8mrs/W8NbfwT18dHxHCFw26wQmH/8/5gz8N6Do= Received: from kevmitch by chmeee with local (Exim 4.96) (envelope-from ) id 1odLrX-000QfB-1L; Tue, 27 Sep 2022 18:27:47 -0700 Date: Tue, 27 Sep 2022 18:27:46 -0700 From: Kevin Mitchell To: Antoine Tenart Cc: Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: new warning caused by ("net-sysfs: update the queue counts in the unregistration path") Message-ID: Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE 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 With the inclusion of d7dac083414e ("net-sysfs: update the queue counts in the unregistration path"), we have started see the following message during one of our stress tests that brings an interface up and down while continuously trying to send out packets on it: et3_11_1 selects TX queue 0, but real number of TX queues is 0 It seems that this is a result of a race between remove_queue_kobjects() and netdev_cap_txqueue() for the last packets before setting dev->flags &= ~IFF_UP in __dev_close_many(). When this message is displayed, netdev_cap_txqueue() selects queue 0 anyway (the noop queue at this point). As it did before the above commit, that queue (which I guess is still around due to reference counting) proceeds to drop the packet and return NET_XMIT_CN. So there doesn't appear to be a functional change. However, the warning message seems to be spurious if not slightly confusing. I'm not exactly sure what the fix for this should be or if there should be one. In the meantime, we have ignored this message for this test, but was wondering if there weren't any ideas for a better solution. Thanks, Kevin