Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2964232rwb; Wed, 30 Nov 2022 13:23:08 -0800 (PST) X-Google-Smtp-Source: AA0mqf4qMfSoJhd+DWK/vN4GpUDo0/cMAkRML8INADnpL8AOWpKu4JPw3osAxLddJ7ODXyLz+ybd X-Received: by 2002:a63:1763:0:b0:476:d5be:4511 with SMTP id 35-20020a631763000000b00476d5be4511mr30225649pgx.139.1669843388193; Wed, 30 Nov 2022 13:23:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669843388; cv=none; d=google.com; s=arc-20160816; b=nZxhZr5vhm27/9De7Zkdwn11SsaIao6Jh0FPK2Ejr+uKs0qvcmkC1evZKBSAHWe8b6 CysoLi8ejEROyCluov0hdTArk8oGuIc9i0JCv7lMFSJFsrm66/PmKxXn6MEl1j001Uy5 pqSzH7GACJTTPBV19otdtLduro4tFsrdCEpfUfqGyiYsIyM2wkvfnccXV0kBGKaiWRHA aI/hFlzC/47LCnQBS9YsIWllecidPWq1BiRvMiUwJ8FDrjIJt1XOmjmLutRoMKBXFtbM yftMfiZQXgh8G7ghK3UtVznO0uI5Fiue7ypw3NUn1IvZu/8DQ9Xfz89cETESnhPccbhH vy7Q== 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=9jQlZQ+8HHYhpox7WBTyYuGJEtiPdn1BZqHahmN+0t8=; b=b6Ud7xEt8VYEGMc/0SamNJtcmXZPmRAC1NppSA3/2+fAfN7dnTkZeBzlXzxg7HjQK4 Fd0e3bzwDy+LDwepE+1yOhQjQxibcW4Fc6WARZ3RSRQNvAqFHj/9q6OK0O9EnkEmNFkB xAv4YuU5Pzr0eMyf0VQOcMy+qZRE7wzkQ/mupflV8UGYm3k1Layp5z7oYoQn1NocVgAV KJYz0WgvA1isEFtEXkA8rIgptUX6AtCcBGEWS2Z4Lc7I9c2KSek//W2tu3OiV+O0HMcq q/i/1sv7KXxkAB3lv2EdO9lVLIVbROxseGBp7wnA8yowQ/xS0UP3H1xHadurIh+bxm8+ iMvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="c/ZbbDLs"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z8-20020a1709027e8800b001889d3b1c07si2138877pla.566.2022.11.30.13.22.55; Wed, 30 Nov 2022 13:23:08 -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=@gmail.com header.s=20210112 header.b="c/ZbbDLs"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229722AbiK3U5B (ORCPT + 83 others); Wed, 30 Nov 2022 15:57:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229709AbiK3U45 (ORCPT ); Wed, 30 Nov 2022 15:56:57 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EC56837C2; Wed, 30 Nov 2022 12:56:55 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id vp12so43007131ejc.8; Wed, 30 Nov 2022 12:56:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=9jQlZQ+8HHYhpox7WBTyYuGJEtiPdn1BZqHahmN+0t8=; b=c/ZbbDLshtsnxHXWxNMYALtyBOztdhBPPQcbQhB4hCZ2jZCh21g9d68kHDpcFXIo3X LQUz+0cyyBdKTKGSKgghnblI9XOPJCKjD0psvLzWaFH6YgwGXPfGqO+ruqaYu2IRx3OD 5ptvNdGsVY9S55xso7HvPOqL/45ZGwNvf1xL8n8Vh37J1UDwjJR2w8JLHCN3gp091Srb W+snMQ6rZ/hOWh32gdCkGlfzgfKxsbOffbiuOzMQ90K5m1FCE8ad22KdaKAq5mL6a15I zFuDHD8f0M+yKM8BtcerrO0CkT39dXUFwQfdM7qQQGZF0Zqf2DCChS91b/mu78Z5qaVI cBVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=9jQlZQ+8HHYhpox7WBTyYuGJEtiPdn1BZqHahmN+0t8=; b=lMLkBUfc1S9S//36jZNPtJJucnFpfMisrQqIGso75obeMpWuFpVKGAPpEby8I+M0H5 LiJXWA3LErbXFNtPjXXUZFhRFaFsca83A9k6ArLhQejy2TyU6Ax56A3i3zMtn+Whe4yI n4t4Qf86+oAsO6vVT9vZulA2/ypm/JxadEJYDLoUZsFsX7ycFkCY6pHwm1etlvYydxSe 5DsYdZnUVM87/DPlmyTyxiZR3ycj/zk2DjzYv4qyUhi+SkfzlZJ1kN0NlO9GhcA1eYYz l6PBleSKmruRdIk+PyeyLVSpdXcl46aO9CKwFRytyDLKYX+krGDvbg27mdGxvQsSPt6H sLDw== X-Gm-Message-State: ANoB5pkNo3QacHIaVJtnUhC6OCsq8hRpyEx5ZLxIO6S1plOXeyEnzSFt qZ5y56xzrUWirkCc43FCpLETUhoMO5D80g== X-Received: by 2002:a17:907:9854:b0:7bc:30e0:6bea with SMTP id jj20-20020a170907985400b007bc30e06beamr25039204ejc.49.1669841814037; Wed, 30 Nov 2022 12:56:54 -0800 (PST) Received: from skbuf ([188.26.184.222]) by smtp.gmail.com with ESMTPSA id c5-20020a1709060fc500b007ae10525550sm1036407ejk.47.2022.11.30.12.56.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 12:56:53 -0800 (PST) Date: Wed, 30 Nov 2022 22:56:51 +0200 From: Vladimir Oltean To: Jerry Ray Cc: Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v4] dsa: lan9303: Add 3 ethtool stats Message-ID: <20221130205651.4kgh7dpqp72ywbuq@skbuf> References: <20221130200804.21778-1-jerry.ray@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221130200804.21778-1-jerry.ray@microchip.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Hi Jerry, On Wed, Nov 30, 2022 at 02:08:04PM -0600, Jerry Ray wrote: > static void lan9303_get_ethtool_stats(struct dsa_switch *ds, int port, > uint64_t *data) > { > struct lan9303 *chip = ds->priv; > unsigned int u; > > for (u = 0; u < ARRAY_SIZE(lan9303_mib); u++) { > u32 reg; > int ret; > > ret = lan9303_read_switch_port( > chip, port, lan9303_mib[u].offset, ®); > > - if (ret) > + if (ret) { > dev_warn(chip->dev, "Reading status port %d reg %u failed\n", > port, lan9303_mib[u].offset); > + reg = 0; > + } This part of the change still is unrelated and affects existing code. Bug fixes to existing code are submitted as separate patches. In some kernel trees, they are at the very least tagged with a Fixes: tag and put before other development work. In netdev, they are sent to a different git tree (net.git) which eventually lands in a different set of branches than net-next.git. You need to not mix bug fixes with development code. Andrew also suggested that you separate each logical change into a separate patch. This, plus the fact that Jakub asked you to also provide standardized counters, not just free-form ones, which you found it ok to disregard. I hope that only a misunderstanding is involved, because if it isn't, then Jakub will know you, alright, but as the person who disregards review feedback and expects that it'll just disappear. I think Jakub has pretty solid grounds to not expect that you'll come back with what has been requested. Sorry, this patch has a NACK from me at least until you come back with some clarifications, and split the change. > data[u] = reg; > }