aboutsummaryrefslogtreecommitdiff
path: root/sys/modules
diff options
context:
space:
mode:
authorWei Hu <whu@FreeBSD.org>2021-08-20 08:43:10 +0000
committerWei Hu <whu@FreeBSD.org>2021-08-20 10:44:57 +0000
commitce110ea12fcea71ae437d0a1d0549d3d32055b0e (patch)
tree306e7c8986b92e503a57fca6b50172b887ed64b3 /sys/modules
parent464a166c27bb8947d5de1f617170ef6813587cc3 (diff)
Microsoft Azure Network Adapter(MANA) VF support
MANA is the new network adapter from Microsoft which will be available in Azure public cloud. It provides SRIOV NIC as virtual function to guest OS running on Hyper-V. The code can be divided into two major parts. Gdma_main.c is the one to bring up the hardware board and drives all underlying hardware queue infrastructure. Mana_en.c contains all main ethernet driver code. It has only tested and supported on amd64 architecture. PR: 256336 Reviewed by: decui@microsoft.com Tested by: whu MFC after: 2 week Relnotes: yes Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D31150
Diffstat (limited to 'sys/modules')
-rw-r--r--sys/modules/Makefile2
-rw-r--r--sys/modules/mana/Makefile12
2 files changed, 14 insertions, 0 deletions
diff --git a/sys/modules/Makefile b/sys/modules/Makefile
index fdaea7fa4ec9..7ef3c5a477ce 100644
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@ -231,6 +231,7 @@ SUBDIR= \
mac_stub \
mac_test \
${_malo} \
+ ${_mana} \
md \
mdio \
mem \
@@ -648,6 +649,7 @@ _ixv= ixv
.if ${MK_SOURCELESS_UCODE} != "no"
_lio= lio
.endif
+_mana= mana
_nctgpio= nctgpio
_ntb= ntb
_ocs_fc= ocs_fc
diff --git a/sys/modules/mana/Makefile b/sys/modules/mana/Makefile
new file mode 100644
index 000000000000..3122c066e948
--- /dev/null
+++ b/sys/modules/mana/Makefile
@@ -0,0 +1,12 @@
+# $FreeBSD$
+
+.PATH: ${SRCTOP}/sys/dev/mana
+
+KMOD = if_mana
+SRCS = gdma_main.c mana_sysctl.c shm_channel.c
+SRCS += mana_en.c gdma_util.c hw_channel.c
+SRCS += device_if.h bus_if.h pci_if.h
+
+CFLAGS += -I${SRCTOP}/sys/dev/mana
+
+.include <bsd.kmod.mk>