Skip to content

Commit cfcbe85

Browse files
committed
Merge branch 'mlxsw'
Jiri Pirko says: ==================== Introduce Mellanox Technologies Switch ASICs switchdev drivers This patchset introduces Mellanox Technologies Switch driver infrastructure and support for SwitchX-2 ASIC. The driver is divided into 3 logical parts: 1) Bus - implements switch bus interface. Currently only PCI bus is implemented, but more buses will be added in the future. Namely I2C and SGMII. (patch #2) 2) Driver - implemements of ASIC-specific functions. Currently SwitchX-2 ASIC is supported, but a plan exists to introduce support for Spectrum ASIC in the near future. (patch #4) 3) Core - infrastructure that glues buses and drivers together. It implements register access logic (EMADs) and takes care of RX traps and events. (patch #1 and #3) ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents 8670f2a + 31557f0 commit cfcbe85

File tree

17 files changed

+8236
-0
lines changed

17 files changed

+8236
-0
lines changed

MAINTAINERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6645,6 +6645,15 @@ W: http://www.mellanox.com
66456645
Q: http://patchwork.ozlabs.org/project/netdev/list/
66466646
F: drivers/net/ethernet/mellanox/mlx4/en_*
66476647

6648+
MELLANOX ETHERNET SWITCH DRIVERS
6649+
M: Jiri Pirko <[email protected]>
6650+
M: Ido Schimmel <[email protected]>
6651+
6652+
S: Supported
6653+
W: http://www.mellanox.com
6654+
Q: http://patchwork.ozlabs.org/project/netdev/list/
6655+
F: drivers/net/ethernet/mellanox/mlxsw/
6656+
66486657
MEMORY MANAGEMENT
66496658
66506659
W: http://www.linux-mm.org

drivers/net/ethernet/mellanox/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ if NET_VENDOR_MELLANOX
1818

1919
source "drivers/net/ethernet/mellanox/mlx4/Kconfig"
2020
source "drivers/net/ethernet/mellanox/mlx5/core/Kconfig"
21+
source "drivers/net/ethernet/mellanox/mlxsw/Kconfig"
2122

2223
endif # NET_VENDOR_MELLANOX

drivers/net/ethernet/mellanox/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44

55
obj-$(CONFIG_MLX4_CORE) += mlx4/
66
obj-$(CONFIG_MLX5_CORE) += mlx5/core/
7+
obj-$(CONFIG_MLXSW_CORE) += mlxsw/
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#
2+
# Mellanox switch drivers configuration
3+
#
4+
5+
config MLXSW_CORE
6+
tristate "Mellanox Technologies Switch ASICs support"
7+
---help---
8+
This driver supports Mellanox Technologies Switch ASICs family.
9+
10+
To compile this driver as a module, choose M here: the
11+
module will be called mlxsw_core.
12+
13+
config MLXSW_PCI
14+
tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
15+
depends on PCI && MLXSW_CORE
16+
default m
17+
---help---
18+
This is PCI bus implementation for Mellanox Technologies Switch ASICs.
19+
20+
To compile this driver as a module, choose M here: the
21+
module will be called mlxsw_pci.
22+
23+
config MLXSW_SWITCHX2
24+
tristate "Mellanox Technologies SwitchX-2 support"
25+
depends on MLXSW_CORE && NET_SWITCHDEV
26+
default m
27+
---help---
28+
This driver supports Mellanox Technologies SwitchX-2 Ethernet
29+
Switch ASICs.
30+
31+
To compile this driver as a module, choose M here: the
32+
module will be called mlxsw_switchx2.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
obj-$(CONFIG_MLXSW_CORE) += mlxsw_core.o
2+
mlxsw_core-objs := core.o
3+
obj-$(CONFIG_MLXSW_PCI) += mlxsw_pci.o
4+
mlxsw_pci-objs := pci.o
5+
obj-$(CONFIG_MLXSW_SWITCHX2) += mlxsw_switchx2.o
6+
mlxsw_switchx2-objs := switchx2.o

0 commit comments

Comments
 (0)