Skip to content

Commit 15e8e5f

Browse files
Salildavem330
authored andcommitted
net: hns3: Add HNS3 driver to kernel build framework & MAINTAINERS
This patch updates the MAINTAINERS file with HNS3 Ethernet driver maintainers names and other details. This also introduces the new Makefiles required to build the HNS3 Ethernet driver and updates the existing Kconfig file in the hisilicon folder. Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 496d03e commit 15e8e5f

File tree

5 files changed

+54
-0
lines changed

5 files changed

+54
-0
lines changed

MAINTAINERS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6148,6 +6148,14 @@ S: Maintained
61486148
F: drivers/net/ethernet/hisilicon/
61496149
F: Documentation/devicetree/bindings/net/hisilicon*.txt
61506150

6151+
HISILICON NETWORK SUBSYSTEM 3 DRIVER (HNS3)
6152+
M: Yisen Zhuang <yisen.zhuang@huawei.com>
6153+
M: Salil Mehta <salil.mehta@huawei.com>
6154+
L: netdev@vger.kernel.org
6155+
W: http://www.hisilicon.com
6156+
S: Maintained
6157+
F: drivers/net/ethernet/hisilicon/hns3/
6158+
61516159
HISILICON ROCE DRIVER
61526160
M: Lijun Ou <oulijun@huawei.com>
61536161
M: Wei Hu(Xavier) <xavier.huwei@huawei.com>

drivers/net/ethernet/hisilicon/Kconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,31 @@ config HNS_ENET
7676
This selects the general ethernet driver for HNS. This module make
7777
use of any HNS AE driver, such as HNS_DSAF
7878

79+
config HNS3
80+
tristate "Hisilicon Network Subsystem Support HNS3 (Framework)"
81+
depends on PCI
82+
---help---
83+
This selects the framework support for Hisilicon Network Subsystem 3.
84+
This layer facilitates clients like ENET, RoCE and user-space ethernet
85+
drivers(like ODP)to register with HNAE devices and their associated
86+
operations.
87+
88+
config HNS3_HCLGE
89+
tristate "Hisilicon HNS3 HCLGE Acceleration Engine & Compatibility Layer Support"
90+
depends on PCI_MSI
91+
depends on HNS3
92+
---help---
93+
This selects the HNS3_HCLGE network acceleration engine & its hardware
94+
compatibility layer. The engine would be used in Hisilicon hip08 family of
95+
SoCs and further upcoming SoCs.
96+
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+
79106
endif # NET_VENDOR_HISILICON

drivers/net/ethernet/hisilicon/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ obj-$(CONFIG_HIX5HD2_GMAC) += hix5hd2_gmac.o
66
obj-$(CONFIG_HIP04_ETH) += hip04_eth.o
77
obj-$(CONFIG_HNS_MDIO) += hns_mdio.o
88
obj-$(CONFIG_HNS) += hns/
9+
obj-$(CONFIG_HNS3) += hns3/
910
obj-$(CONFIG_HISI_FEMAC) += hisi_femac.o
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Makefile for the HISILICON network device drivers.
3+
#
4+
5+
obj-$(CONFIG_HNS3) += hns3pf/
6+
7+
obj-$(CONFIG_HNS3) += hnae3.o
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Makefile for the HISILICON network device drivers.
3+
#
4+
5+
ccflags-y := -Idrivers/net/ethernet/hisilicon/hns3
6+
7+
obj-$(CONFIG_HNS3_HCLGE) += hclge.o
8+
hclge-objs = hclge_main.o hclge_cmd.o hclge_mdio.o hclge_tm.o
9+
10+
obj-$(CONFIG_HNS3_ENET) += hns3.o
11+
hns3-objs = hns3_enet.o hns3_ethtool.o

0 commit comments

Comments
 (0)