Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1311701rdb; Fri, 9 Feb 2024 18:32:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXmp8Sn6bE7iOBEOQ+GVcTDnY+kK2SiV7D8rTWMAmj6W0uHkyNrX5zRnzojhvmR26Sgedp2PLHSx0Vw7DF6ZHZ4vWb2iF94JS6Wz2gq4g== X-Google-Smtp-Source: AGHT+IEUmsef2nOyAkzMBbevKooEEP2yeLoIYD5wDKFw/ZlXT9WQ91Ny5ULESInL83SERCe59ZL+ X-Received: by 2002:a17:906:138e:b0:a38:259c:1335 with SMTP id f14-20020a170906138e00b00a38259c1335mr594356ejc.44.1707532361749; Fri, 09 Feb 2024 18:32:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707532361; cv=pass; d=google.com; s=arc-20160816; b=CFIjIwjjqXEX/6RHv3wMtRqWZjDmZUunt4YsOvQg6FWcYItzHwcWIsXSVxyjrCnbSE bzvBeNY7guwcA1HA4kKftVLydd5c65YapvMYNghr2auEqPTk7eBM9lYXDd+iPrmNCD0M BnbX9Ztn3He0YFZo5tGjVGjYd3hqrnQV4PEN4nHThWXIAIDyAki+BKe1Iiulqi0QeZjr VPyToGmyzny8467p4r7ArMkeZYWO+eI51X+SaiMWQZonl5BIhbDNKWVfGLgS2J4S7xLP TzVIN5fD5QZqtaSgqOVc4lgZHiy+cJESCGIJL07tLXc+J9+CypwT7XXojCKBnA2xRni3 7qSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=CeCC1dFL4XvQA1uY2WBpPvz2B9aegmrpZYoBERA0yL4=; fh=p8fKS/pSDBBtiyiyDjnyNLWUL/exDjgSaPqzEe6gTLA=; b=kucM5S+D/PmW3LeiE17VwZJRp7V+E2cAQXbyQmsHUY2yapVHkpidgdmKBwhhYpNKwQ gxF+rSd7mIjUWG28SCS5JXCvYCDVs+eo1arPyCROe6TB3f7pfk1P9f0mYtzzFgdDjBte ZCd140UB7YVDos7/c5io/Fgn5qitns+L3WPqDOqrxiD4FWB8nN1pngQXhZ3b39jofxzC axzu3f/61U08DGYiR96pFhytZ+aoI/tl9PqLEh6D3nVNtRY5EW9JY7tKIdNyBS01hXbF 8o4RngG1BYcPVc5DcLRxl+mF49ZHJS3WIfQ9drc3JMiRgWoEGwg7wZcTL4TVJWrEpbnh Wdug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M/YR1G1J"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-60248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60248-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCXaeZgpo8KNKuO90agrROskGN90NmPxZCUewIaLs9auVr8tUxEJLIOdY08B+3Y3IfQTGUMoMeDiwMfywuXA7dqkYPFMRIV6LXfa0XE1CA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bq10-20020a170906d0ca00b00a3ba0894618si1440732ejb.911.2024.02.09.18.32.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 18:32:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="M/YR1G1J"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-60248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60248-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 534371F25B5B for ; Sat, 10 Feb 2024 02:31:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41301523D; Sat, 10 Feb 2024 02:31:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="M/YR1G1J" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 63B53366; Sat, 10 Feb 2024 02:31:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707532295; cv=none; b=SAXYSpcQrDnT8h3Il5/338AsZZB8owruBm82ainZDu3Ax/OKAXUHpPVJ/6J48vPSZShO50pX78FmNC0u2O6KAqb6nOf1ROMe+3qfMxOZKuEdQ4cLRkECqZZQUD3sXLiuFiclRkAgJXfuHqZS8b2q79sdPwNKvnSV/notPBfc1LM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707532295; c=relaxed/simple; bh=B/lPdAa1QyFMInjxuzXc0hyX6ToSI4+D9MPkWAYQwJM=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=t01m+6w6qlDGzQP9y4uaKX/a/mX49i5oq1/h39dfYLLhupulQMS4DIGuZGg7SRDfkzUJXWtPkRD0uiKniyeAQAQLceB2teLPGzDKHzUBBy1mYZ4t3DmF2h4i64jzikSUPQ0WwcqHG1jPm9PVNgi56jeACe5x7WPOXWn7/RbZ+3w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=M/YR1G1J; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1560CC433C7; Sat, 10 Feb 2024 02:31:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707532294; bh=B/lPdAa1QyFMInjxuzXc0hyX6ToSI4+D9MPkWAYQwJM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=M/YR1G1JhQNchuMT85aCDkvw/7jZKmYefBcYPekoAhbBOfX6SnHlrZG7QEpnu0ySp DlJR7K39SIvfFezJPZBHPntZPJ7km0spsMO8ojn/XIa5RkXSFlSF01YKxonfJolth/ bEgPbvei5/kGsNu8Mng9ezwSawM8v0p+ku5ykD+1RB+sF5JAe/HUJWbbqVZIyU0Pne z4yaWFOJk+tyNPvMMnsL2uP14+7jHyBdCX6gVGEP4E6WYvNDgR4twFkjpjE8SKXM77 555p1xOBzlflcx1v32UHJr4Lt4xgyysM3PV8nRHvw4LYyRHHzefqKx2UnQYlV/qlzA sznvme/24Q9DQ== Date: Fri, 9 Feb 2024 18:31:33 -0800 From: Jakub Kicinski To: Stephen Hemminger Cc: netdev@vger.kernel.org, Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Jamal Hadi Salim , Cong Wang , Jiri Pirko , "David S. Miller" , Eric Dumazet , Paolo Abeni , bpf@vger.kernel.org (open list:BPF [GENERAL] (Safe Dynamic Programs and Tools)), linux-kernel@vger.kernel.org (open list) Subject: Re: [PATCH net-next v2] net/sched: actions report errors with extack Message-ID: <20240209183133.1cc0a4f5@kernel.org> In-Reply-To: <20240209155830.448c2215@hermes.local> References: <20240205185537.216873-1-stephen@networkplumber.org> <20240208182731.682985dd@kernel.org> <20240209131119.6399c91b@hermes.local> <20240209134112.4795eb19@kernel.org> <20240209155830.448c2215@hermes.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 9 Feb 2024 15:58:30 -0800 Stephen Hemminger wrote: > > I mean that NL_REQ_ATTR_CHECK() should be more than enough by itself. > > We have full TC specs in YAML now, we can hack up a script to generate > > reverse parsing tables for iproute2 even if you don't want to go full > > YNL. > > Ok, then will take the err msg across all places using NL_REQ_ATTR_CHECK? Take _out_ ? That'd be great, yup. > Would prefer not to add the complexity of reverse parsing tables, that gets ugly fast. "reverse" is probably to strong. It's just a parse which parses the request instead of the response. ethtool CLI does it, too.