Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2573872pxv; Sun, 11 Jul 2021 18:39:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxd3E9w+DFdf8QhKLMRyf2p6EUSxMNYw4o0AbYsc/Bga2MO3XV3ZoOzuL0EQfwAgN6jmXe X-Received: by 2002:a17:906:4f14:: with SMTP id t20mr23851479eju.12.1626053982605; Sun, 11 Jul 2021 18:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626053982; cv=none; d=google.com; s=arc-20160816; b=Bh+i4A4s6H4q1Nyi2sOtPRMSU6Kcs4HmrPGsLdMFdMsBOmPDByP9uovUmmH3fpJIkd az6Ff6iz1ZwRCskMsHwbvR4WubFPC1D5LAQfjU+V2L4XnVEld7mp0/506DMiFEY1xnUE 3Vh/O08JRaHB+Lx8rXhpfEjC3zOLlkM9n7Eu0kwGl6jw+tToMPZxBzYBkkguRsZxh7qV 0R6RyZEISoNCW77QPGGzEvTKedQLoYdDqXAeO6W/nKBl94J3mSKob2N+5OQ/vYQQf6UM a/fia3Pro6SF+F6+VXOwVvCReLrKO5FkGS2oHiP39NvC5HdvFql8UyoTvfQLzQetEc1p CUyg== 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=rNzuAX99gZPbFBu2nZMrWlyRhTvssW/g8BYRDVlMJDg=; b=MXMpKYrlbG1dmMF946rONIWGNneD35fCcOT9v2X8NIo7h4FVae5i1yi8klESNcM54U /GKJYemZLEKThckIOri44bgLzGHP7UUxEDqBcJJ2VqjiClxhMMIe0Tx16JR4+EcFKbIj r54zBNAqEEqiLA4Tr99x7W09S6EqBnx+tBsYNASpxwbL3Qadk3AmDkHyDEoGy/qOAasF XKgPe36/rkT/d3BerErIkGraGwqGFQr6uOM7veDcv5dSBhbvew1GQVEltv6/yx451gGB 2Q9V4ROApEGDSkN9IpV6feGrLLAzjo2KgTddF4pK4tnlw7aGNyOS0ouwgjCjpE9bU1SW sP0Q== 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 w19si15443968edv.129.2021.07.11.18.39.20; Sun, 11 Jul 2021 18:39:42 -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 S232455AbhGLBlO (ORCPT + 99 others); Sun, 11 Jul 2021 21:41:14 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:10466 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229660AbhGLBlN (ORCPT ); Sun, 11 Jul 2021 21:41:13 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4GNRCc6qLXzccLb; Mon, 12 Jul 2021 09:35:08 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Mon, 12 Jul 2021 09:38:24 +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; Mon, 12 Jul 2021 09:38:24 +0800 From: Guangbin Huang To: , , CC: , , , , Subject: [PATCH net-next 0/9] net: hns3: add support devlink Date: Mon, 12 Jul 2021 09:34:49 +0800 Message-ID: <1626053698-46849-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: dggems705-chm.china.huawei.com (10.3.19.182) 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: 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 | 51 +++++ 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, 616 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