Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1201296rdb; Fri, 9 Feb 2024 13:39:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWz2otLPItK4De2ihNz04oHTbN5BMx6kdkrZNusTGqf3FL6amqs6UYUErAZLWnMroMrWE1O7eTEjhPtjYG1gsqem9h+rGy5tozDylQwiA== X-Google-Smtp-Source: AGHT+IE4k24LuY6BVfG+JjNfgwNfFAIusIusDtU4QRl78cvkJmPdLOJfFArm3xvpzFbK3PzR4mRm X-Received: by 2002:a17:903:1107:b0:1d9:a2b1:8693 with SMTP id n7-20020a170903110700b001d9a2b18693mr744274plh.23.1707514742243; Fri, 09 Feb 2024 13:39:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707514742; cv=pass; d=google.com; s=arc-20160816; b=RpM8LvSp5mIZ9FX7K4GnY/Bc4oxyKlDV7zLh8t77PLWmKZ1yy9kJp56IpWjqs+GkHa uVzXGoJRPy9zE05FoaQyvEYAXVMwa0WDeuLFBH1SIBwhE/ytl0mm6e61Nxfl1eu4jaI1 Zn01lf42RDKiQyKN+JzC9AlVis0n/D1ox5l59NUA+OTp0u1hRhpmE9Xu68Gkcrptd4RL 1G45FsVYobWqcb7uvRWglYHlGgN77MSDdYJBLiGqz1JaBpXis0Cjm7hrp8UkGjGiqxAD eXCoGDm4l1jp/U8L/tk5WuHyVHHYacCWy3ToMMmYZZO8XWgHsku+ePnm0nVHDSmGN+PI 7B5w== 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=l6TgcwAbgsmLtLyu5Ofw1Dd466E2FrR34L8AWToaH3s=; fh=snbz81HQIZsxM6KGC3zqzCztyn8JdS+uUTWn+/tv8Q0=; b=EgkQi4qTQ23EzXxec8h0TK+JVaEY62Z69ch7FY5g3iLz/igOaNwnyeQ9jw4V9wVl2C VL4VCh067HlcFkUlqG8xhLCMlhB5oVT7y/2/3qk6a5hUcikuJSSLL5C6KuwwCYETuUy8 tqaE36dWPR/JRnQqv3W0qO/azVdWwTuk7fYJSkdEFPDLHzMENbonw5zcvQ17gOr5870q Mi3GISujEaPpFjfz8YlY8tp0lThKUUeL69N9vCSHVaP2Zp9GMM7dTQlgExSoWnPb2y1A vRmMeTtiIB7Sdbf5XR1ZwXx0eZan/W/F5WlMkcB2FNeoLWznceLd4nFfI9ZSGXmA+x+Z CoSg==; 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="XtZKTBm/"; 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-60014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60014-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; AJvYcCU0iLr3cp5tIamM8sJCJpyEpcQJyMNQTMJnhqyh3JYQYNfU/vKvRvfT6npGT2VuGT4VYRj/sfw3K9ap2IgtItet4BiViH/LlEvEX+UvRw== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id h17-20020a170902f55100b001d056bdad56si2331676plf.166.2024.02.09.13.39.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 13:39:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@networkplumber-org.20230601.gappssmtp.com header.s=20230601 header.b="XtZKTBm/"; 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-60014-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60014-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 8C46BB2308A for ; Fri, 9 Feb 2024 21:19:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB7703770D; Fri, 9 Feb 2024 21:11:25 +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="XtZKTBm/" Received: from mail-oa1-f42.google.com (mail-oa1-f42.google.com [209.85.160.42]) (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 6274E17570 for ; Fri, 9 Feb 2024 21:11:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707513085; cv=none; b=GQTynF3J/D6szLlvVtZEQkAv0x7iGFDrRim4VExrhBHQFQPPIr/Em5DbZnFjJPYg53H04y7A11xyLJ1AY5HxkyY2waxhfc63UjmQulna/7RBAbFSw0E3gwKWafW9EkPuSmMyf8tJBXwhIQV+t5mp9LVIqzaJgrvCsP4iHme6EBw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707513085; c=relaxed/simple; bh=XUcH1UxLCxfIwyJ9CRFC+7ICqDqroCA5cgXdrikWaRY=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=h76YW2gzhQoZa0rmJlo+Hpci4enM6TOW+lze4j3xOLpzR8Psfdnme0THO6j+iX31aGlJ6EfXRW4BagVU8TtcWihWoHPf5JxzInxB6g76dFrf88xhCc6vg3Ppi5oZXs1G5ISJo716hxF9Lf+LXiD76FyFeDvpXY4gNvqUWgA4fdY= 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=XtZKTBm/; arc=none smtp.client-ip=209.85.160.42 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-oa1-f42.google.com with SMTP id 586e51a60fabf-218642337c9so767921fac.3 for ; Fri, 09 Feb 2024 13:11:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1707513082; x=1708117882; 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=l6TgcwAbgsmLtLyu5Ofw1Dd466E2FrR34L8AWToaH3s=; b=XtZKTBm/Z7iEq+KpASrtQOEc3Q/EOxUyJs3Saw4h4NpnJHItCkXPFXdzi42DcvTBOH pZsN5nbUAfuruNVx5GoXepMIIpCgQd5EtvbfkLPXVgLMTAWr4fcsl8aQsugCV/RNr6yT 05dc8nvQ2Q2l5xw9tK2KQpaAMJnGpHhZLwSbFHtVEfr3GdGlNcF+h2cvtP5cfmNlnO5Y lhNS3pwhZkHBH7FB7EnFbuAkYlwCIFs5TUuDV2GsBAxYkhEsbMetRNY0Tqc71aqPVbP6 f40Ngtv1zmY7+0cqn25V7DUarhE1wWW0rpHpregX2WOsar1dGkdgOBoLkcAMKjpX34eU UTHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707513082; x=1708117882; 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=l6TgcwAbgsmLtLyu5Ofw1Dd466E2FrR34L8AWToaH3s=; b=G33cGusgAZ//J3RHY6A7HR0gJEwBrlL5gy212/mtrv4rBg6i0Jhmyuy1KEjbmIgM58 HXY1PZWLS7XO1HO16OoX/PZoG7RwpkR6Px+8jxdBYkv3o0NftmjgUK+bTy3C3M0RtCLu mKLlbOX4t0JfjxxUjcqxer5YHSuzDBQksxN1LIPyoIBA/9x0H+6DmsZD3mSoyAahArb9 utibd2Pqg6HJgYI5nKdkO3kGj3sY+TPUnibZ8BLtGpwUEc+ECR04UJrGIGs/UGDeW1W4 OMJVNcqv9QoqjdZL5f0xYa03LpaRaVT/N27+ySWX0EDqhVsBKLtmvepaASJ5I3TsfU3x SpGw== X-Forwarded-Encrypted: i=1; AJvYcCXQhYSQLOmwJ/xmZQthI+G2b+qYq8tfJPcD+FJ4t2nYK1DebJwvGAv8t5YQb/NkHVKkanhKnFfiNqEdek8IigrSyXbMdEoGvFtV9cTA X-Gm-Message-State: AOJu0YxXthjXdnLqfvtFZJxPAKpwocyO2u8mzhpotJtqMzequGHvnLHi SzD7xwdMNkWJcdtmQKUQxqxqTR7W2v3hmmwNPw/2oJzu4B3QFpGS5KasMe2+TjY= X-Received: by 2002:a05:6870:b250:b0:219:b163:70d8 with SMTP id b16-20020a056870b25000b00219b16370d8mr552722oam.6.1707513082402; Fri, 09 Feb 2024 13:11:22 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXm3qqN7nurWgs9IaVrQ6JuoBgeVnXrUdVl39H6TG/U/U9XfNjgLSUynl36AntPvANxVhyPrAcht2SAT/qsUR1SWgM32c8saU0lm4578MElg9Mym2NaaOkFMFEtPMYsZxnZEKrVAKX3QLkDwEML4umP3Bq2P9v5yRwOIR1TXTjKj8gGHXbNWWctV9sKk6p4ZYW4gQ3y8FMeEpx3CkGvGa7KZxnpcVOVi2bUFH4q/x49qRl68MfMvnjk0uewdY0rCov92fBPwa7O3yypCTDysSJrWPuN0TmvB+hBqyDByVBJa6bylcoR7qjqdw27s7AU3GXCoURVufP5e5XaNUAqetK7A9CMOUFM5ksHcT56zwg/HOuaWGFmS6S1ES7OJXlQNMV8cKFlhO55G1XY0RppWhk2pLTJjlIVwv2iNZ1oFt3KEOCr3FnwQpXyeV83sdY0eXvLCZQk++lC6wzubsY0QzZBsQ8wUirg1IHvWNzht7zrvyy+POKQvf0RR+dTCnKG5r8FIpzanAory9C60cbXIMryjFS5e863M+S0Q5qxEX7t2g4Kst3xz/0jBfpu7nmUaiMK/za6cXUtXuaLedTjoNju0mvpixm/mGZ/T9s= Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id e21-20020a631e15000000b005d8e280c879sm2240643pge.84.2024.02.09.13.11.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 13:11:22 -0800 (PST) Date: Fri, 9 Feb 2024 13:11:19 -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: <20240209131119.6399c91b@hermes.local> In-Reply-To: <20240208182731.682985dd@kernel.org> References: <20240205185537.216873-1-stephen@networkplumber.org> <20240208182731.682985dd@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 Thu, 8 Feb 2024 18:27:31 -0800 Jakub Kicinski wrote: > > - if (!tb[TCA_ACT_BPF_PARMS]) > > + if (NL_REQ_ATTR_CHECK(extack, nla, tb, TCA_ACT_BPF_PARMS)) { > > + NL_SET_ERR_MSG(extack, "Missing required attribute"); > > Please fix the userspace to support missing attr parsing instead. I was just addressing the error handling. This keeps the same impact as before, i.e no userspace API change.