You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
net: add Hisilicon Network Subsystem hnae framework support
HNAE (Hisilicon Network Acceleration Engine) is a framework to provide a unified ring buffer interface for Hisilicon Network Acceleration Engines. With the interface, upper layer can work as ethernet driver, ODP driver or other service driver on purpose. Signed-off-by: huangdaode <huangdaode@hisilicon.com> Signed-off-by: Kenneth Lee <liguozhu@huawei.com> Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
5b904d3940
commit
6fe6611ff2
@@ -39,4 +39,11 @@ config HNS_MDIO
|
||||
This selects the HNS MDIO support. It is needed by HNS_DSAF to access
|
||||
the PHY
|
||||
|
||||
config HNS
|
||||
tristate "Hisilicon Network Subsystem Support (Framework)"
|
||||
---help---
|
||||
This selects the framework support for Hisilicon Network Subsystem. It
|
||||
is needed by any driver which provides HNS acceleration engine or make
|
||||
use of the engine
|
||||
|
||||
endif # NET_VENDOR_HISILICON
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
obj-$(CONFIG_HIX5HD2_GMAC) += hix5hd2_gmac.o
|
||||
obj-$(CONFIG_HIP04_ETH) += hip04_eth.o
|
||||
obj-$(CONFIG_HNS_MDIO) += hns_mdio.o
|
||||
obj-$(CONFIG_HNS) += hns/
|
||||
|
||||
5
drivers/net/ethernet/hisilicon/hns/Makefile
Normal file
5
drivers/net/ethernet/hisilicon/hns/Makefile
Normal file
@@ -0,0 +1,5 @@
|
||||
#
|
||||
# Makefile for the HISILICON network device drivers.
|
||||
#
|
||||
|
||||
obj-$(CONFIG_HNS) += hnae.o
|
||||
507
drivers/net/ethernet/hisilicon/hns/hnae.c
Normal file
507
drivers/net/ethernet/hisilicon/hns/hnae.c
Normal file
File diff suppressed because it is too large
Load Diff
583
drivers/net/ethernet/hisilicon/hns/hnae.h
Normal file
583
drivers/net/ethernet/hisilicon/hns/hnae.h
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user