Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4413388pxv; Mon, 5 Jul 2021 23:46:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxFbe8jQuaoeJNbk3FPjrs6pejZUqUZBgg05rC8HpaCIKU7T5T56Qdt6ixeKCD8bmzjeCX X-Received: by 2002:a5d:8916:: with SMTP id b22mr15078399ion.108.1625553980449; Mon, 05 Jul 2021 23:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625553980; cv=none; d=google.com; s=arc-20160816; b=Ob6yzNSYM5NtquHbrvrqT6ITkpHhGDknpuh3/vb2nO2IcXF+H/pv1U3+9t8bKSx4IO C69qdq4szRUcP/1sjvL3Xs2vhlppAU9GdsX/0OIepmecpYnXm5h8LOd0huL++u3Cxguj 1oNL2R+YgbcY8YqI/yNfYef48g0xWjmSXxXinNWq0HCNNKx7zEgx4D469Q52N5DBD8AS E/7090wuzmv7nwYj6BNLqoIfbBIQ02TQkl1JNWZ4v6cLup9UZKd3ZKAX4RiXXRMvBxXR GYhqFycmrxSLCneEJ15Jj+vWG9KiiQrEI8wnCgDyMrvIfg79RdUy2ylBscKqk31Te/6H 3/Lw== 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=uL7T6mEIZRDLS5H8tlF3AFGaKObNLYXSdO6Qk6HX7TY=; b=TtQg03FLhHnAMzR3pcdSG3S9Fzb/hgJZ/txwPYYTHWW3GGs+a0h8bNsiYYuo3YEXoW V/6Nr4BKVkgThSdnifkdsXEa9JSaQQSESKenRRmphK5cv33RsdL7ziNnR5z+kvuOvLPK v5Fd/2r66zOcZDAqCi9yqx1dmQ0oOBSj0AFW9DoOhMS8bbEvUqL/ZL6Kj/yjCA/XfmsG 3FVrNj0PzjQ8lZ9TCnlkamwulJXa/7HQObXZ4YpHs3CDaUMAbsa5JjyIUogv0xxoVhen xJOj+qYDR/CkXKReI7uZx+ngsxFiLomCGXfWdcoM3a8ms1MHS4El9/c9tLhpK+TDxPIa IofQ== 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 k35si12825320jac.11.2021.07.05.23.46.09; Mon, 05 Jul 2021 23:46:20 -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 S230360AbhGFGrt (ORCPT + 99 others); Tue, 6 Jul 2021 02:47:49 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:6419 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbhGFGrh (ORCPT ); Tue, 6 Jul 2021 02:47:37 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4GJtHs74QVz78ZC; Tue, 6 Jul 2021 14:41:29 +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; Tue, 6 Jul 2021 14:44:55 +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; Tue, 6 Jul 2021 14:44:55 +0800 From: Guangbin Huang To: , , CC: , , , , Subject: [RFC PATCH net-next 0/8] net: hns3: add support devlink Date: Tue, 6 Jul 2021 14:41:24 +0800 Message-ID: <1625553692-2773-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. Hao Chen (4): 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 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 | 239 ++++++++++++++++++++ .../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 | 240 +++++++++++++++++++++ .../hisilicon/hns3/hns3vf/hclgevf_devlink.h | 22 ++ .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 11 + .../ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 3 + 12 files changed, 560 insertions(+), 5 deletions(-) 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