Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2926915pxb; Sun, 8 Nov 2020 19:28:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrsoq6pbHMbkhj3gPn6uHQ0R7nxQ9G0tJlwHSJCj2ZJM7T3WSkWNHy0F7j6/LiXkaY0oSr X-Received: by 2002:a17:906:5589:: with SMTP id y9mr5166745ejp.412.1604892489711; Sun, 08 Nov 2020 19:28:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604892489; cv=none; d=google.com; s=arc-20160816; b=yIWp0GWwonbfTEmAew++dXCB1zyh4m1n+goVb5Q+Va9puX6IzF2uD0zZjCWVFVcX0+ 1pedcwLo9gbughqIcM+rWfayDkDOiQAqAd6Lbu/DrGVW0aqKvKwTH0cWmN0CwL1KbrzR ntWUXRe/uGyw371bLTc3vNi6gkKf8hm/ppUqg3glI8uZ4LE8KEYwm3BLs+2ryzxjK6rL Q1l9Nk6In+4ZntLX8c3WO9llHAqtB/ljYtfLisNHD6+u+lnGR0Nz3Zsic7ktxFDM1jKz w7cx0Ksy/N5sFhUgSVjwwU6eWXBDaOkpgYU6p8i6rKlcv9EiFURT8w7TQBJGgjE5AU+h 3SYg== 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=Q+owJYgz1XIdCzS/iO8K6fVg2FH+mW/52EnLPypjuhk=; b=LdK6dBKdXcCnJ4KtmXoUuSacZhRysOD+GAPrrX6lKHZBDAtj/BWaYw2KCJohlabTjO 0m97DqUWYX0EJ1Z92gIGnGoYqmpEoNmSjNS2R1WOylGuL20h77aFeWN23zKRZDss9rzO V129Xn+rMfYE/qZ+NFGWMaA9GT15NvCoOXknV7zKqCbMGFBx3ZPeHpwlwUHCdUhixhTw COV3EGXml8rv2VnL/1p5BA+cB5HW6nVm3PwVd9A/+BfqGwe2KYQmwKk5NVYQIxrPJ2hq qzyKDoAMZIfVe0XB00OvSbIMCuNJqNKA0MIi64lAUhNLzKQiSMt8mlcFpral+VN0JHCV 6emg== 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 u20si1774883edr.287.2020.11.08.19.27.47; Sun, 08 Nov 2020 19:28:09 -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 S1729234AbgKIDW0 (ORCPT + 99 others); Sun, 8 Nov 2020 22:22:26 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7614 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728038AbgKIDWY (ORCPT ); Sun, 8 Nov 2020 22:22:24 -0500 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CTxBD0bRxzLvv2; Mon, 9 Nov 2020 11:22:12 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Mon, 9 Nov 2020 11:22:15 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan Subject: [PATCH V2 net-next 00/11] net: hns3: updates for -next Date: Mon, 9 Nov 2020 11:22:28 +0800 Message-ID: <1604892159-19990-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. #11 adds debugfs support for interrupt coalesce. change log: V2 - reorder #2 & #3 to fix compiler error. fix some checkpatch warnings in #10 & #11. previous version: V1: https://patchwork.ozlabs.org/project/netdev/cover/1604730681-32559-1-git-send-email-tanhuazhong@huawei.com/ Huazhong Tan (11): 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 net: hns3: add debugfs support for interrupt coalesce drivers/net/ethernet/hisilicon/Kconfig | 1 + drivers/net/ethernet/hisilicon/hns3/hnae3.h | 12 + drivers/net/ethernet/hisilicon/hns3/hns3_debugfs.c | 127 ++++++++++ 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, 607 insertions(+), 39 deletions(-) -- 2.7.4