Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp431553lqo; Fri, 10 May 2024 04:35:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUTHucu+NHfqW9znCXhcqwT98BkKA4h826Bc5OSHie2sCG+arjFGRYZUSEPkvh2vEhExQS8kggGgNRpsBMIQJ6mXuBPz5KoPgEIroP2cQ== X-Google-Smtp-Source: AGHT+IFoH38Wfhzkzkh/z+uxeiBmdOrV/Fy/S2fL5KdSJQ/Tpg0B0XH3NlitfzlxUlz4cuVWbGFu X-Received: by 2002:a50:cd47:0:b0:572:2efe:4d14 with SMTP id 4fb4d7f45d1cf-5734d5ee4a9mr2091940a12.10.1715340946217; Fri, 10 May 2024 04:35:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715340946; cv=pass; d=google.com; s=arc-20160816; b=v+F24FyDX9ysaPA/4OqZQpEKJ5rmLdnIIUOJLB2DKKgR3Ki1l523t6YIy1keeFbdoT ukP9ajUe6mMa4q9jrrdj2iv65B+bbeVRYhL5W+mAgTuuaa2TOGIviiRbsvgT/78o39cE WvgN7X5DafiDNrnPGmhHwIv7h6/Xbjc6Y6fQ5KQq43wxxJ3DPsEr5gQre+pYnzyPz5iS AB2EGcfI6imMkc2V0ff36o6HhLV0deyc5BAxl1k8fm7IA0CTeDxToQsY4Fnp5Vryb9Me DeS62KZtVgxO8ABbiDTzTvg7IoSy7iKxZMOju/WUAoj1b50Y6EaMto+ez35KMPVy/dOa 7Flg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=n+7WUmXm1Nr+d+AArPd1jdhIzk0mGxlNWqfEellOyXw=; fh=G3TgDShEP9ozy0Ei5gcZdbWDqXL47Yd7R9GsbZW/Ex8=; b=0+Q2HRgJAMZZsH6UrjUbkR22MHIN2dK7GtFyZgMKt09y4eMbezOjCM1Yrd8p8ST1YA Hqq3ZrxKE01TwXRtr13mzPGacq0y921QVPXpSpiSuUWftsHhCNRTf/GQXdL7DkCIxEmC x2yEy71fC6bU4pIQ48+TEwh22+yN5/6pcjk2hCqsFEGGL+K4w0kXjkOnczxeJ05UAF0X rcJQBZmBXYjg6LW49OTFdbrxNIlcUXcNlTKlawtNafqhY4YOn/zaRI4RxZzw6JZFlG1F oj/s7Hlje157CNqJWaqb19jpVGzG21IeaSqL/qC7Hz0qwBNM0EvFD16Stz5Q85C/8JZ5 QZTg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rAjliYte; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175683-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175683-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733beac77fsi1854626a12.55.2024.05.10.04.35.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 04:35:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-175683-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rAjliYte; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-175683-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-175683-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 DBD211F25C3A for ; Fri, 10 May 2024 11:35:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10001171E4B; Fri, 10 May 2024 11:30:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rAjliYte" 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 33079165FB6; Fri, 10 May 2024 11:30:38 +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=1715340639; cv=none; b=sefPeSKThWDHBEjZYq9tCLOSv74x5RtspDK5qLvscKgahootwhbDDqPu3WmfRXyipeSguD4PO4v3N2DaMaPQ2vr/HQt8xLO3uyYAwKE4KyEEZiuzO3DiJLDj61nJBLRmIGwR3RIBLmgdoqcK98pyLHF5ysK0/rs+ae7B3cA+DYU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715340639; c=relaxed/simple; bh=R02VxDDaHuGhaT3r9ObK5PaVxGdV2DnLHafkPnqWiqs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZOd1cWhhUMu8uvAY7jyn64S37h9Bx1tNz2enjDa0BSDhKxBCdl3yTG4giRVVTZ/Dp1/YxFx5C995y/9LsDW4+LTx1JH6nwz81bZW7y1dwiSzvjyiGE06hyPv3JeY8/BZVak1MLUlAWgL6VNKZsU00UGoplkl7lZyPNuYSTpx/LU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rAjliYte; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75670C113CC; Fri, 10 May 2024 11:30:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715340638; bh=R02VxDDaHuGhaT3r9ObK5PaVxGdV2DnLHafkPnqWiqs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rAjliYtendi43yxreNAKQ51nuo4db/SU34bycLnDsumI/SX5u5PBZ81svivEQyALy Y7aNaMhgQjkxnRUU59KoFiEeYUWHw1IWhXT/BPmCr3qA6+Ce0BspnzZ8tHkMQxICQI GZOp54BSv9fV7gJD1uqxDdvaEIMFAmQ0bmobWH4sib92PhH/kaT6QSAk1mMFgnLs1/ 8WY2feAroTJGUb6BB2Z/sAw/gLB2tQ4EUvgJ7AQ2U11lBnGDEEp51dgNEZW6u2AJh3 tDF5DBjGR50dEXoKCk337fn7DIki0eTtvlYHGgwkn/5owuFs5igWlkEEeqlbJ4Rq3K I/UgRIiG1OBiA== Date: Fri, 10 May 2024 12:30:33 +0100 From: Simon Horman To: =?utf-8?Q?Asbj=C3=B8rn_Sloth_T=C3=B8nnesen?= Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Manish Chopra , Przemek Kitszel Subject: Re: [PATCH net-next v2 12/14] net: qede: use faked extack in qede_flow_spec_to_rule() Message-ID: <20240510113033.GO2347895@kernel.org> References: <20240508143404.95901-1-ast@fiberby.net> <20240508143404.95901-13-ast@fiberby.net> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240508143404.95901-13-ast@fiberby.net> On Wed, May 08, 2024 at 02:34:00PM +0000, Asbjørn Sloth Tønnesen wrote: > Since qede_parse_flow_attr() now does error reporting > through extack, then give it a fake extack and extract the > error message afterwards if one was set. > > The extracted error message is then passed on through > DP_NOTICE(), including messages that was earlier issued > with DP_INFO(). > > This fake extack approach is already used by > mlxsw_env_linecard_modules_power_mode_apply() in > drivers/net/ethernet/mellanox/mlxsw/core_env.c > > Only compile tested. > > Signed-off-by: Asbjørn Sloth Tønnesen > > --- > Note: > Even through _msg is marked in include/linux/netlink.h as > "don't access directly, use NL_SET_ERR_MSG", then the comment > above NL_SET_ERR_MSG, seams to indicate that it should be fine > to access it directly if for reading, as is done other places. > I could also add a NL_GET_ERR_MSG but I would rather not do that > in this series. Reviewed-by: Simon Horman