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 E17A1EE49A4 for ; Sat, 19 Aug 2023 02:51:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244427AbjHSCvA (ORCPT ); Fri, 18 Aug 2023 22:51:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244431AbjHSCuo (ORCPT ); Fri, 18 Aug 2023 22:50:44 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B2213C34 for ; Fri, 18 Aug 2023 19:50:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 29B3F60B5E for ; Sat, 19 Aug 2023 02:50:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08AA4C433C8; Sat, 19 Aug 2023 02:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692413442; bh=zkt9PU/oOgNUJ6FKKoLOe558w9veSeidDWOpQEEZejw=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=RVMfRv2WT9roy4vPyP+NL7hto2hVfxL5qE9s6kfSVJ+OWLd4hFV8xsCMjCZCpreCZ wdyWuGbG+On54WuiUgv5Q4VXjOOxnMrTWnGaYw0Eljr/H5WDwYdqhOPEB4cwUPSjMS /vhGVw6rbxiyeaTYf/i9OymX4eEuRhUhmYRZL7ejDoIH8En8QH8S/TRR4DZUHTXBp8 fhc4quKoDzIc56MoEO9MLxD94MVV6NzWgVHxVndHqSxNh44wDZnNDPmfaSuZa5CkT7 kQZSfbHN4RqwPeNOorJkHCLHjBel8qn9+aEcsijsr9kdsKnNyHO7cqdtneY4RfK49B goQyyxuYGgcbw== Date: Fri, 18 Aug 2023 19:50:41 -0700 From: Jakub Kicinski To: Hariprasad Kelam Cc: , , , , , , , , , , Subject: Re: [net-next Patch 4/5] octeontx2-af: replace generic error codes Message-ID: <20230818195041.1fd54fb3@kernel.org> In-Reply-To: <20230817112357.25874-5-hkelam@marvell.com> References: <20230817112357.25874-1-hkelam@marvell.com> <20230817112357.25874-5-hkelam@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 17 Aug 2023 16:53:56 +0530 Hariprasad Kelam wrote: > currently, if any netdev is not mapped to the MAC block(cgx/rpm) > requests MAC feature, AF driver returns a generic error like -EPERM. > This patch replaces generic error codes with driver-specific error > codes for better debugging The custom error codes are not liked upstream, they make much harder for people who don't work on the driver to refactor it. If you want debugging isn't it better to add a tracepoint to the checks? -- pw-bot: cr