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 185F6C54EE9 for ; Tue, 20 Sep 2022 21:01:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229799AbiITVB1 (ORCPT ); Tue, 20 Sep 2022 17:01:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbiITVBY (ORCPT ); Tue, 20 Sep 2022 17:01:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F4DD631A; Tue, 20 Sep 2022 14:01:23 -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 ams.source.kernel.org (Postfix) with ESMTPS id 4EA8AB82CA0; Tue, 20 Sep 2022 21:01:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8546FC433C1; Tue, 20 Sep 2022 21:01:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663707681; bh=hIR0tDbiJiurJ+3nIpD24XwlfVqjglmDIaa4a9tm0AM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=OK/05vPEfJ4K0n5Pmv+NE7pojPUuEuiCl1UAGTOVORnTN9Mmeu6t/RVp84n+0ne34 Csl1pCEX+oJfkhqeO9TvUgK+JcwA6Kti0gL3KVHcUcpxgnWMJJB7JxvWCpkoZtBcL9 3MH4s6lp1wsoUtwOlrXChA9nQyNFQTLvR3IYyroKhBkXBHIFq2eJDGbmaZZLzbnCes MVFqpJ9QHOi6pVBAreLnQRlgCDmAB0M7Kj+tQqefv1UQaimVCvx9WXoU1BxHcgF71S /+D0mVGex+GTl033K3p4ca9M9ggUxCQUOvz6CpC2vBeeFgB9TbGabQMGaCggzs4wxg C4zseSd/9NADQ== Date: Tue, 20 Sep 2022 14:01:19 -0700 From: Jakub Kicinski To: Vladimir Oltean Cc: netdev@vger.kernel.org, Vinicius Costa Gomes , Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" , Eric Dumazet , Paolo Abeni , Voon Weifeng , Vladimir Oltean , Kurt Kanzenbach , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 net-next 7/7] net/sched: taprio: replace safety precautions with comments Message-ID: <20220920140119.481f74a3@kernel.org> In-Reply-To: <20220915105046.2404072-8-vladimir.oltean@nxp.com> References: <20220915105046.2404072-1-vladimir.oltean@nxp.com> <20220915105046.2404072-8-vladimir.oltean@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, 15 Sep 2022 13:50:46 +0300 Vladimir Oltean wrote: > The WARN_ON_ONCE() checks introduced in commit 13511704f8d7 ("net: > taprio offload: enforce qdisc to netdev queue mapping") take a small > toll on performance, but otherwise, the conditions are never expected to > happen. Replace them with comments, such that the information is still > conveyed to developers. Another option is DEBUG_NET_WARN_ON_ONCE() FWIW, you probably know..