From patchwork Fri Dec 8 21:16:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 121241 Delivered-To: patch@linaro.org Received: by 10.140.42.230 with SMTP id c93csp25752qga; Fri, 8 Dec 2017 13:18:11 -0800 (PST) X-Google-Smtp-Source: AGs4zMYdzewWa3e6o+f631DdvasOX0HjDJ8EdpDz1YZsFGx1bzqj00AKizHQSwo+tHKPHJgR+UoC X-Received: by 10.101.69.2 with SMTP id n2mr31221262pgq.79.1512767891834; Fri, 08 Dec 2017 13:18:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512767891; cv=none; d=google.com; s=arc-20160816; b=tGdKAyBVK7sKltQ3aJDdwHKLdDDN8C2R/ThYpA4B7/DH2o6NmoXJoeOdMXfcBstm1h qPgl1JbtRmQWan2/bt/l1mPQZhVHBp8XBTQOiW864F6HKeFKAo3TgrooUfV7rgxwNT1J yvrHyZEs7LEry2OzLNXqKiKbA/sS18ODE33XMmNgRrIMCcHa2nFTZFQGfB0838LJhAB6 meeZ4GFXM6MR/O4hV4cvCueewJMltcOhLvQKXDgmZKweEFDVJEmhjYB0j8MuUypinKrO geB2zhJX19CSdmppwP/GA14Ip7AIFaxSYvCdFZMD/lGAlDFdfRWUed5Pe7bZhM4Ypv0+ bTsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=MWkcaSXeBrTCVwVyZCZHa3YU5SP8eT7nJbVuIyolTpc=; b=iSmxzQQz9lSlEpco3cDSy1Hxcn+h72yG0Kuv31/0Akn9pU6MyCchZYWxZ9V6flEqTR 8HPzXHb2rrurjbuFFodwgZvYbHP8RBMmNmyuNfG0UpUUbjy+DL6PkA6FGjZKDseTBMfP yvOL2WUFEycs06ofGHZDnq4cA8wfSJB4CqaDtg684rQhvfeIvGL/8OVQGuMEW8Afnsr2 TwIS0jiaB7ZKatdQG5ASifORsbLQy4ucKiv0oTlvNUVDor3WoCQSq4s/hbyNKTsDZCS2 I0/bsMDuIt7jBOxxpBmlUfawLeMw5wHM4x0IqA1JwlvKkG7sU81a5HIwqlSvV4/H2NCD g0SQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j5si6815997pfk.24.2017.12.08.13.18.11; Fri, 08 Dec 2017 13:18:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753643AbdLHVSI (ORCPT + 7 others); Fri, 8 Dec 2017 16:18:08 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:37205 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1753128AbdLHVSC (ORCPT ); Fri, 8 Dec 2017 16:18:02 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 4720DA460A97C; Sat, 9 Dec 2017 05:17:49 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.226.117) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.361.1; Sat, 9 Dec 2017 05:17:44 +0800 From: Salil Mehta To: CC: , , , , , , , Subject: [PATCH V2 net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework Date: Fri, 8 Dec 2017 21:16:58 +0000 Message-ID: <20171208211702.20104-5-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20171208211702.20104-1-salil.mehta@huawei.com> References: <20171208211702.20104-1-salil.mehta@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.202.226.117] X-CFilter-Loop: Reflected Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch introduces the new Makefiles and updates existing Makefiles required to build the HNS3 Virtual Function driver. This also updates the Kconfig for introduction of new menuconfig entries related to VF driver. Signed-off-by: Salil Mehta Signed-off-by: lipeng --- drivers/net/ethernet/hisilicon/Kconfig | 28 +++++++++++++++------- drivers/net/ethernet/hisilicon/hns3/Makefile | 1 + .../net/ethernet/hisilicon/hns3/hns3vf/Makefile | 8 +++++++ 3 files changed, 28 insertions(+), 9 deletions(-) create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile -- 2.7.4 diff --git a/drivers/net/ethernet/hisilicon/Kconfig b/drivers/net/ethernet/hisilicon/Kconfig index 30000b6..8bcf470 100644 --- a/drivers/net/ethernet/hisilicon/Kconfig +++ b/drivers/net/ethernet/hisilicon/Kconfig @@ -94,15 +94,6 @@ config HNS3_HCLGE compatibility layer. The engine would be used in Hisilicon hip08 family of SoCs and further upcoming SoCs. -config HNS3_ENET - tristate "Hisilicon HNS3 Ethernet Device Support" - depends on 64BIT && PCI - depends on HNS3 && HNS3_HCLGE - ---help--- - This selects the Ethernet Driver for Hisilicon Network Subsystem 3 for hip08 - family of SoCs. This module depends upon HNAE3 driver to access the HNAE3 - devices and their associated operations. - config HNS3_DCB bool "Hisilicon HNS3 Data Center Bridge Support" default n @@ -112,4 +103,23 @@ config HNS3_DCB If unsure, say N. +config HNS3_HCLGEVF + tristate "Hisilicon HNS3VF Acceleration Engine & Compatibility Layer Support" + depends on PCI_MSI + depends on HNS3 + depends on HNS3_HCLGE + ---help--- + This selects the HNS3 VF drivers network acceleration engine & its hardware + compatibility layer. The engine would be used in Hisilicon hip08 family of + SoCs and further upcoming SoCs. + +config HNS3_ENET + tristate "Hisilicon HNS3 Ethernet Device Support" + depends on 64BIT && PCI + depends on HNS3 + ---help--- + This selects the Ethernet Driver for Hisilicon Network Subsystem 3 for hip08 + family of SoCs. This module depends upon HNAE3 driver to access the HNAE3 + devices and their associated operations. + endif # NET_VENDOR_HISILICON diff --git a/drivers/net/ethernet/hisilicon/hns3/Makefile b/drivers/net/ethernet/hisilicon/hns3/Makefile index a9349e1..244664b 100644 --- a/drivers/net/ethernet/hisilicon/hns3/Makefile +++ b/drivers/net/ethernet/hisilicon/hns3/Makefile @@ -3,5 +3,6 @@ # obj-$(CONFIG_HNS3) += hns3pf/ +obj-$(CONFIG_HNS3) += hns3vf/ obj-$(CONFIG_HNS3) += hnae3.o diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile b/drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile new file mode 100644 index 0000000..a513d00 --- /dev/null +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile @@ -0,0 +1,8 @@ +# +# Makefile for the HISILICON network device drivers. +# + +ccflags-y := -Idrivers/net/ethernet/hisilicon/hns3 + +obj-$(CONFIG_HNS3_HCLGEVF) += hclgevf.o +hclgevf-objs = hclgevf_main.o hclgevf_cmd.o hclgevf_mbx.o \ No newline at end of file