Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3800593pxj; Tue, 1 Jun 2021 13:29:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqC0W9JFujrFTp49ifQXY0RFsfMUOL85vqF7MsqxroDO1ad1vnUslvbqZJWzbsA2V+tZb3 X-Received: by 2002:a02:a81a:: with SMTP id f26mr27345607jaj.110.1622579376553; Tue, 01 Jun 2021 13:29:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622579376; cv=none; d=google.com; s=arc-20160816; b=Tp8X/hFwUGZLC6TlLRJYyTXv2EoEp2svqsJniVTgBkC0DPJVBhJJMCOOBzSauBEPTd 5jiXi5AIaprFvaurE6uE9xbLf6xEU/r90TFFmtDYRj9qtEPcHvHwKadNK1RnNSasEsys SZEx/I9ljroMrsele0fcL7LltL1Y/Dx6yamuHNkJlfRZJJmigYzQg+Jzgx43Qx3p/ccF FkhUWnhqSCBxk/X7f4GphwIjRsdqgRmJuoCV4V8h15RXoeixdIp4yLkOseJMTBsjUfrH HEnqX0vjXPJYRSXvTIQQJF2PvMK+5xoiIwftM3EPKFfYizVevpojXNAMn7W7ZyDAAZNj iCyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=FPvT29TuJ/FgQUTd1Rm8JFsT1vrpVdXMy0C9f5MRs0Q=; b=ik64ckCKCdRqrJF0J3LE+yjjSaO8f3O4seyv3Vxoz0nX2MlNEVP47m+0/r6digbHpI tyI9hphDg6Q22EmU1Bqu8SO0ZgEdc3iFJFN0w5xVI2bIQxJl+pc6qRKfAUc+RojQSsVj IF3145STyY1RfTN07yGYK2GecjBOe38SFWHOxjato2Y+It1z/egD2bgV76jb6X0vCAAa PwP2HN401936rh4QAUJxJoSxl9Jhx9LmWxLJUZUWrP72UojAN41LD8Zk3Lthux3316m0 N4209xXwGb0LD83HFOzNNbQ+KNyZZrOc7i9f5xirx5whtg19eVe4cR0OxQJ9EBCVhr+Y ixiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EnJpLVUj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si24418727iow.71.2021.06.01.13.29.17; Tue, 01 Jun 2021 13:29:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EnJpLVUj; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S234832AbhFAUat (ORCPT + 99 others); Tue, 1 Jun 2021 16:30:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:47012 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234513AbhFAUat (ORCPT ); Tue, 1 Jun 2021 16:30:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 61FE2613BD; Tue, 1 Jun 2021 20:29:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622579347; bh=a72SxP51iSyJq6C8I1haykDDm62+9fxxrEZd8LzCYak=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EnJpLVUjhypX88aSo1dVTd2zSZFLmlVfssVsHtgzC9gjhlh28NudF7adMmIHIp8WC c7Qe2+IWXp0THkCIowVXyJvnZTHHtVrGLS8K535KBXe89JQsS5NVyVXSUCYWB15Rqg GpBZpgL1Az6P44mulTM6MSVJ+XE0b2PXV3uRq10VY/8i6cSxru6AYXRXmmDp28AaC9 7upGw7PEeOHc7No5ry/zpKlww6ffjB7lmdvbPZk+lIFFEp3jRc5p8s7FKebKWq8rFb PO+9kVoNK833OC5aJ2TkuTGTr/SUKOCJaAeEUrSb6Yxite99CXwaX1Ea8e+uQ3zKFB swMZHLQwmKzJw== Date: Tue, 1 Jun 2021 13:29:05 -0700 From: Jakub Kicinski To: Jesse Brandeburg Cc: Huazhong Tan , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [RFC V2 net-next 0/3] ethtool: extend coalesce uAPI Message-ID: <20210601132905.1de262f6@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> In-Reply-To: <20210601111436.00001c69@intel.com> References: <1622258536-55776-1-git-send-email-tanhuazhong@huawei.com> <20210601111436.00001c69@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 1 Jun 2021 11:14:36 -0700 Jesse Brandeburg wrote: > > 3. ethool(netlink with cqe mode) + kernel with cqe mode: > > estuary:/$ ethtool -c eth0 > > Coalesce parameters for eth0: > > Adaptive RX: on TX: on > > stats-block-usecs: n/a > > sample-interval: n/a > > pkt-rate-low: n/a > > pkt-rate-high: n/a > > > > rx-usecs: 20 > > rx-frames: 0 > > rx-usecs-irq: n/a > > rx-frames-irq: n/a > > > > tx-usecs: 20 > > tx-frames: 0 > > tx-usecs-irq: n/a > > tx-frames-irq: n/a > > > > rx-usecs-low: n/a > > rx-frame-low: n/a > > tx-usecs-low: n/a > > tx-frame-low: n/a > > > > rx-usecs-high: 0 > > rx-frame-high: n/a > > tx-usecs-high: 0 > > tx-frame-high: n/a > > > > CQE mode RX: off TX: off > > BTW, thanks for working on something like this. > I hope it's not just me, but I don't like the display of the new CQE > line, at the very least, it's not consistent with what is there already > in the output of this command, and at worst, it surprises the user and > makes it hard to parse for any scripting tools. Tools should parse JSON output ;) > Can I suggest something like: > > rx-cqe: off > tx-cqe: off > rx-eqe: off > tx-eqe: off > > Then, if hardware is in EQE mode it is clear that it's supported and > ON/OFF, as well as for CQE mode. This is how "Adaptive" is displayed, maybe we should move the line up so that it's closer to its inspiration? Having cqe/eqe both listed when only one can be "on" may not be 100% intuitive either (assuming my understanding that this feature is just about restarting the timer on new packet arrival is correct).