Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp102941pxb; Wed, 11 Nov 2020 21:39:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzL+owgtDhsdgh2bNIKJSSCECJcp0J+GcbVrIzARUgYFryQEO9CQ4x3DhN66n/MO1gbbRoV X-Received: by 2002:a17:906:9414:: with SMTP id q20mr28093302ejx.384.1605159581786; Wed, 11 Nov 2020 21:39:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605159581; cv=none; d=google.com; s=arc-20160816; b=OsqDpbzhjf4hGUW2/JmARdf4tp/4IGfQo1Uo7178bu26h9dSQlZQJ4SSBnKtetkHjr tHCtnEWioMTtZRJ5HbRFoux6KEiP+PR1fRhlsFL0fukIcD1IRcN4fXY1pbpBkssDxQmc HqILw5i0WQ3Lmug3h4ajASqLX6iOFgHtbN2Suwz/SG+oQgxoSnpBpA1T3ZaL0iqJMp9W hFTZCevlVGjjAqvZ0qMu4p7eGkDF/u+dEXNYbRSzv8dSt1AcNBTV9RXYbMKtCIZ4Le25 Mqp2+A3I2is/RX0VJ3gNGE3aLKFjJBatGSPv+GgqGFFrC36vys9UPsoeRYvaSnxmXccD VApA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=wvgeCZKaohebokDwGGAqfsWIkP24SXPmHX3Nqr//5tw=; b=ha99AdB00Z38/Wulk0MfEpF1I560qSv4rDfHW5/x0K4+NoCS0Y2UgFOU61hWvnhqGE cX1LBu9sPXb77Me7zholrqe5Q61cFVMz19XxJdVSnCxFWa8hZd1MZHknj8STDJvbBmjv TgUsdlG9LZZSvuIJKTdWjO3cPAfidXdy+CxWq4ls1JnKUUECNYfu4+cUYZQMks2WqZxz wB2lGt15qC+HRYgRB44shMeH+//vNtl8XovyihVV2UtBizR/i/qFAM35jz31Bn9Cbm8k cVSaVdiVOXUDbWn/C4NCH/7yS8zTsedbz+VS/PPmr4vAdl5jQyoCKRqE2/JeJx7cMxsB gP5w== 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 a13si3284328ejc.128.2020.11.11.21.39.18; Wed, 11 Nov 2020 21:39:41 -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 S1729157AbgKLFg3 (ORCPT + 99 others); Thu, 12 Nov 2020 00:36:29 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:7490 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728321AbgKLDfP (ORCPT ); Wed, 11 Nov 2020 22:35:15 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4CWnHN4H1szhjjM; Thu, 12 Nov 2020 11:33:04 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Thu, 12 Nov 2020 11:33:00 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH V3 net-next 00/10] net: hns3: updates for -next Date: Thu, 12 Nov 2020 11:33:08 +0800 Message-ID: <1605151998-12633-1-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are several updates relating to the interrupt coalesce for the HNS3 ethernet driver. #1 adds support for QL(quantity limiting, interrupt coalesce based on the frame quantity). #2 queries the maximum value of GL from the firmware instead of a fixed value in code. #3 adds support for 1us unit GL(gap limiting, interrupt coalesce based on the gap time). #4 renames gl_adapt_enable in struct hns3_enet_coalesce to fit its new usage. #5 & #6 adds support for the dynamic interrupt moderation, and adds a control private flag in ethtool. #7 adds wrapper function for state initialization. #8 adds a check for the read-only private flag. #9 & #10 adds support for EQ/CQ configuration, and adds a control private flag in ethtool. change log: V3 - fix a typo error in #1 reported by Jakub Kicinski. rewrite #9 commit log. remove #11 from this series. V2 - reorder #2 & #3 to fix compiler error. fix some checkpatch warnings in #10 & #11. previous version: V2: https://patchwork.ozlabs.org/project/netdev/cover/1604892159-19990-1-git-send-email-tanhuazhong@huawei.com/ V1: https://patchwork.ozlabs.org/project/netdev/cover/1604730681-32559-1-git-send-email-tanhuazhong@huawei.com/ Huazhong Tan (10): net: hns3: add support for configuring interrupt quantity limiting net: hns3: add support for querying maximum value of GL net: hns3: add support for 1us unit GL configuration net: hns3: rename gl_adapt_enable in struct hns3_enet_coalesce net: hns3: add support for dynamic interrupt moderation net: hns3: add ethtool priv-flag for DIM net: hns3: add hns3_state_init() to do state initialization net: hns3: add a check for ethtool priv-flag interface net: hns3: add support for EQ/CQ mode configuration net: hns3: add ethtool priv-flag for EQ/CQ drivers/net/ethernet/hisilicon/Kconfig | 1 + drivers/net/ethernet/hisilicon/hns3/hnae3.h | 12 + drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 1 + drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 258 ++++++++++++++++++--- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 31 ++- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 185 ++++++++++++++- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 8 + .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 8 + .../ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h | 8 + .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 8 + 10 files changed, 481 insertions(+), 39 deletions(-) -- 2.7.4