Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp37594rwb; Mon, 26 Sep 2022 14:21:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4If2Kwct1F6jPeG6sQCeb7Kv1TaZ+CJ2KTIVaKhB4b5T5Sqi3GrKaiIVHQPZfmNjLnG7xl X-Received: by 2002:a17:907:8693:b0:783:a776:ce86 with SMTP id qa19-20020a170907869300b00783a776ce86mr4697896ejc.243.1664227301471; Mon, 26 Sep 2022 14:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664227301; cv=none; d=google.com; s=arc-20160816; b=R928qg7aNQJueg8Wy9CpiVrITc2qBDCLzTewETFBomuaxY9mlHGVzFzLA0th8iywmP hl8JCAZyMOn1z8sr9DR6xjWV0nhOBNKV/pJD10j7pdF051ENY77Pv/+8LqPMNatyoAov WJwhPTiDkaJklJDMUs6ZpkSL132p4Cl8hqKlIOhU/1tA7JzIgP3CQAN1FkXWH1RXfIe2 uy4qWQpy3mSD4dT8lppSULI6tyFZFjmasiaFL19ubggrPJWz77YnGZiMUo4u7ih6+yB1 Alr5W2thrjxAOgeYVE4FzNrK0K8zoKibJkULbkf83hk64FcIE4hXAYPMX54y4iw/HQ3f 5oYg== 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=or97ymH4rjqgqt16Kq14/G1sbFI9J8xxh62Nlohm/9A=; b=vAlFJ8g/M2NNB27nrTFTjGrPCvmvRx5M6Gnaz3wO2jcHuE1gMVcihPabKVfwYoGZzl SXa9OQc3PV8AHdHEUfPdSCBgDgd5e7bWzQ2c3ob3O+H2EQ37KHfHEGZJtL3+vS37i149 xglBd8uZnDDQwyveft8eeezezwApmvqoKi0qlveNnWk6RI6pSin6p/AWJkSTusy5fGcC Ln+kdAioGl14ACnxUvF+2JA7CregLroPyuQ1+GGWoZofMhJIGiZSK1N2FLlDSZorOZ95 J+Q+TIHSjSdnpfdb+GlbYrrJixhlCXI1fPew3b0sLk5/z9twCbCt8zq+dVxuWKPIrkC+ NGUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V6CIQWY+; 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 hq20-20020a1709073f1400b007707a47c3d5si885886ejc.944.2022.09.26.14.21.16; Mon, 26 Sep 2022 14:21:41 -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=V6CIQWY+; 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 S231215AbiIZUjJ (ORCPT + 99 others); Mon, 26 Sep 2022 16:39:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231207AbiIZUid (ORCPT ); Mon, 26 Sep 2022 16:38:33 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F23A9A2AAA; Mon, 26 Sep 2022 13:38:32 -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 8499461325; Mon, 26 Sep 2022 20:38:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E79B8C433C1; Mon, 26 Sep 2022 20:38:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664224711; bh=QyJMP+QGSUxMTsVikViQMth7+3yPtv37tyQBNBwftbE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=V6CIQWY+Z37bnN8kxk+cWMBiF00KrPy8xJXN2YnVpMzSTm6hcCjIHHEXXROMJZirO +gM/0efmkvPwJWgA+1xGBk4PRPJoDGtZqTftoDRVLMga2dwAGxbVtdcsS9hzqGo66a MsSvp0IaKcwrrqBb/VKT2zjQ6/CsXdk+IEKab7UwJBqdEfBiDuNF7MQ8J9Ysw+JBKW FmPifPoCPazYJJBIbCMCz5XfmpUHkEqZPWn23PrCREcGwjSQxIHAEUOfdw/Y/gtF8u 3IjYTEYpMLE+hn2hoXsAuIrCYq2j4TzJfCFOIGQWtAFN9mFXxnrTtN/yHEJWHGDqgS lz26O2I5ef7/Q== Date: Mon, 26 Sep 2022 13:38:29 -0700 From: Jakub Kicinski To: Vladimir Oltean Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Paolo Abeni , Xiaoliang Yang , Rui Sousa , Claudiu Manoil , Alexandre Belloni , UNGLinuxDriver@microchip.com, Horatiu Vultur , Andrew Lunn , Vivien Didelot , Florian Fainelli , Michael Walle , Vinicius Costa Gomes , Maxim Kochetkov , Colin Foster , Richie Pearn , Kurt Kanzenbach , Vladimir Oltean , Jesse Brandeburg , Tony Nguyen , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Jamal Hadi Salim , Cong Wang , Jiri Pirko , Gerhard Engleder , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 net-next 01/12] net/sched: taprio: allow user input of per-tc max SDU Message-ID: <20220926133829.6bb62b8a@kernel.org> In-Reply-To: <20220923163310.3192733-2-vladimir.oltean@nxp.com> References: <20220923163310.3192733-1-vladimir.oltean@nxp.com> <20220923163310.3192733-2-vladimir.oltean@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.2 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 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 Fri, 23 Sep 2022 19:32:59 +0300 Vladimir Oltean wrote: > + if (!tb[TCA_TAPRIO_TC_ENTRY_INDEX]) { > + NL_SET_ERR_MSG_MOD(extack, "TC entry index missing"); NL_SET_ERR_ATTR_MISS() ? > + return -EINVAL; > + } > + > + tc = nla_get_u32(tb[TCA_TAPRIO_TC_ENTRY_INDEX]); > + if (tc >= TC_QOPT_MAX_QUEUE) { > + NL_SET_ERR_MSG_MOD(extack, "TC entry index out of range"); NLA_POLICY_MAX() Are you not using those on purpose? :(