From patchwork Tue Dec 12 17:52:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 121614 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4433642qgn; Tue, 12 Dec 2017 09:55:44 -0800 (PST) X-Google-Smtp-Source: ACJfBoub6ZWCuIJexZ2kyu03ljyMxrpmi4nwMEwDfRaDRdko1D3bYvYh0hSFHcEYloFwhTbvWvt2 X-Received: by 10.84.246.200 with SMTP id j8mr3008132plt.418.1513101344803; Tue, 12 Dec 2017 09:55:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513101344; cv=none; d=google.com; s=arc-20160816; b=JaBnzpO51ocuqE2/jM/AXXtRnJWvuQoSFhZ30boukqfQ/radlYJ7sisBlUchN6RAuu SlKFvZPPAhrNbVwXbMqwymPOB0hmCH0J9RZQ4QJQJc6BaBs4MTS3cDL3tWi3TEeb8J62 YXSSPZ6A0i6yExgyfQqUY3aPD2OSOUSQSkXcn5l1nhpC7F1OH2vt8LHVGWVdj2qT/Vaa Nn9KfK1d0BICWLTeoxy67GMulHyk++YUZJSTs+ygoIOUcgy/8/ANxmL/w0PSG5c+pKRJ 1oiFFi0i0c0LnC/YjTox2nRxoF/eOQ7pmbwsIlghpJjeQkr+ukm4z61pda3WauOhGIMp nutg== 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=GN4EMs6alvcb8qOFo8JfkTzsusi+y7zLO3upYka6wIM=; b=uFpNO7U+h8ca5X+sKxUCu/GXYa0Y22kZGpLN/wp7XQ+LjyMOziR1IxC+2ivRaonFHn /X92cNQKQdMSY6xdZeJarylLoimadzzGfXJIle5qYCKTRWZol9PAftSTgYb0J1m2ft5Z MmZtMcY8XJK2Tq7Nd+93MTLS9OAN3CIOkh6DuR9j2j/EIoWDuyfSlR4J/H9hfM9DrCcK EgPOdPzlQ7arMYa0IryruORZz7PL22Ye09PyYG/gMSibEW3ltXyz4Ody37O4sG/6AO39 EeyuEP2yNRo9NGBD0Gn1wQe0UWRyhcduXYprjuQf88TTX/EZDR698qPlBr64mFyN+4IF Pfgw== 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 t193si11757112pgc.810.2017.12.12.09.55.44; Tue, 12 Dec 2017 09:55:44 -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 S1752718AbdLLRzk (ORCPT + 11 others); Tue, 12 Dec 2017 12:55:40 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:11934 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752160AbdLLRxJ (ORCPT ); Tue, 12 Dec 2017 12:53:09 -0500 Received: from 172.30.72.60 (EHLO DGGEMS404-HUB.china.huawei.com) ([172.30.72.60]) by dggrg04-dlp.huawei.com (MOS 4.4.6-GA FastPath queued) with ESMTP id DLZ08315; Wed, 13 Dec 2017 01:53:05 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.226.117) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.361.1; Wed, 13 Dec 2017 01:52:58 +0800 From: Salil Mehta To: CC: , , , , , , , Subject: [PATCH V3 net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework Date: Tue, 12 Dec 2017 17:52:01 +0000 Message-ID: <20171212175205.236-5-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20171212175205.236-1-salil.mehta@huawei.com> References: <20171212175205.236-1-salil.mehta@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.202.226.117] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090201.5A301781.0113, 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: 578bb23f2d712ffca0890349cf833cea 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 --- Patch V3: Addressed SPDX change requested by Philippe Ombredanne Link: https://lkml.org/lkml/2017/12/8/874 Patch V2: No change Patch V1: Initial Submit --- drivers/net/ethernet/hisilicon/Kconfig | 28 +++++++++++++++------- drivers/net/ethernet/hisilicon/hns3/Makefile | 2 ++ .../net/ethernet/hisilicon/hns3/hns3vf/Makefile | 9 +++++++ 3 files changed, 30 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..c450945 100644 --- a/drivers/net/ethernet/hisilicon/hns3/Makefile +++ b/drivers/net/ethernet/hisilicon/hns3/Makefile @@ -1,7 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0+ # # Makefile for the HISILICON network device drivers. # 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..fb93bbd --- /dev/null +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/Makefile @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# 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