Skip to content

Commit e963cb7

Browse files
Salil Mehtadavem330
authored andcommitted
net: hns3: Add HNS3 VF driver to kernel build framework
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 <salil.mehta@huawei.com> Signed-off-by: lipeng <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e2cb1de commit e963cb7

File tree

3 files changed

+30
-9
lines changed

3 files changed

+30
-9
lines changed

drivers/net/ethernet/hisilicon/Kconfig

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,6 @@ config HNS3_HCLGE
9494
compatibility layer. The engine would be used in Hisilicon hip08 family of
9595
SoCs and further upcoming SoCs.
9696

97-
config HNS3_ENET
98-
tristate "Hisilicon HNS3 Ethernet Device Support"
99-
depends on 64BIT && PCI
100-
depends on HNS3 && HNS3_HCLGE
101-
---help---
102-
This selects the Ethernet Driver for Hisilicon Network Subsystem 3 for hip08
103-
family of SoCs. This module depends upon HNAE3 driver to access the HNAE3
104-
devices and their associated operations.
105-
10697
config HNS3_DCB
10798
bool "Hisilicon HNS3 Data Center Bridge Support"
10899
default n
@@ -112,4 +103,23 @@ config HNS3_DCB
112103

113104
If unsure, say N.
114105

106+
config HNS3_HCLGEVF
107+
tristate "Hisilicon HNS3VF Acceleration Engine & Compatibility Layer Support"
108+
depends on PCI_MSI
109+
depends on HNS3
110+
depends on HNS3_HCLGE
111+
---help---
112+
This selects the HNS3 VF drivers network acceleration engine & its hardware
113+
compatibility layer. The engine would be used in Hisilicon hip08 family of
114+
SoCs and further upcoming SoCs.
115+
116+
config HNS3_ENET
117+
tristate "Hisilicon HNS3 Ethernet Device Support"
118+
depends on 64BIT && PCI
119+
depends on HNS3
120+
---help---
121+
This selects the Ethernet Driver for Hisilicon Network Subsystem 3 for hip08
122+
family of SoCs. This module depends upon HNAE3 driver to access the HNAE3
123+
devices and their associated operations.
124+
115125
endif # NET_VENDOR_HISILICON
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
# SPDX-License-Identifier: GPL-2.0+
12
#
23
# Makefile for the HISILICON network device drivers.
34
#
45

56
obj-$(CONFIG_HNS3) += hns3pf/
7+
obj-$(CONFIG_HNS3) += hns3vf/
68

79
obj-$(CONFIG_HNS3) += hnae3.o
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: GPL-2.0+
2+
#
3+
# Makefile for the HISILICON network device drivers.
4+
#
5+
6+
ccflags-y := -Idrivers/net/ethernet/hisilicon/hns3
7+
8+
obj-$(CONFIG_HNS3_HCLGEVF) += hclgevf.o
9+
hclgevf-objs = hclgevf_main.o hclgevf_cmd.o hclgevf_mbx.o

0 commit comments

Comments
 (0)