Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4455577pxb; Tue, 10 Nov 2020 17:28:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXTGh23npK5n9DD8NF6y+M4iP90xJZ/rXUjuMlte7GDZ6fJ+9YdF2CHBITT64om8Dyhh3u X-Received: by 2002:a17:906:2886:: with SMTP id o6mr24047774ejd.259.1605058085162; Tue, 10 Nov 2020 17:28:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605058085; cv=none; d=google.com; s=arc-20160816; b=kgwod7QeYWKq+bilzszrMVUuJxy6Txr5bc0uTGww16bDJvcCWQqOC52Z0Bgws59uDl UQXhnabBiF+ZlbTtYPXKapbksd64pvHsxc7wF+8Sk+y+/J+wffzjC1xK88hpFTc4MV8A JScX1aBU9gYcxc9B2Jnlbt9HvMmAsx+QdoIDBsN8Ea3HQjMK7/mIE5Sh7crl+acDDWNf OVYNlRz7K7j1kKS70ExgJqmVJ7486LdkcMxqh+f82iXehhMEcMYo9QrSheFqQWEJW+Yx mwOBfyj8djYfl+eTBIJ14fdRNHyTMZtZKn6VT1Sw2Bqluv0PkbQbgQDf6zWMF0YQCvWL AQpA== 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=HMkoiV+Z+OML+GS7KsQsaYJLCuSuIxhzisdeE2vmISk=; b=gAHr7Pbw6ar4CqFY9FTPNwFgJtNbCrXwDAfDxsewBq+bDcpmhrBbnFwV1zB/7ycSS0 i+B8S0JCpgK1zz9jFAAgcZoa1R7DI8UayFWgWVEoarojkyJnQHOVzof9IhaMWUP6Bt9D G3i9Fg9/xRcxSRVRrmSDmsBjY0iGhWobJMjVQkw0mFkLLV/R0KEOvrCWeUbjSOK1jQN/ PVvfXFpMNAlQBg2Hb4kVfyq9I2/eX6SSMypN0zA8c5aBW4ARGAcRcWPHizscYMGUfzhQ iAKo2IKWWzywISz13ECOTfAgTND4TFyuIreybhOMBe+hqZnfrtp1xHCw3X93ie7DKW59 W36w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=USdCXw1r; 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; 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 e9si285714ejk.493.2020.11.10.17.27.35; Tue, 10 Nov 2020 17:28:05 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=USdCXw1r; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732319AbgKKBZ1 (ORCPT + 99 others); Tue, 10 Nov 2020 20:25:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:58764 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727275AbgKKBZ1 (ORCPT ); Tue, 10 Nov 2020 20:25:27 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9A82F20825; Wed, 11 Nov 2020 01:25:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605057927; bh=CjreQz4Svm7D1uF1hgfEHc4Uw0YTa5E2rBYHOU23a0A=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=USdCXw1rB/dGFXl0AtKrycIUQ9OB5WE5ah80eKXG0iIupk8FjEJav8TAyPuVLhvIn oVJ2/3g3eK6upTuzODVQFx4EE5hXhCjsZGmvJ3krUc/V+gjq5Kf2Ycvur3yEQlU4Ie JEJQisHu5YHBIx2Wmzlp3iTqaWOLqc4g3gKZUMog= Date: Tue, 10 Nov 2020 17:25:25 -0800 From: Jakub Kicinski To: Huazhong Tan Cc: , , , , , Subject: Re: [PATCH V2 net-next 09/11] net: hns3: add support for EQ/CQ mode configuration Message-ID: <20201110172525.250da44c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <1604892159-19990-10-git-send-email-tanhuazhong@huawei.com> References: <1604892159-19990-1-git-send-email-tanhuazhong@huawei.com> <1604892159-19990-10-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 9 Nov 2020 11:22:37 +0800 Huazhong Tan wrote: > For device whose version is above V3(include V3), the GL can > select EQ or CQ mode, so adds support for it. > > In CQ mode, the coalesced timer will restart upon new completion, > while in EQ mode, the timer will not restart. > > Signed-off-by: Huazhong Tan Let's see if I understand - in CQ mode the timer is restarted very time new frame gets received/transmitted? IOW for a continuous stream of frames it will only generate an interrupt once it reaches max_frames? I think that if you need such a configuration knob we should add this as an option to the official ethtool -c/-C interface, now that we have the ability to extend the netlink API.