Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3156929pxj; Mon, 31 May 2021 22:10:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvL3krNB4igyii7wWX9J3sDS7s8toomxko6VnXPlWxRUcbDoSJV72knAELD9Jsksk/T8L+ X-Received: by 2002:a17:906:3057:: with SMTP id d23mr18509495ejd.131.1622524236378; Mon, 31 May 2021 22:10:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622524236; cv=none; d=google.com; s=arc-20160816; b=CiRJ5e8GbQn8cExEjokowZGiaKCoRrY/tbWQdnqBU6c/55s9yf7Rlj0nTgATzmQvIw Elf8xCeyLEkImdBQWikuFvjuz4R9ANr+fIwgFA8BF9SzXpdHydqcg5kdxYzZiyqsyRdC TwGwUDrCzBDWT8r9a4u3UJsqbdxP6pNKw4gNuCJ3JwPFDk8+d17r2ogtZgzp53lWv/F0 /8sXfKOzc9NoUbESnBYHf2lKHjkBJKFnTEuSPzxOoWsbxHsF4mWTskDohJrodLg7Eiad aR+h19IFrivwWpltQejDxUPKznfkebg2ovMRJpp56MjeZv3gR7Wob9Dclm6VsRzceMyz 5mCQ== 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=QnV8uk8U6RyTUJahWR2FKnInDm8Dr/eFazEfJ7Ahdsw=; b=0cdC7gpyrhPQ028WYjGVwEcE+Xox/lrDZ7RVltqHCCRd/35JkK5wZliX9s5LJSrpqD RoHGg5elCSm0ICZ2cLN8J8eNCwHzzcBqE++IbuKABIFCokR/4/r+ZJUZNrhqrQtZ2NYa l3CH14nguvxWHuGow1F0n4HXKog0gUsHbtMhudHcGwGabPY+Beyp3zqUrhph5DeXfMrC HJfGoqrrMH10frOlujvNX0dOJ765cExZpwCWV+vv7ZfVwmYChWl+vvygPD+jJ1NW/gJo vdFNku6/y2oXXwQNwxdyOoN6LXOI5dBwqX8204XX0Dx+xHQIwi+k3GhH9dP3QY8Jo6NQ 4tZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KCV6Jcv4; 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 jt4si15229691ejc.381.2021.05.31.22.10.09; Mon, 31 May 2021 22:10: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=KCV6Jcv4; 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 S232599AbhFAFLA (ORCPT + 99 others); Tue, 1 Jun 2021 01:11:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:57312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbhFAFK7 (ORCPT ); Tue, 1 Jun 2021 01:10:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 55688610FC; Tue, 1 Jun 2021 05:09:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1622524159; bh=n711I0MWA9e0vcWex39A7jnlO48y3pis64NnpnLhV4A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=KCV6Jcv4k9/18aJv10zA7T7SRzai9TReVO2k1S0WrUmdNXfQdHfFLcEkKy1NvkE86 7+5TVGoYiDkN+LpYbCV0jccGmnHbMUNzp4KJJiWoqpMSFhpTfIUp887QqVDDjt71l0 NqcELpUb3FYPhROBJvqrL++Zi3kQEaVBrE60cmU8NtaxKY7qUqEf/k27HZfEq+3Cea Po4j2Bu1SFDfJG2YvQX+aqTll8AWBu0kexNFN2m/9ZMBpFJAvubSfT9vuymzVhmvj3 hqMXVKn146v6wPfuZV6dggKiDBYVd+W0o+p9pAZlvffypYjfup1VqxVYKL4Phwe8dW 3rYUbBd3IAWgw== Date: Mon, 31 May 2021 22:09:17 -0700 From: Jakub Kicinski To: Huazhong Tan Cc: , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [RFC V2 net-next 1/3] ethtool: extend coalesce setting uAPI with CQE mode Message-ID: <20210531220917.3df91899@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> In-Reply-To: References: <1622258536-55776-1-git-send-email-tanhuazhong@huawei.com> <1622258536-55776-2-git-send-email-tanhuazhong@huawei.com> <20210529142355.17fb609d@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, 31 May 2021 09:24:01 +0800 Huazhong Tan wrote: > >> @@ -975,6 +977,8 @@ Request contents: > >> ``ETHTOOL_A_COALESCE_TX_USECS_HIGH`` u32 delay (us), h= igh Tx > >> ``ETHTOOL_A_COALESCE_TX_MAX_FRAMES_HIGH`` u32 max packets, = high Tx > >> ``ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL`` u32 rate sampling= interval > >> + ``ETHTOOL_A_COALESCE_USE_CQE_TX`` bool timer reset in CQE= , Tx > >> + ``ETHTOOL_A_COALESCE_USE_CQE_RX`` bool timer reset in CQE= , Rx > >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D= =3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > >> =20 > >> Request is rejected if it attributes declared as unsupported by driv= er (i.e. =20 > > Did you provide the theory of operation for CQE vs EQE mode somewhere, > > as I requested? =20 >=20 >=20 > the definition of enum dim_cq_period_mode in include/linux/dim.h has >=20 > below comment: >=20 > /** > =C2=A0* enum dim_cq_period_mode - Modes for CQ period count > =C2=A0* > =C2=A0* @DIM_CQ_PERIOD_MODE_START_FROM_EQE: Start counting from EQE > =C2=A0* @DIM_CQ_PERIOD_MODE_START_FROM_CQE: Start counting from CQE (imp= lies=20 > timer reset) > =C2=A0* @DIM_CQ_PERIOD_NUM_MODES: Number of modes > =C2=A0*/ >=20 >=20 > is this comment suitable? and add reference in=20 > Documentation/networking/ethtool-netlink.rst to >=20 > the comment in dim.h. DIM is kernel internals we need user facing, meaningful documentation. I'm not 100% clea on what the exact difference is. If the difference is whether timer is restarted on new packet arrival or not - why mention CQE at all and not just call the configuration knob "restart timer on new packet arrival"?