Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1373417pxu; Sat, 24 Oct 2020 08:41:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzn+k3RxJZLuLeEXcxmXdfw8p05Ia2kU39OsVVYzqzACtQLXm5ZQfIms30v9sIHOxhiUYNb X-Received: by 2002:a17:906:fa84:: with SMTP id lt4mr7384581ejb.61.1603554073413; Sat, 24 Oct 2020 08:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603554073; cv=none; d=google.com; s=arc-20160816; b=lcwkTx5H1zJh5pqJw7CeN9+bRHrXVnOvZQRTJr0gE9JS+t/4ZarsGFg229nwg7wB6W AkDw70F+98U6E6gFAqmr8yg1MqeIEldYiydL8PtFkeaKIZND9tIB0ozNkhh7cWxyWpUU 1qM3k/a1TsCkGlqtUBwrtNDol64Rb7f0wFgGBdS63MH6Xhyp8+6dxG9+oJ8dHvU4yjsE L/B3WW0IW69xDESXVrv/Xa4BUjn5rxnEJN3BMnAKEGRZTOpPO4oi9x33upDb1jLh7Smg ZmpShN8/fI4iDAeVtPstO4n1hw3mAVK5DxveggmaM8w43l4Jq49imTyiaIsp/w9/tRhZ 2OZg== 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; bh=gMtos5Y/38RE5SMm64jZowr/xHlV+nKvwKy+C592B4k=; b=n4Aa7YeLnQmIecc8xDvRwLWkSQf97+kHXegcc2MspK19nLf+rLwiyyVyoW2BUo+4zU /hZ6u+xz58HKKy+iyIYRyXeJ2xWU8YeWNFXnWV/x3YmCj5k9UjdvPb4WLUxa3T7mkejc Sy9uwGTXl3+py+gYc7AI0M3DVH6SCzGI6CTNcaRB4c6sG7yFFKOZHIMwLend4pO66eT9 mKvvloWrZx+Gib8NhehGa5/DLM64DsVqc3QAqaGcLiVYe6xiocKAu4yWZwO/75X1B5st pqj7kpCMAGCZfSSJQ/wcK2hFo6yA4+8LXteNam59NZdNpoypxFNcDI5SvdMCsGcL2/XC XZFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u23si3495707ejj.163.2020.10.24.08.40.51; Sat, 24 Oct 2020 08:41:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762029AbgJXOiI (ORCPT + 99 others); Sat, 24 Oct 2020 10:38:08 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:42840 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762019AbgJXOiH (ORCPT ); Sat, 24 Oct 2020 10:38:07 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kWKg8-003HXS-2m; Sat, 24 Oct 2020 16:37:56 +0200 Date: Sat, 24 Oct 2020 16:37:56 +0200 From: Andrew Lunn To: Xu Yilun Cc: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, kuba@kernel.org, mdf@kernel.org, lee.jones@linaro.org, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, netdev@vger.kernel.org, trix@redhat.com, lgoncalv@redhat.com, hao.wu@intel.com, Russ Weight Subject: Re: [RFC PATCH 5/6] ethernet: dfl-eth-group: add DFL eth group private feature driver Message-ID: <20201024143756.GI745568@lunn.ch> References: <1603442745-13085-1-git-send-email-yilun.xu@intel.com> <1603442745-13085-6-git-send-email-yilun.xu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1603442745-13085-6-git-send-email-yilun.xu@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +++ b/Documentation/ABI/testing/sysfs-class-net-dfl-eth-group > @@ -0,0 +1,19 @@ > +What: /sys/class/net//tx_pause_frame_quanta > +Date: Oct 2020 > +KernelVersion: 5.11 > +Contact: Xu Yilun > +Description: > + Read-Write. Value representing the tx pause quanta of Pause > + flow control frames to be sent to remote partner. Read the file > + for the actual tx pause quanta value. Write the file to set > + value of the tx pause quanta. > + Is this really configuring the quanta? My very limited understanding is that the quanta is defined as 512 bit times. For this to work, you are going to have to modify the quanta on both ends of the link, otherwise increasing the quanta is actually going to shorten the pause time. > +What: /sys/class/net//tx_pause_frame_holdoff > +Date: Oct 2020 > +KernelVersion: 5.11 > +Contact: Xu Yilun > +Description: > + Read-Write. Value representing the separation between 2 > + consecutive XOFF flow control frames. Read the file for the > + actual separation value. Write the file to set value of the > + separation. This is the wrong API for this. Please extend the ethtool -A|--pause API. Now that it is netlink, adding extra attributes should be simple. Andrew