Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1318679rwd; Wed, 31 May 2023 12:11:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Ct9R1Ds6jn+YwrK7wy5g0IQWYJmVjCMskIQMhlOPkPFJXMADK9mJPYls0eAQWb8WLcyqi X-Received: by 2002:a05:6358:4315:b0:123:3ea3:2bd2 with SMTP id r21-20020a056358431500b001233ea32bd2mr3128684rwc.32.1685560270759; Wed, 31 May 2023 12:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685560270; cv=none; d=google.com; s=arc-20160816; b=eX0yEqAujVrRi4Ithl8aBk1uQtV8bs80Y4gF4Of7PYKQ3hvjCX7VNEmWT51B0bXS1V gb8g3HWVzJCjB5In5KsxC5u9nj4diadoUFl/nquHd7hcSk1Q6ncMETsj/LjeWf6JzPwa kKkdE3HyzhTG/kKMzq9A/XuTJkuHNYoXEC9nH7PrVIPhPgXfrK7m8arQO44DuV4DeLcj OGfNIVPlwomyNX9WsU9lmd5xw18NphXXqfljtMm+k18F5ne8X68in3WkOa6WHRoJiOLr HnHJt7SbBnqNPkIRs92JDmSBcqa7tPaTj22cYs3KRIaxnkNcctLvPSPedHmRQyj1Vf+I 12+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=buUAsYpGe1TJXNZB34CE38fSA+mccfTTNpY51fAljHE=; b=G9hDGEXxdDhbeM5IX9SNAaQg+QDVt/uwVPBPq3+apT7nUVpAmDnFhdt2yoJ1OuDUar +8HCiYrLRVcgbw/zpWe9BM/MKwXdG5dzYd/QGTCCHa4NIz4FMalXywhvR97yX0RvTKCL 1kJ04pXgtcgatU9XyK+x7ryq9cGIijzwIoiYi1EOvj93E9x6/VzcPEnxF9ZpFUDeYPPt arGMGaB5qLGdH9r1vWAvucpljTBtywFSCfzljx6hGqs+RnfPudwNuPkd+UNMFHZk3l07 gE8bIdxU42nBzxevp4C58begmFPhbLYxAzhnwNnECIl6R2daOEYpf24QoxAWAheMvIJG 6gzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=agzLnmVv; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s191-20020a6377c8000000b0053f23ffad1asi1492290pgc.44.2023.05.31.12.10.55; Wed, 31 May 2023 12:11:10 -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=@gmail.com header.s=20221208 header.b=agzLnmVv; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229783AbjEaSda (ORCPT + 99 others); Wed, 31 May 2023 14:33:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34074 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbjEaSd3 (ORCPT ); Wed, 31 May 2023 14:33:29 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18C13B2; Wed, 31 May 2023 11:33:28 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5149b63151aso88091a12.3; Wed, 31 May 2023 11:33:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685558006; x=1688150006; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=buUAsYpGe1TJXNZB34CE38fSA+mccfTTNpY51fAljHE=; b=agzLnmVvQLyfbvlFIo2Qgm+/9TnQK2BVa/t/pucjNWa/QTUlTb4HFPlSk7pAwVrAiI e7p+ksqNewnEUQ2VRF7Nl75pQNFcQME7lZ/Jq1yn9Xhvjpaj8t8LVKJLB9lkj+FfUhhk v89zwEga0fmMo+yK98qLPvfpEswqoOcF5Jj3Jwn2YY1vPL+8rFeikuffhWFp5A4+RxVx 8+O5dzTg38qjz8pKfPazurh+aUat70x6akJFvMlKo71LaZK7LHuX5UWAgs485KbGw7RL LvXMcnD+ednbQ6DPnSFP5MqTpGy/7czqOC8Uwezqzc+kenCdy5x3DzKnOa51pjXpVeUa UMjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685558006; x=1688150006; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=buUAsYpGe1TJXNZB34CE38fSA+mccfTTNpY51fAljHE=; b=Ae5iJjxik25EZ4Z25B2Wp9WaetxIBIjalzGp59lGtXLaZlzokBQXsZRWVtgrxsJ9f7 ZSC7B0jSKq4JsDK4rVQ9Txd9DDv0e03EQWYDdueyixtmFLsDKzkL1wD1fyZGnTj7q50g elYohweqbOGHe8ZUdTNhE+dx9aalTVpmsppjIrj1R257LyET0qa4Lz/O5KHQDtXEEo1W heyViREav5CZQpc5yyh6bgicQmyoyv8iMKW3Lbs+VdJszoSHbCcK9lXLikq0eNkJupcO ccJTExX3gxAECTXSxowSQBToyHV7MghSkJfEzxIy5xnkYRyN/X8g47aDALK8lVaY7Wue XiuQ== X-Gm-Message-State: AC+VfDzmPFi43vTE+IXUbsHrhkv7nbZAIT5aL27UASjszemhgj2R/OCF Xsrv2OWpJEOBDAaLVYSKSyLwr5v2gIH0Wg== X-Received: by 2002:a17:907:ea4:b0:94f:2852:1d2b with SMTP id ho36-20020a1709070ea400b0094f28521d2bmr6787313ejc.72.1685558006031; Wed, 31 May 2023 11:33:26 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id d5-20020a170906640500b0094ef923a6ccsm9366064ejm.219.2023.05.31.11.33.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 11:33:25 -0700 (PDT) Date: Wed, 31 May 2023 21:33:23 +0300 From: Vladimir Oltean To: netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jamal Hadi Salim , Cong Wang , Jiri Pirko , Vinicius Costa Gomes , linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, Muhammad Husaini Zulkifli , Peilin Ye , Pedro Tammela Subject: [PATCH net-next 0/5] Improve the taprio qdisc's relationship with its children Message-ID: <20230531183323.eozihhbax4tzho6w@skbuf> X-Mailer: git-send-email 2.34.1 References: <20230531182758.5u5hv5leobeinxih@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230531182758.5u5hv5leobeinxih@skbuf> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Has anyone received this message? I guess at least vger and kuba@kernel.org rejected it, because I got this bounce email: kernel.org suspects your message is spam and rejected it. Error: 550 5.7.350 Remote server returned message detected as spam -> 554 5.7.1 Service unavailable; Helo command [EUR04-DB3-obe.outbound.protection.outlook.com] blocked using dbl.spamhaus.org; Error: open resolver; https://www.spamhaus.org/returnc/pub/34.216.226.155 Message rejected by: smtp.kernel.org Interestingly, if I click the link above, it says "This is not due to an issue with your email set-up", so I'm not sure what to believe... ----- Forwarded message from Vladimir Oltean ----- Date: Wed, 31 May 2023 20:39:23 +0300 From: Vladimir Oltean To: netdev@vger.kernel.org Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jamal Hadi Salim , Cong Wang , Jiri Pirko , Vinicius Costa Gomes , linux-kernel@vger.kernel.org, intel-wired-lan@lists.osuosl.org, Muhammad Husaini Zulkifli , Peilin Ye , Pedro Tammela Subject: [PATCH net-next 0/5] Improve the taprio qdisc's relationship with its children X-Mailer: git-send-email 2.34.1 Prompted by Vinicius' request to consolidate some child Qdisc dereferences in taprio: https://lore.kernel.org/netdev/87edmxv7x2.fsf@intel.com/ I remembered that I had left some unfinished work in this Qdisc, namely commit af7b29b1deaa ("Revert "net/sched: taprio: make qdisc_leaf() see the per-netdev-queue pfifo child qdiscs""). This patch set represents another stab at, essentially, what's in the title. Not only does taprio not properly detect when it's grafted as a non-root qdisc, but it also returns incorrect per-class stats. Eventually, Vinicius' request is addressed too, although in a different form than the one he requested (which was purely cosmetic). Review from people more experienced with Qdiscs than me would be appreciated. I tried my best to explain what I consider to be problems. I am deliberately targeting net-next because the changes are too invasive for net - they were reverted from stable once already. Vladimir Oltean (5): net/sched: taprio: don't access q->qdiscs[] in unoffloaded mode during attach() net/sched: taprio: keep child Qdisc refcount elevated at 2 in offload mode net/sched: taprio: try again to report q->qdiscs[] to qdisc_leaf() net/sched: taprio: delete misleading comment about preallocating child qdiscs net/sched: taprio: dump class stats for the actual q->qdiscs[] net/sched/sch_taprio.c | 60 ++++++++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 25 deletions(-) -- 2.34.1 ----- End forwarded message -----