Skip to content

Commit 93c1edb

Browse files
jpirkodavem330
authored andcommitted
mlxsw: Introduce Mellanox switch driver core
Add core components of Mellanox switch driver infrastructure. Core infrastructure is designed so that it can be used by multiple bus drivers (PCI now, I2C and SGMII are planned to be implemented in the future). Multiple switch kind drivers can be registered as well. This core serves as a glue between buses and drivers. Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: Elad Raz <[email protected]> Reviewed-by: Scott Feldman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 8670f2a commit 93c1edb

File tree

11 files changed

+2366
-0
lines changed

11 files changed

+2366
-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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
obj-$(CONFIG_MLXSW_CORE) += mlxsw_core.o
2+
mlxsw_core-objs := core.o

0 commit comments

Comments
 (0)