Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp185152pxv; Thu, 15 Jul 2021 01:49:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaQshMSnYiKr9crQeO2f3EU9P3mSDl76PFPstoh8wZ+IE3unX79UCZo6k+yUxlXbcPlORo X-Received: by 2002:a05:6402:3450:: with SMTP id l16mr5384562edc.358.1626338998657; Thu, 15 Jul 2021 01:49:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626338998; cv=none; d=google.com; s=arc-20160816; b=qhEwePAPjk+4uA29mEY/h6sIomk+mK7TbQ8lYpWRSKoC13OnxWsOwjmx23ce8GTU6G D4ZbQBhT7MaMVjUJ53+RlptGuf5ycGlCs5h4IBjHQ5a85C1puPYSYqdQ6jeTQD5unf/F XDaaeIal6rGMaTnJXOBeOyM36aMhRu1QyWYEVoB/pevMPas+46wJVYkC3d8xILcR0IQt 9N4kPS3QUoITQCTSTZYYsbvBgqi1llBECpApIGnQrQbPbYEvFlnZLLcP03eMj4xoILqj uaAVj+XEbXCRhq58ppv13b1n8BGvOi0CANDVv/mPDetFbv/PNFFcjURi6TQjKmBPBc3w 1x0A== 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=LcVjofG4TAHa7sc8SrnuN0lR4n5CjKq4jSfyl/h05UQ=; b=Se00gd1YKVB5P3Q8dxxf4vNN+Oa0hZqKo80eIsOt7YgytyoaXewas5KE+KKi9alCWD bmRaGE8DurDSAFDTusk0CHuy8ehJUmwi+cosVrQBSgjjFjBIfyYRxop42uwutAjgu22e BubR2pNo+os3L6AmiRGwz+26w/NIaNZYuq5RVE+k+Lb2HwGhC+DQETYAxy1lTWwLY1dj 2/U6ow99kNdAVhzoqJBdwN15cfHZozuQbksngYqOlI/2MKnhZVCqcwEpoXtmhrSTjIxX Mj/YmtzvDUj7/UdGiD0dS94Hc7ULmo0Zdgq1NQfe4KUgz8XY+x5KF3Wmf3rBnPBgP1G+ PX8Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg11si7007239ejc.255.2021.07.15.01.49.35; Thu, 15 Jul 2021 01:49:58 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240638AbhGOHvr (ORCPT + 99 others); Thu, 15 Jul 2021 03:51:47 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:11417 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240504AbhGOHvh (ORCPT ); Thu, 15 Jul 2021 03:51:37 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4GQRHS3CnnzcddC; Thu, 15 Jul 2021 15:45:24 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Thu, 15 Jul 2021 15:48:38 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 15 Jul 2021 15:48:38 +0800 From: Guangbin Huang To: , , CC: , , , , Subject: [PATCH V2 net-next 0/9] net: hns3: add support devlink Date: Thu, 15 Jul 2021 15:45:01 +0800 Message-ID: <1626335110-50769-1-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggemi759-chm.china.huawei.com (10.1.198.145) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds devlink support for the HNS3 ethernet driver. change log: V1 -> V2: 1. add more detailed descriptions of parameters in document hns3.rst. RFC -> V1: 1. use DEVLINK_INFO_VERSION_GENERIC_FW instead of "fw-version". 2. add devlink documentation for hns3 driver. Hao Chen (5): devlink: add documentation for hns3 driver net: hns3: add devlink reload support for PF net: hns3: add devlink reload support for VF net: hns3: add support for PF setting rx/tx buffer size by devlink param net: hns3: add support for VF setting rx/tx buffer size by devlink param Yufeng Mo (4): net: hns3: add support for registering devlink for PF net: hns3: add support for registering devlink for VF net: hns3: add support for devlink get info for PF net: hns3: add support for devlink get info for VF Documentation/networking/devlink/hns3.rst | 56 +++++ Documentation/networking/devlink/index.rst | 1 + drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 + drivers/net/ethernet/hisilicon/hns3/hns3_enet.c | 8 +- .../net/ethernet/hisilicon/hns3/hns3pf/Makefile | 2 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_devlink.c | 241 ++++++++++++++++++++ .../ethernet/hisilicon/hns3/hns3pf/hclge_devlink.h | 22 ++ .../ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 13 +- .../ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 2 + .../net/ethernet/hisilicon/hns3/hns3vf/Makefile | 2 +- .../hisilicon/hns3/hns3vf/hclgevf_devlink.c | 242 +++++++++++++++++++++ .../hisilicon/hns3/hns3vf/hclgevf_devlink.h | 22 ++ .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 11 + .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 3 + 14 files changed, 621 insertions(+), 5 deletions(-) create mode 100644 Documentation/networking/devlink/hns3.rst create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_devlink.c create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_devlink.h create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_devlink.c create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_devlink.h -- 2.8.1