Skip to content

Commit ca9c54d

Browse files
dcuidavem330
authored andcommitted
net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)
Add a VF driver for Microsoft Azure Network Adapter (MANA) that will be available in the future. Co-developed-by: Haiyang Zhang <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Co-developed-by: Shachar Raindel <[email protected]> Signed-off-by: Shachar Raindel <[email protected]> Signed-off-by: Dexuan Cui <[email protected]> Reviewed-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 83c1ca2 commit ca9c54d

File tree

15 files changed

+6156
-1
lines changed

15 files changed

+6156
-1
lines changed

MAINTAINERS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8267,11 +8267,12 @@ S: Maintained
82678267
T: git git://linuxtv.org/media_tree.git
82688268
F: drivers/media/i2c/hi556.c
82698269

8270-
Hyper-V CORE AND DRIVERS
8270+
Hyper-V/Azure CORE AND DRIVERS
82718271
M: "K. Y. Srinivasan" <[email protected]>
82728272
M: Haiyang Zhang <[email protected]>
82738273
M: Stephen Hemminger <[email protected]>
82748274
M: Wei Liu <[email protected]>
8275+
M: Dexuan Cui <[email protected]>
82758276
82768277
S: Supported
82778278
T: git git://git.kernel.org/pub/scm/linux/kernel/git/hyperv/linux.git
@@ -8288,6 +8289,7 @@ F: drivers/hid/hid-hyperv.c
82888289
F: drivers/hv/
82898290
F: drivers/input/serio/hyperv-keyboard.c
82908291
F: drivers/iommu/hyperv-iommu.c
8292+
F: drivers/net/ethernet/microsoft/
82918293
F: drivers/net/hyperv/
82928294
F: drivers/pci/controller/pci-hyperv-intf.c
82938295
F: drivers/pci/controller/pci-hyperv.c

drivers/net/ethernet/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ source "drivers/net/ethernet/huawei/Kconfig"
8282
source "drivers/net/ethernet/i825xx/Kconfig"
8383
source "drivers/net/ethernet/ibm/Kconfig"
8484
source "drivers/net/ethernet/intel/Kconfig"
85+
source "drivers/net/ethernet/microsoft/Kconfig"
8586
source "drivers/net/ethernet/xscale/Kconfig"
8687

8788
config JME

drivers/net/ethernet/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ obj-$(CONFIG_NET_VENDOR_HUAWEI) += huawei/
4545
obj-$(CONFIG_NET_VENDOR_IBM) += ibm/
4646
obj-$(CONFIG_NET_VENDOR_INTEL) += intel/
4747
obj-$(CONFIG_NET_VENDOR_I825XX) += i825xx/
48+
obj-$(CONFIG_NET_VENDOR_MICROSOFT) += microsoft/
4849
obj-$(CONFIG_NET_VENDOR_XSCALE) += xscale/
4950
obj-$(CONFIG_JME) += jme.o
5051
obj-$(CONFIG_KORINA) += korina.o
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#
2+
# Microsoft Azure network device configuration
3+
#
4+
5+
config NET_VENDOR_MICROSOFT
6+
bool "Microsoft Network Devices"
7+
default y
8+
help
9+
If you have a network (Ethernet) device belonging to this class, say Y.
10+
11+
Note that the answer to this question doesn't directly affect the
12+
kernel: saying N will just cause the configurator to skip the
13+
question about Microsoft network devices. If you say Y, you will be
14+
asked for your specific device in the following question.
15+
16+
if NET_VENDOR_MICROSOFT
17+
18+
config MICROSOFT_MANA
19+
tristate "Microsoft Azure Network Adapter (MANA) support"
20+
depends on PCI_MSI && X86_64
21+
select PCI_HYPERV
22+
help
23+
This driver supports Microsoft Azure Network Adapter (MANA).
24+
So far, the driver is only supported on X86_64.
25+
26+
To compile this driver as a module, choose M here.
27+
The module will be called mana.
28+
29+
endif #NET_VENDOR_MICROSOFT
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#
2+
# Makefile for the Microsoft Azure network device driver.
3+
#
4+
5+
obj-$(CONFIG_MICROSOFT_MANA) += mana/
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2+
#
3+
# Makefile for the Microsoft Azure Network Adapter driver
4+
5+
obj-$(CONFIG_MICROSOFT_MANA) += mana.o
6+
mana-objs := gdma_main.o shm_channel.o hw_channel.o mana_en.o mana_ethtool.o

0 commit comments

Comments
 (0)