Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4918123rwb; Sun, 4 Dec 2022 10:30:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf60xapjWISgMdRw1wbvWoNzZy5ih1/7TeTEmQZVt8mkNrSR3F9YA7suG4i9iw9rLkfV34qm X-Received: by 2002:a17:906:7ac8:b0:7ad:c8d6:bc7f with SMTP id k8-20020a1709067ac800b007adc8d6bc7fmr65685072ejo.118.1670178653515; Sun, 04 Dec 2022 10:30:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670178653; cv=none; d=google.com; s=arc-20160816; b=YAJ/h9gswa538l3Btn6q3b2HBywpZSLrgVN9uMUhH6hmv/CbxOz6BYspumnanzcG+C 7WaX0NhdXAUtXz2fJlZqcXKVti+J859sS9/idv1lIdybXawfFYHjvAsLEi9liWK5lKpq TUBaKE3zXyBqy2FXLx+ERQu5iKxL82SQtbUD4WoWxfKdZvxKYG99hK0sLAAl+js56GYu CPIyoBOHs9UAkyjokcZeFtxSgwF8nM2fjm8WJ+Db1CHvePXO/NhZqrH2EPE9rXe+LneL EgI+IYDljtGYPnc40jDNDDedFxHTE/fYAi42mUZof5N5mP9EMEc+lZfw7IdUPLc7h4D5 318g== 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=goCKq7mAuByd5SSoRQGXzt0RnvurUSfN5w+L4Gwa7R4=; b=ZugTRgYAmELjCQ8MTaKWpb2eW/Iar2qBPo5pONjrS38rMM0+n+v15MXy8Vc2j2Vmw3 yvrYNnDqCzY77aXoRe7L8e8hznDF46XbCE2gHiCLQodWxZ6Yo0vENVR4rPTpQ7F6yszM HmA7hASd9bx29BKTDf3DuScApe35vnyz2iHJfIzYYAJNu2h9OAUGVvOkTFR7ylZ+keer X7hiYV5gdr2qIult1agairOulJ7tl8L7LZWGpE8fYSWPuMNVKu6lKz4dp372Ez7xx988 lXmPAnDNWtSv7ufXqBK6maJoDmzmy0iDSIMqbqsOa0DvJ5Ozh7z719AAkK3+Nti9+p/u rdVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=BTDGf0ap; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sa39-20020a1709076d2700b007c0daa7bc1bsi3307341ejc.976.2022.12.04.10.30.33; Sun, 04 Dec 2022 10:30: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=@lunn.ch header.s=20171124 header.b=BTDGf0ap; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230280AbiLDRg1 (ORCPT + 82 others); Sun, 4 Dec 2022 12:36:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbiLDRgX (ORCPT ); Sun, 4 Dec 2022 12:36:23 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D84A514098; Sun, 4 Dec 2022 09:36:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=goCKq7mAuByd5SSoRQGXzt0RnvurUSfN5w+L4Gwa7R4=; b=BTDGf0ap+wRBoIiQRHnNB6t325 BH7iuUtPxiJjY4Q6rgoiPEEvX7Pfw0U6k+eQzNz1/qCabG+di2a16fp/nOGb/FpNGd5wR3nTYa7XL FTyIcnTisvIBOPJSJjjwk5MWNYHSb/cfS2UX5myzFYExc/X/uMSOd8cltbJEwoMg6EJM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1p1suL-004Kfz-2v; Sun, 04 Dec 2022 18:36:05 +0100 Date: Sun, 4 Dec 2022 18:36:05 +0100 From: Andrew Lunn To: "Russell King (Oracle)" Cc: Piergiorgio Beruto , Heiner Kallweit , "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 4/4] driver/ncn26000: add PLCA support Message-ID: References: <38623984f6235a1521e6b0ad2ea958abc84ad708.1670119328.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=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 > It also seems odd to have this "positive numbers mean update" thing > when every other ethtool API just programs whatever is passed. It seems > to be a different API theory to the rest of the ethtool established > principle that if one wishes to modify, one calls the _GET followed > by a _SET. This applies throughout this function. Hi Russell That was my idea. This is a netlink only API, which gives some flexibility which the old ioctl interface did not. With netlink attributes, we can pass only the attributes we want to change. The question then is, what is the interface between the netlink code and the PHY driver. How do you express what attributes were in the request? I suggested -1 for not present. We could keep with the old read/modify/write model, but then we are not making use of what netlink actually offers. Andrew