Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/rzhang/linux
[linux-2.6-block.git] / drivers / net / ethernet / mellanox / mlxsw / Kconfig
1 #
2 # Mellanox switch drivers configuration
3 #
4
5 config MLXSW_CORE
6         tristate "Mellanox Technologies Switch ASICs support"
7         select NET_DEVLINK
8         ---help---
9           This driver supports Mellanox Technologies Switch ASICs family.
10
11           To compile this driver as a module, choose M here: the
12           module will be called mlxsw_core.
13
14 config MLXSW_CORE_HWMON
15         bool "HWMON support for Mellanox Technologies Switch ASICs"
16         depends on MLXSW_CORE && HWMON
17         depends on !(MLXSW_CORE=y && HWMON=m)
18         default y
19         ---help---
20           Say Y here if you want to expose HWMON interface on mlxsw devices.
21
22 config MLXSW_CORE_THERMAL
23         bool "Thermal zone support for Mellanox Technologies Switch ASICs"
24         depends on MLXSW_CORE && THERMAL
25         default y
26         ---help---
27          Say Y here if you want to automatically control fans speed according
28          ambient temperature reported by ASIC.
29
30 config MLXSW_PCI
31         tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
32         depends on PCI && HAS_IOMEM && MLXSW_CORE
33         default m
34         ---help---
35           This is PCI bus implementation for Mellanox Technologies Switch ASICs.
36
37           To compile this driver as a module, choose M here: the
38           module will be called mlxsw_pci.
39
40 config MLXSW_I2C
41         tristate "I2C bus implementation for Mellanox Technologies Switch ASICs"
42         depends on I2C && MLXSW_CORE
43         default m
44         ---help---
45           This is I2C bus implementation for Mellanox Technologies Switch ASICs.
46
47           To compile this driver as a module, choose M here: the
48           module will be called mlxsw_i2c.
49
50 config MLXSW_SWITCHIB
51         tristate "Mellanox Technologies SwitchIB and SwitchIB-2 support"
52         depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV
53         default m
54         ---help---
55           This driver supports Mellanox Technologies SwitchIB and SwitchIB-2
56           Infiniband Switch ASICs.
57
58           To compile this driver as a module, choose M here: the
59           module will be called mlxsw_switchib.
60
61 config MLXSW_SWITCHX2
62         tristate "Mellanox Technologies SwitchX-2 support"
63         depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV
64         default m
65         ---help---
66           This driver supports Mellanox Technologies SwitchX-2 Ethernet
67           Switch ASICs.
68
69           To compile this driver as a module, choose M here: the
70           module will be called mlxsw_switchx2.
71
72 config MLXSW_SPECTRUM
73         tristate "Mellanox Technologies Spectrum support"
74         depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q
75         depends on PSAMPLE || PSAMPLE=n
76         depends on BRIDGE || BRIDGE=n
77         depends on IPV6 || IPV6=n
78         depends on NET_IPGRE || NET_IPGRE=n
79         depends on IPV6_GRE || IPV6_GRE=n
80         depends on VXLAN || VXLAN=n
81         select GENERIC_ALLOCATOR
82         select PARMAN
83         select OBJAGG
84         select MLXFW
85         default m
86         ---help---
87           This driver supports Mellanox Technologies Spectrum Ethernet
88           Switch ASICs.
89
90           To compile this driver as a module, choose M here: the
91           module will be called mlxsw_spectrum.
92
93 config MLXSW_SPECTRUM_DCB
94         bool "Data Center Bridging (DCB) support"
95         depends on MLXSW_SPECTRUM && DCB
96         default y
97         ---help---
98           Say Y here if you want to use Data Center Bridging (DCB) in the
99           driver.
100
101 config MLXSW_MINIMAL
102         tristate "Mellanox Technologies minimal I2C support"
103         depends on MLXSW_CORE && MLXSW_I2C
104         default m
105         ---help---
106           This driver supports I2C access for Mellanox Technologies Switch
107           ASICs.
108
109           To compile this driver as a module, choose M here: the
110           module will be called mlxsw_minimal.