Skip to content

Commit

Permalink
net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)
Browse files Browse the repository at this point in the history
Add a VF driver for Microsoft Azure Network Adapter (MANA) that will be
available in the future.

Co-developed-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Dexuan Cui <decui@microsoft.com>
  • Loading branch information
dcui authored and intel-lab-lkp committed Apr 8, 2021
1 parent 3cd52c1 commit 14f90d1
Show file tree
Hide file tree
Showing 15 changed files with 6,289 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MAINTAINERS
Expand Up @@ -8261,11 +8261,12 @@ S: Maintained
T: git git://linuxtv.org/media_tree.git
F: drivers/media/i2c/hi556.c

Hyper-V CORE AND DRIVERS
Hyper-V/Azure CORE AND DRIVERS
M: "K. Y. Srinivasan" <kys@microsoft.com>
M: Haiyang Zhang <haiyangz@microsoft.com>
M: Stephen Hemminger <sthemmin@microsoft.com>
M: Wei Liu <wei.liu@kernel.org>
M: Dexuan Cui <decui@microsoft.com>
L: linux-hyperv@vger.kernel.org
S: Supported
T: git git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git
Expand All @@ -8282,6 +8283,7 @@ F: drivers/hid/hid-hyperv.c
F: drivers/hv/
F: drivers/input/serio/hyperv-keyboard.c
F: drivers/iommu/hyperv-iommu.c
F: drivers/net/ethernet/microsoft/
F: drivers/net/hyperv/
F: drivers/pci/controller/pci-hyperv-intf.c
F: drivers/pci/controller/pci-hyperv.c
Expand Down
1 change: 1 addition & 0 deletions drivers/net/ethernet/Kconfig
Expand Up @@ -82,6 +82,7 @@ source "drivers/net/ethernet/huawei/Kconfig"
source "drivers/net/ethernet/i825xx/Kconfig"
source "drivers/net/ethernet/ibm/Kconfig"
source "drivers/net/ethernet/intel/Kconfig"
source "drivers/net/ethernet/microsoft/Kconfig"
source "drivers/net/ethernet/xscale/Kconfig"

config JME
Expand Down
1 change: 1 addition & 0 deletions drivers/net/ethernet/Makefile
Expand Up @@ -45,6 +45,7 @@ obj-$(CONFIG_NET_VENDOR_HUAWEI) += huawei/
obj-$(CONFIG_NET_VENDOR_IBM) += ibm/
obj-$(CONFIG_NET_VENDOR_INTEL) += intel/
obj-$(CONFIG_NET_VENDOR_I825XX) += i825xx/
obj-$(CONFIG_NET_VENDOR_MICROSOFT) += microsoft/
obj-$(CONFIG_NET_VENDOR_XSCALE) += xscale/
obj-$(CONFIG_JME) += jme.o
obj-$(CONFIG_KORINA) += korina.o
Expand Down
30 changes: 30 additions & 0 deletions drivers/net/ethernet/microsoft/Kconfig
@@ -0,0 +1,30 @@
#
# Microsoft Azure network device configuration
#

config NET_VENDOR_MICROSOFT
bool "Microsoft Azure Network Device"
default y
help
If you have a network (Ethernet) device belonging to this class, say Y.

Note that the answer to this question doesn't directly affect the
kernel: saying N will just cause the configurator to skip the
question about Microsoft Azure network device. If you say Y, you
will be asked for your specific device in the following question.

if NET_VENDOR_MICROSOFT

config MICROSOFT_MANA
tristate "Microsoft Azure Network Adapter (MANA) support"
default m
depends on PCI_MSI && X86_64
select PCI_HYPERV
help
This driver supports Microsoft Azure Network Adapter (MANA).
So far, the driver is only validated on X86_64.

To compile this driver as a module, choose M here.
The module will be called mana.

endif #NET_VENDOR_MICROSOFT
5 changes: 5 additions & 0 deletions drivers/net/ethernet/microsoft/Makefile
@@ -0,0 +1,5 @@
#
# Makefile for the Microsoft Azure network device driver.
#

obj-$(CONFIG_MICROSOFT_MANA) += mana/
6 changes: 6 additions & 0 deletions drivers/net/ethernet/microsoft/mana/Makefile
@@ -0,0 +1,6 @@
# SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
#
# Makefile for the Microsoft Azure Network Adapter driver

obj-$(CONFIG_MICROSOFT_MANA) += mana.o
mana-objs := gdma_main.o shm_channel.o hw_channel.o mana_en.o mana_ethtool.o

0 comments on commit 14f90d1

Please sign in to comment.