From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF9DAC433FE for ; Tue, 22 Nov 2022 04:07:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231830AbiKVEHv (ORCPT ); Mon, 21 Nov 2022 23:07:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232231AbiKVEHn (ORCPT ); Mon, 21 Nov 2022 23:07:43 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D68D2DE8 for ; Mon, 21 Nov 2022 20:07:42 -0800 (PST) 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 0901D6153F for ; Tue, 22 Nov 2022 04:07:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43AC5C433D6; Tue, 22 Nov 2022 04:07:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669090061; bh=kchhsUfl+ctN8yKDSC45Kn8LiGTcHiYQVnrc+Yy1tw0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Q0GSaI2DsZdhDd8ErZeGNj38GE4pMajTPnkiNXoA/HwG//ayGjvz991FxYYhii7p7 AHo6oTyKlibdQFomHdp8INts/oBLDm7jcMquNDQXxIkrjfEWvRQMFzeEqLZzCLprkO 8Yh1/LiIgiNYcypUe8M4Z197+4y0/4+MqKkTYLd5Dop8FWAgBg3Q59KSdKjbo4f9aY Jn6GQiLQcPA7c9+16DcPwEPQOsFOGju+tpjW1JmB0lwNYemWJYcsrt6F/7rc8Y7qY0 vxKto6O7ePJ3PzWSf/NW45AqDSP80cyJ5GfdIh3KNh31msd6eaSoFr3ePOFZ3AMTxK DtYBUw/g8DESA== Date: Mon, 21 Nov 2022 20:07:40 -0800 From: Jakub Kicinski To: Jacob Keller Cc: , Jiri Pirko Subject: Re: [PATCH net-next 3/8] devlink: report extended error message in region_read_dumpit Message-ID: <20221121200740.0a0b6581@kernel.org> In-Reply-To: References: <20221117220803.2773887-1-jacob.e.keller@intel.com> <20221117220803.2773887-4-jacob.e.keller@intel.com> <20221118174012.5f4f5e21@kernel.org> <243100a2-abb4-6df4-235e-42a773716309@intel.com> <20221121112322.21bffb4b@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, 21 Nov 2022 13:18:37 -0800 Jacob Keller wrote: > > Ah damn, you're right, I thought I just missed it because it wasn't > > at the top of the function. > > I also saw a few other cases where it might make sense to use a > GENL_CB_REQ_ATTR_CHECK or similar. > > Unfortunately there's at least one area where we check for attributes > inside a function that is used in both flows which would get a bit > problematic :( Will see what I can come up with. Perhaps this series is not the right place to worry about the missing attr ext_ack for dumps. Go forward with v2, we can solve that later. I think the info discrepancy falls under a larger problem of message building code between doit and dump.