Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp694790rwl; Thu, 5 Jan 2023 03:18:53 -0800 (PST) X-Google-Smtp-Source: AMrXdXsAsmzKZBz4c1irBTLvB3Henmi2BcsJsLaxbRdmqjOEeR4ic60KH5784Sb3U3E6s5WxrmBY X-Received: by 2002:a17:90b:3597:b0:214:222:6ed3 with SMTP id mm23-20020a17090b359700b0021402226ed3mr54664479pjb.43.1672917533341; Thu, 05 Jan 2023 03:18:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672917533; cv=none; d=google.com; s=arc-20160816; b=DteqYbEv2q+99u/sY+Phv4hX4hI9P9BQb7/O7bNM6Hj5OEtihv4AP+Xfx9IyIYKBy5 L6LtDs/mk0F1E6G3hexBQ2p58VDyqyAvLiYF+G6+sOMIyVDPhiCilhczUQVZP59HdGjD YADLfQS48i1XTZLUcHLNUwSXviYacBdouVlGqokUZzRPYUM+68rZqJjc2EjZhHPpb2II kXhSTHJsM6dZinR1aOWuBYzjGErn7CBCZYgVp3s+Je2BOqaSyuAm/s74WhmY3bIvFNzR +m1xUk07HONIlUhcBOGt+PtP/wZMsFaj4sqpIRF5AfUhm+pM9Ouz3KdzTC/5NAn/z6Ie 7cjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XEU0/yh3A4Trt+HeEHBtLILozQONMBaSmz3NnWcXwNU=; b=oWdOuiRjQL+pR5BVrGy498bQ14MZy9fu3P6yDhuPahsTC+EBZRWPgPPVvhIrN25Rzx e/EONZ5hNOBKw76nfnur9n1uf5On1wJHjCdk2IclXtQynzODCE2XvGtMv8EK1mStBMeg jCPXg17TdsK+bDHLwGAOR0StrRdg/mAW2NJxYem36nB1krzLcKIYC66G5a0WTxF5lf1V i80w6AmDCdMLl4lKIiObpTGFP5gXBSvhkcLpLpP9TE9ELQvEFrXxys5DaDJOqp9TZFH9 JpePA0OJOU51zWRhwyaZ3OOs3KgJrFc/gayzJyK2gR2nvBdaT9MiTaO3S7siFVjQ8K29 9MLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Omg4CCtX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bg17-20020a17090b0d9100b00223b92028c1si1444968pjb.190.2023.01.05.03.18.46; Thu, 05 Jan 2023 03:18:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Omg4CCtX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232798AbjAELBv (ORCPT + 55 others); Thu, 5 Jan 2023 06:01:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232682AbjAELBY (ORCPT ); Thu, 5 Jan 2023 06:01:24 -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 3D991551F9; Thu, 5 Jan 2023 03:01:23 -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 8304E619BF; Thu, 5 Jan 2023 11:01:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 25744C433D2; Thu, 5 Jan 2023 11:01:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672916482; bh=4AaEU+L5WfhDASHSgIolPkmwy4JpsfUnNhDjGO6Fd54=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Omg4CCtXnbWbYLxpmbdTRmwO5mt0C70C2S2HaL2EujR2sF3ghhJfeqQwk26FL97Za WNDcLfl06o9qZorbL6HOHDHCyOUzArGQPtYE42IPqA6f7MDXcspRrvz/PndTz8crqt zNzWqImF16PqTIQfcFRzkRlUfB93KZTaWK2EXSaxP/2plWsmzh4Hkkgakd5Mlf0Zsg ztdUtiHc1CGj5uDqAbXd6qVHoBj4UOOj2RMD2RL2nFsZlvbnQIeKLdQv4ZJuKw+c8n QxQw9RKM8dRYLurrU0eF4sHvIc7Ei8bxNkRrrKSYy4mvRpzNFYEBKxESSZXwBZLO8r r7LghxaAYMu9g== Date: Thu, 5 Jan 2023 13:01:18 +0200 From: Leon Romanovsky To: Piergiorgio Beruto Cc: Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Oleksij Rempel Subject: Re: [PATCH net-next 1/5] net/ethtool: add netlink interface for the PLCA RS Message-ID: References: <76d0a77273e4b4e7c1d22a897c4af9109a8edc51.1672840325.git.piergiorgio.beruto@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 05, 2023 at 11:47:20AM +0100, Piergiorgio Beruto wrote: > Thanks Leon for your review. > Please, see my comments below. <...> > > > + ret = ethnl_ops_begin(dev); > > > + if (ret < 0) > > > + goto out; > > > > I see that many places in the code used this ret > 0 check, but it looks > > like the right check is if (ret). > Thanks. I've fixed those, although I copied this code from similar files > (like cable test). Maybe we should check these out as well? I don't think that it is worth to invest time in that. The code works the same with if (ret<0) and if(!ret). Thanks > > > > Thanks > > Thanks! > Piergiorgio