Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp40897pxb; Tue, 10 Nov 2020 19:08:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzeOSkMf459+PHq76PRZbWufOe2s8VKvssizCucf7HxfUtK/QRRX1sWaXSzHXxqiLdSG34o X-Received: by 2002:a17:907:264d:: with SMTP id ar13mr22593178ejc.207.1605064092011; Tue, 10 Nov 2020 19:08:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605064092; cv=none; d=google.com; s=arc-20160816; b=JIgeqVMMW6m1UJB2VUZbMy6CB6fWIHsU5k1Z+Ei2ShvGoP9WxJiVXGeSH6dgU0c5q5 9MZvDKWPftvaJIqUe+CzMJFCSaENNsTSKZl/C8F1Mn2rhCjqHgSFC81AsNtpY3UFjoUd Hdq1mL2GG16eW4SqxWIUdReQ3OzwqASXkP0pwvByd7x6mnCLawfMof9u/O6LH+dZggFA Ai2t9CNVfKbc/9Ovjbv0vhvcWrkkFq/CVloUR5vU5LXh3p7zGP/ds9CheOLkGquF0GjK MOq0DoUEflhFHZwlNy13MlpF6E6aUVX03NlgzcH6o6NBUdQn5KUyjnvcOgoOlBgrpuUm T0pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=0B86/bn8DJHKLfQyXIQioLTLVKcTIhm806lLj0lK1wo=; b=u66c31AZieg/3fkt83N1qlyI32WhT4o/SpIPhjs545SCpQIvcmlZvWtEWtlSEcZ0tJ 3FQYrHAhdnShghy05J668Xnt4GsYsfesG7jZzHPJi39UfVWQU+MBug28wUQh+ZJk6gJ9 jdpsOOS9HWI/VGQdhrS1wh/M/Mp63LRx+0VEKTrHvsrsKcVbd8YUTFkKG1W3NddNEjUr JXCVfP0s/0KFLmlw523nmxgEMdFzaHHDMKhzS1G5SsORGX1ybfilljrXK02fbseOfbbq VIps/NALI3TdmGWuTFZ45D0v/6FWoo8gfasmptu85HObsBRrdJ94B+0gPTG5WiyKzrpP kb4Q== 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 v4si544315edl.447.2020.11.10.19.07.48; Tue, 10 Nov 2020 19:08:11 -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; 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 S1725987AbgKKDEI (ORCPT + 99 others); Tue, 10 Nov 2020 22:04:08 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:7877 "EHLO szxga07-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725839AbgKKDEI (ORCPT ); Tue, 10 Nov 2020 22:04:08 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4CW8hC66N8z755W; Wed, 11 Nov 2020 11:03:55 +0800 (CST) Received: from [127.0.0.1] (10.74.149.191) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Wed, 11 Nov 2020 11:03:54 +0800 Subject: Re: [PATCH V2 net-next 09/11] net: hns3: add support for EQ/CQ mode configuration To: Jakub Kicinski CC: , , , , , References: <1604892159-19990-1-git-send-email-tanhuazhong@huawei.com> <1604892159-19990-10-git-send-email-tanhuazhong@huawei.com> <20201110172525.250da44c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: tanhuazhong Message-ID: <4ebdbf23-f624-b1fc-c659-7cb6d54e5c9b@huawei.com> Date: Wed, 11 Nov 2020 11:03:53 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20201110172525.250da44c@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.149.191] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/11 9:25, Jakub Kicinski wrote: > 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? > Hi, Jakub. This EQ/CQ is related to the GL(gap limiting, interrupt coalesce based on the gap time). More exactly, the coalesced timer will restart when the first new completion occurs. Will fix the commit log. > 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. > It seems need more jobs to be did later. Thanks. > . >