Skip to content

Commit b5996f1

Browse files
huangdaodedavem330
authored andcommitted
net: add Hisilicon Network Subsystem basic ethernet support
This is to add basic ethernet support for HNS. It is one of the way to use the HNS acceleration engine. But most of the decoding/encoding capability of the AE cannot be used in this way. This submit contains the basic feature as a ethernet driver. More will be added later. Signed-off-by: huangdaode <[email protected]> Signed-off-by: Kenneth Lee <[email protected]> Signed-off-by: Yisen Zhuang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 511e6bc commit b5996f1

File tree

5 files changed

+2971
-0
lines changed

5 files changed

+2971
-0
lines changed

drivers/net/ethernet/hisilicon/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,12 @@ config HNS_DSAF
5555
acceleration engine support. The engine is used in Hisilicon hip05,
5656
Hi1610 and further ICT SoC
5757

58+
config HNS_ENET
59+
tristate "Hisilicon HNS Ethernet Device Support"
60+
select PHYLIB
61+
select HNS
62+
---help---
63+
This selects the general ethernet driver for HNS. This module make
64+
use of any HNS AE driver, such as HNS_DSAF
65+
5866
endif # NET_VENDOR_HISILICON

drivers/net/ethernet/hisilicon/hns/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ obj-$(CONFIG_HNS) += hnae.o
77
obj-$(CONFIG_HNS_DSAF) += hns_dsaf.o
88
hns_dsaf-objs = hns_ae_adapt.o hns_dsaf_gmac.o hns_dsaf_mac.o hns_dsaf_misc.o \
99
hns_dsaf_main.o hns_dsaf_ppe.o hns_dsaf_rcb.o hns_dsaf_xgmac.o
10+
11+
obj-$(CONFIG_HNS_ENET) += hns_enet_drv.o
12+
hns_enet_drv-objs = hns_enet.o hns_ethtool.o

0 commit comments

Comments
 (0)