Debian Codegraph @

drivers/net/ethernet/mellanox/mlxsw/Kconfig

raw
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Mellanox switch drivers configuration
4 #
5
6 config MLXSW_CORE
7 tristate "Mellanox Technologies Switch ASICs support"
8 select NET_DEVLINK
9 select MLXFW
10 select AUXILIARY_BUS
11 help
12 This driver supports Mellanox Technologies Switch ASICs family.
13
14 To compile this driver as a module, choose M here: the
15 module will be called mlxsw_core.
16
17 config MLXSW_CORE_HWMON
18 bool "HWMON support for Mellanox Technologies Switch ASICs"
19 depends on MLXSW_CORE && HWMON
20 depends on !(MLXSW_CORE=y && HWMON=m)
21 default y
22 help
23 Say Y here if you want to expose HWMON interface on mlxsw devices.
24
25 config MLXSW_CORE_THERMAL
26 bool "Thermal zone support for Mellanox Technologies Switch ASICs"
27 depends on MLXSW_CORE && THERMAL
28 default y
29 help
30 Say Y here if you want to automatically control fans speed according
31 ambient temperature reported by ASIC.
32
33 config MLXSW_PCI
34 tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
35 depends on PCI && HAS_IOMEM && MLXSW_CORE
36 select PAGE_POOL
37 default m
38 help
39 This is PCI bus implementation for Mellanox Technologies Switch ASICs.
40
41 To compile this driver as a module, choose M here: the
42 module will be called mlxsw_pci.
43
44 config MLXSW_I2C
45 tristate "I2C bus implementation for Mellanox Technologies Switch ASICs"
46 depends on I2C && MLXSW_CORE
47 default m
48 help
49 This is I2C bus implementation for Mellanox Technologies Switch ASICs.
50
51 To compile this driver as a module, choose M here: the
52 module will be called mlxsw_i2c.
53
54 config MLXSW_SPECTRUM
55 tristate "Mellanox Technologies Spectrum family support"
56 depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q
57 depends on PSAMPLE || PSAMPLE=n
58 depends on BRIDGE || BRIDGE=n
59 depends on NET_IPGRE || NET_IPGRE=n
60 depends on IPV6_GRE || IPV6_GRE=n
61 depends on VXLAN || VXLAN=n
62 depends on PTP_1588_CLOCK_OPTIONAL
63 select GENERIC_ALLOCATOR
64 select PARMAN
65 select OBJAGG
66 select NET_PTP_CLASSIFY if PTP_1588_CLOCK
67 default m
68 help
69 This driver supports Mellanox Technologies
70 Spectrum/Spectrum-2/Spectrum-3/Spectrum-4 Ethernet Switch ASICs.
71
72 To compile this driver as a module, choose M here: the
73 module will be called mlxsw_spectrum.
74
75 config MLXSW_SPECTRUM_DCB
76 bool "Data Center Bridging (DCB) support"
77 depends on MLXSW_SPECTRUM && DCB
78 default y
79 help
80 Say Y here if you want to use Data Center Bridging (DCB) in the
81 driver.
82
83 config MLXSW_MINIMAL
84 tristate "Mellanox Technologies minimal I2C support"
85 depends on MLXSW_CORE && MLXSW_I2C
86 default m
87 help
88 This driver supports I2C access for Mellanox Technologies Switch
89 ASICs.
90
91 To compile this driver as a module, choose M here: the
92 module will be called mlxsw_minimal.