From patchwork Thu Dec 14 18:03:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 122017 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp7135089qgn; Thu, 14 Dec 2017 10:04:22 -0800 (PST) X-Google-Smtp-Source: ACJfBot/O83vcOYEtwofnfpQ15PeWCEaQ8OHXXy+1kHddD/pq1pMRc0VtVrDz9f4puXdmjGvdhtF X-Received: by 10.98.202.217 with SMTP id y86mr10469133pfk.118.1513274662770; Thu, 14 Dec 2017 10:04:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513274662; cv=none; d=google.com; s=arc-20160816; b=D/q2uffjIapqA9ecifl0fh8vCrhx0wBmPgu1F2AgFT72WeswhMCePAEyFZBIBZMSMi a/6RLUr8knzc1qTdRg0AQwh8drvU3Hbm6N4cmoZQdt5bBA8gcK27hlUE244zsm0Wwnxu RMsVnW2jqj/ljvGXIbagKc0gqY/fk888yDBT6r0K0DcPGW3jJeaWxcaxIqZf1PMqven7 m8ydBEezO9mxx/tbwxXQkBe4XiyvTUsZ0DecYytkbIJryzwH8iIr6KCgIv6Lt1dD3O4K EYQddfzB551IPnAYbhViRRwj4Uq8gG5l1yZcQy6ATsHGhQYSDXfliLgtEiPPwshj0OzZ l3Rg== 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=aW3bOrp+zaieQGDngxJlWlTuxbuAf4V+y/HgygqV0Hs=; b=OuELaOaURsgsTtEoNtHOhWyMK0ar/8N5VBZbOsscHD4IoUj+71Lr/Cl0KIV51Ylpvt YQm5bxO2DtWhUcN3glOZ6ofsi5JZNZRh+sXy8Uqtrlt9lhMYRyjRII3JlqZ6oUwPV5j+ uUAsC0eJHTA+2UOPBHspNLh8rY3fVYxH0Qpx+38YGPCriJibDY78LlMYoy2qfinCg3+t niCAxEdiKIXNGUwrEPwGvTGkD/1HNlN3hI8irHoVQVpTPXaGdJZpByiY2K2/d36+HyyU uTvz1zRhvjbiGM+S0S62I4QKysappk202XfDlE7EBup6ZQJBBrnWRCXiA+HdHUtNJxYt Na8A== 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 s6si3607455pfe.53.2017.12.14.10.04.22; Thu, 14 Dec 2017 10:04:22 -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 S1754150AbdLNSEU (ORCPT + 20 others); Thu, 14 Dec 2017 13:04:20 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:2687 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753854AbdLNSEQ (ORCPT ); Thu, 14 Dec 2017 13:04:16 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id DC9BA7DA92BB3; Fri, 15 Dec 2017 02:04:02 +0800 (CST) Received: from S00293818-DELL1.china.huawei.com (10.202.226.117) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.361.1; Fri, 15 Dec 2017 02:03:56 +0800 From: Salil Mehta To: CC: , , , , , , , Subject: [PATCH v4 net-next 4/8] net: hns3: Add HNS3 VF driver to kernel build framework Date: Thu, 14 Dec 2017 18:03:05 +0000 Message-ID: <20171214180309.14480-5-salil.mehta@huawei.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20171214180309.14480-1-salil.mehta@huawei.com> References: <20171214180309.14480-1-salil.mehta@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.202.226.117] X-CFilter-Loop: Reflected 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 | 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