Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1315605rdb; Fri, 9 Feb 2024 18:46:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWsR42tsLB/tqyh+0k/cV7wP6+6FOEAlVUh0pmQU4Q0S8Qz9tYSKgRMGez//7QKiFOjR0uXQOetjy9B/3FL88lfc5SeZH6qMECUlDmAWQ== X-Google-Smtp-Source: AGHT+IHV3Wg4LYO8mtK/I+hRvgnret0xOxl7AymK6FOsZfpT/PTIN7ojD28T8uoIh94baBeugCRL X-Received: by 2002:a17:90a:1fc8:b0:296:cc9e:89a0 with SMTP id z8-20020a17090a1fc800b00296cc9e89a0mr858750pjz.38.1707533175647; Fri, 09 Feb 2024 18:46:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707533175; cv=pass; d=google.com; s=arc-20160816; b=DOpaXIUcRlN5wqI3lsL8WizLn+fVG9P5GWXnSy+ouIjlzJKcksLkdUwgzFPanhvkLs OriM7Bjw2fuz/iqCUzNLNU9zIuTAVnrsPBugGG7KoFEbk8SEfe3EWfRJlHGmWjsJgM4E vSK7G8fwcUD+5kE6uTuBIAfAq5Y+5ngi3/Cmxi1WOw5yJTfxKaUIjqCTJ96IfFIaGRMG jALCI7K/OU5BnGsF+1HXy54KZvl5sYwWLgXyV+/JEmBVI+ejvYQvB7r1UPeFkEnyVi+z 4eRpNvQiGNWPtw9csf5U2aqVEGh6qooyjvYqcNCgao9KF6vJI62PH/MDIheVaNERctz/ 5hMg== 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=juvAKGT5CeRrHs5S/LFrLMDdPScLSP5NQP+Ax181rF0=; fh=bhsVTAlEqmqfbY/rG3THe1g7izcpnRDMpjaBmo8sfU4=; b=wk4MY+ZEmTJtScVSnvRopeO1TSDnXjyDto6me4zMfmjWVWMxSFK3umJPIDy9C696oE CCf78HIzokpTv39I13XfjgSeGoqa16rjGPfP6Bao1eA7xS1YyTrmzEN4BM3+mUlmGHzG P7uQBTGBdaHLOk6a8rtf+4QZ14dmXZypcr82K4OLFtsD0CvNZ+ghq6UryBTO5VAQ4lxW eB4aeimpCvxajhXP7LrDzwtpBxlROznt07Hg+j+bbBb2K3pDA4ZaIVJLvZHCu5a7eHXK +A2PYXYdD5aTkWjLXCN3m9TCsaMXhi7m9Wyt45B6JHo18C1MbvxRqjMUsNRC2AOJ559F UC7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b=FsV23qRh; arc=pass (i=1 spf=pass spfdomain=networkplumber.org dkim=pass dkdomain=networkplumber-org.20230601.gappssmtp.com dmarc=pass fromdomain=networkplumber.org); spf=pass (google.com: domain of linux-kernel+bounces-60251-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60251-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.org X-Forwarded-Encrypted: i=2; AJvYcCWh6oTDmkMAo9n1GUgp+SQiKVnI4Hs0bF/cJuSv2P+dzNyKr7jnI4NzGmx4LgOEXA42g3A3b9GszdbWtP0892M1KeyXd661/I87vt4tBg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id nl17-20020a17090b385100b002970a5ccbedsi2181704pjb.10.2024.02.09.18.46.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 18:46:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60251-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b=FsV23qRh; arc=pass (i=1 spf=pass spfdomain=networkplumber.org dkim=pass dkdomain=networkplumber-org.20230601.gappssmtp.com dmarc=pass fromdomain=networkplumber.org); spf=pass (google.com: domain of linux-kernel+bounces-60251-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60251-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=networkplumber.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 4DF1A288AA6 for ; Sat, 10 Feb 2024 02:46:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EAEA6539C; Sat, 10 Feb 2024 02:46:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20230601.gappssmtp.com header.i=@networkplumber-org.20230601.gappssmtp.com header.b="FsV23qRh" Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A02093FFE for ; Sat, 10 Feb 2024 02:46:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707533162; cv=none; b=gjNmqGPfnreaUHX+EskQ2mUYpnbAQ9M46AtiA5f5owVXBv18JSSCV8++xHlFhOQ+yKuzdsec6b8Gp18p2tG29uMa1PFp+ioivvaomwSdDxMm1rwR2bG7SteWPqugMCF9Q9qSlHUXGQ+OWXmAg+tEAvG9EFiBIzvQcz+hi1i2Egc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707533162; c=relaxed/simple; bh=fvcxdwhch+UgCOqtnEyZPh1ECKl5d5IgD43prRrJsXE=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=piW/hq2WCLepNN22oDWpAdCaZO/6p/0KOl4umxXCErgXyNFVBma/wfkDuMFMQrBVtmaGhbsaJfN1rlP//e7zBDyOSNKruqhdfU/MlpZOtR6IQHjtMITUM19CXvwZZ9vuC8VU+MiHsI4BnXALjk8YtztgWzYR4ttQNY15vHicC98= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=networkplumber.org; spf=pass smtp.mailfrom=networkplumber.org; dkim=pass (2048-bit key) header.d=networkplumber-org.20230601.gappssmtp.com header.i=@networkplumber-org.20230601.gappssmtp.com header.b=FsV23qRh; arc=none smtp.client-ip=209.85.214.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=networkplumber.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=networkplumber.org Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1d8ef977f1eso13721655ad.0 for ; Fri, 09 Feb 2024 18:46:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1707533160; x=1708137960; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=juvAKGT5CeRrHs5S/LFrLMDdPScLSP5NQP+Ax181rF0=; b=FsV23qRhe5NqfIAPYtjRTgh5nDJf2nmCSeZ9e6MTvkdNvQL2XXHld8zP+U4UsM8E1L qTqO/zRwefc78kJB7t1Vws7Juk9BcfPS+TQuLHGo4CdFEMtYT9EXmFxfwjsmDeOQ99zJ YmgHXcRp0CUKO9RAIMFPmdXLx1bP8iCx4IJjVbNdqdorUNFFHQVbtmGzL+gv6eT7VJIn gcAaDtws+OhMjCJ6JF3UPfXSupgXKDUX501bGbCjXOKJ41/tc2sLEMCMm3xM/Yyggbtj yvp682EFc2LfEC6XolT/H38hICo6OhwkIDLTl77YGH7Sh+Yg3BDoeoKZzefEMf2hCq6E WsVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707533160; x=1708137960; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=juvAKGT5CeRrHs5S/LFrLMDdPScLSP5NQP+Ax181rF0=; b=XVeKBPC/GMAKySELwSc51oYdW7Rsdg8d574iz57NprC/mYmXV3HcjoKaUle03EK7vA sRQTAyvZgn/QC7oijAWpVO/5bZNK8g0l4hrn1xXLxiy7GS7C0FoEmKx0AbdxdqE+4Cl6 UQI7+WBerVzC9/Yn6f4RRmSsqcjBj7rh5oB/d8DO62BZPM+7799/SDiCRIOz3O4Z/i7H zXPLiSr3DLOE/b/5d9mupB5TIq6SSnoaVHeo74IJUWO1awV6+czbCgKufKTv93qepr8Z OtK6eznWYA92tBJVnisPW62EgI72hvxGYtwOKO8R56kkjgPZ/5MVnsLTWYRc8/9w3sy2 gMDg== X-Forwarded-Encrypted: i=1; AJvYcCUY8nGWeLy/xCrtEtY05R78lr+aRS1ZcLzsgFb0uJveo3+4nVz6PgYdMaHoUfHtyLlUyaoAa6K2EeLYOe9hHAyk4XBPCfR4QaxDq5qp X-Gm-Message-State: AOJu0Yw0PGhuU1krw3fKpM3+1qydlR3mLGE71jbdoIZCRZ2L7+Uxfj/J Yha/kKcvyM2bGAvo268Kv1S1/DD9nkm80QH2IK/U0lVFm99kWnkjhBqL9AMMbmk= X-Received: by 2002:a17:902:ec8f:b0:1da:e86:3d9e with SMTP id x15-20020a170902ec8f00b001da0e863d9emr1412208plg.43.1707533159777; Fri, 09 Feb 2024 18:45:59 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUMhzRkPJU68x71VCI0cCzTS1iGPROvorEHI8y/T4VEsPqoWKRiyLc6jpPnVnKyR0zJXFEBaQnHeIE9zBh6zGXKxKyy+69dAWbHc0cnlF/TixP9rdrhlkWGVbNYTmzwM8fPlu9XTnBpdXUyqMKn3yTL6Rsutw05p5yMUO5nqD1NE31MbFZvloHyWGYSV1eJJVaMWJ2keeytwpKYeVaELobWX4mCrvEtYg//ovV0TKLVKwXW7JhD3Tx4+WaLMube7ba5D8oQGgw83DyJ8YXup0gXBaT92tcI0eNYel3yhLEXra2BvSwFKyGdEJ48enl3MzyOclUYmQr1sL3m8FyrEm8q8rLyPEjIy+uHll/0f0hse679uE3lxbRm3BP676KdKumQKhN3ISg6shx/pXVo63coSaXdfB9bti21OvyKuV/uhofsNXW5tac4rbv/lticgt4p+dalE9KXCG3XGt2a5rTwLptPsnyG+3nsvILh9cGGbTQZYElnQdeGHU/SzhqwIloQYcRKUR0cqO54hwxFz1nBRZx+OVdWweRwpzKCKYsfSHi1DphxVSx4LeLATF3KML1avYiiqwq+Dx1TeVhwXMGLdZa4EXGE+V64Stk= Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id a1-20020a170902ee8100b001d94c709738sm2149523pld.217.2024.02.09.18.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 18:45:59 -0800 (PST) Date: Fri, 9 Feb 2024 18:45:56 -0800 From: Stephen Hemminger To: Jakub Kicinski 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: <20240209184556.00cde1a2@hermes.local> In-Reply-To: <20240209183133.1cc0a4f5@kernel.org> References: <20240205185537.216873-1-stephen@networkplumber.org> <20240208182731.682985dd@kernel.org> <20240209131119.6399c91b@hermes.local> <20240209134112.4795eb19@kernel.org> <20240209155830.448c2215@hermes.local> <20240209183133.1cc0a4f5@kernel.org> 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 18:31:33 -0800 Jakub Kicinski wrote: > 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. I don't think that is actually a good idea because new kernel needs to still report errors to older userspace iproute2. This is kind of academic hair splitting, iproute2 doesn't send these kind of missing part messages. It is more from test suites, or from custom user programs; found this when looking at DPDK device driver that was sending its own netlink.