From patchwork Sun Dec 3 12:33:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 120454 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp3294061qgn; Sun, 3 Dec 2017 04:35:36 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ3Urr6iwM8xbVKLbAU1KZ25ii1SDC6Z1Mk8L47nuodBzTMc4qX2jXhGUXuXtHEkzss5vtZ X-Received: by 10.159.208.67 with SMTP id w3mr11776797plz.175.1512304536859; Sun, 03 Dec 2017 04:35:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512304536; cv=none; d=google.com; s=arc-20160816; b=Pvf+Fz1RY/Jc33LcWGo5vFImBYliLCmT/7I36qAm1gppEnMAQ/LQfVjQEtavDfsYRI RDEG3j7eQw6d+tCUWWoH4ELI5EIzMbpviG2OudOqfWxELFD/6yv+1JVkHH/pKaBRZJ6d 3wXtk1HgnEN2FtJHt0c6hdu3zyZ2XMXQUh41Y/LCiSjIA7AOqnSFtkgtL0fOE8HSfxkD 4bhkAwEtGs1bsVAClVzc4oa3WKeQ3Wm5tAlHWunAvZHhh7BCpGBn9Ii+WG1KCmE7f5Uh TNHaK7f7Qd0r3OTeNqPTDncZ714gjz36wGQVlktWrrdN3HsHiWVdkByGZ+WaXMpKnlew lO1g== 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=A5pnCEl/g1aXidRuZ6s5l/1MXZN58+x2UMB2ZaL36WA=; b=KSlNctHYnoUjylHCS9vcXgLc3NBSUwX+WZkzVe9z9swIDCZD80c7cySchX/Deurine 0yyyFUBK1aRvx9XIcrQZ2AreWzzPNUSMIyYqcQJpo2/Ufnizco5LLEEoHj2E/pYxiqEL mfio4dvw3hyH8ETYRp4X4YqCvhUqPsSVpiCH7Ycn9CC9I9Igiu3J2XnKzUv+/Flssqw+ 82iJvUWaouSIo1EBM4O4q41gDtry+mSq1Y71AoX/NhY+pRQDBXbvB0aumNV5y6TwA0mx jtMUFZ76beZq/nod+WCTqujtFKOynaWKv6XFPl61mFOXlHQcMJqvsUXZ1B3tPqBVrK/E 24VA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 x3si1759773pgt.246.2017.12.03.04.35.36; Sun, 03 Dec 2017 04:35:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752581AbdLCMff (ORCPT + 28 others); Sun, 3 Dec 2017 07:35:35 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:11907 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbdLCMf1 (ORCPT ); Sun, 3 Dec 2017 07:35:27 -0500 Received: from 172.30.72.60 (EHLO DGGEMS408-HUB.china.huawei.com) ([172.30.72.60]) by dggrg04-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DLR85363; Sun, 03 Dec 2017 20:34:11 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.47.82.162) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.361.1; Sun, 3 Dec 2017 20:34:01 +0800 From: Salil Mehta To: CC: , , , , , , , Subject: [PATCH net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework Date: Sun, 3 Dec 2017 12:33:03 +0000 Message-ID: <20171203123307.19820-5-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20171203123307.19820-1-salil.mehta@huawei.com> References: <20171203123307.19820-1-salil.mehta@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.47.82.162] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090205.5A23EF44.0050, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 538a8149899917753572ba638ead81ea Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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.11.0 diff --git a/drivers/net/ethernet/hisilicon/Kconfig b/drivers/net/ethernet/hisilicon/Kconfig index 30000b6aa7b8..8bcf470ff5f3 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 a9349e1f3e51..244664b5f24f 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 000000000000..a513d009de8a --- /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