hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/net/ethernet/mellanox/mlxsw/Kconfig
....@@ -1,11 +1,13 @@
1
+# SPDX-License-Identifier: GPL-2.0-only
12 #
23 # Mellanox switch drivers configuration
34 #
45
56 config MLXSW_CORE
67 tristate "Mellanox Technologies Switch ASICs support"
7
- depends on MAY_USE_DEVLINK
8
- ---help---
8
+ select NET_DEVLINK
9
+ select MLXFW
10
+ help
911 This driver supports Mellanox Technologies Switch ASICs family.
1012
1113 To compile this driver as a module, choose M here: the
....@@ -16,15 +18,14 @@
1618 depends on MLXSW_CORE && HWMON
1719 depends on !(MLXSW_CORE=y && HWMON=m)
1820 default y
19
- ---help---
21
+ help
2022 Say Y here if you want to expose HWMON interface on mlxsw devices.
2123
2224 config MLXSW_CORE_THERMAL
2325 bool "Thermal zone support for Mellanox Technologies Switch ASICs"
2426 depends on MLXSW_CORE && THERMAL
25
- depends on !(MLXSW_CORE=y && THERMAL=m)
2627 default y
27
- ---help---
28
+ help
2829 Say Y here if you want to automatically control fans speed according
2930 ambient temperature reported by ASIC.
3031
....@@ -32,7 +33,7 @@
3233 tristate "PCI bus implementation for Mellanox Technologies Switch ASICs"
3334 depends on PCI && HAS_IOMEM && MLXSW_CORE
3435 default m
35
- ---help---
36
+ help
3637 This is PCI bus implementation for Mellanox Technologies Switch ASICs.
3738
3839 To compile this driver as a module, choose M here: the
....@@ -42,7 +43,7 @@
4243 tristate "I2C bus implementation for Mellanox Technologies Switch ASICs"
4344 depends on I2C && MLXSW_CORE
4445 default m
45
- ---help---
46
+ help
4647 This is I2C bus implementation for Mellanox Technologies Switch ASICs.
4748
4849 To compile this driver as a module, choose M here: the
....@@ -52,7 +53,7 @@
5253 tristate "Mellanox Technologies SwitchIB and SwitchIB-2 support"
5354 depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV
5455 default m
55
- ---help---
56
+ help
5657 This driver supports Mellanox Technologies SwitchIB and SwitchIB-2
5758 Infiniband Switch ASICs.
5859
....@@ -63,7 +64,7 @@
6364 tristate "Mellanox Technologies SwitchX-2 support"
6465 depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV
6566 default m
66
- ---help---
67
+ help
6768 This driver supports Mellanox Technologies SwitchX-2 Ethernet
6869 Switch ASICs.
6970
....@@ -71,20 +72,23 @@
7172 module will be called mlxsw_switchx2.
7273
7374 config MLXSW_SPECTRUM
74
- tristate "Mellanox Technologies Spectrum support"
75
+ tristate "Mellanox Technologies Spectrum family support"
7576 depends on MLXSW_CORE && MLXSW_PCI && NET_SWITCHDEV && VLAN_8021Q
7677 depends on PSAMPLE || PSAMPLE=n
7778 depends on BRIDGE || BRIDGE=n
7879 depends on IPV6 || IPV6=n
7980 depends on NET_IPGRE || NET_IPGRE=n
8081 depends on IPV6_GRE || IPV6_GRE=n
82
+ depends on VXLAN || VXLAN=n
8183 select GENERIC_ALLOCATOR
8284 select PARMAN
83
- select MLXFW
85
+ select OBJAGG
86
+ imply PTP_1588_CLOCK
87
+ select NET_PTP_CLASSIFY if PTP_1588_CLOCK
8488 default m
85
- ---help---
86
- This driver supports Mellanox Technologies Spectrum Ethernet
87
- Switch ASICs.
89
+ help
90
+ This driver supports Mellanox Technologies
91
+ Spectrum/Spectrum-2/Spectrum-3 Ethernet Switch ASICs.
8892
8993 To compile this driver as a module, choose M here: the
9094 module will be called mlxsw_spectrum.
....@@ -93,7 +97,7 @@
9397 bool "Data Center Bridging (DCB) support"
9498 depends on MLXSW_SPECTRUM && DCB
9599 default y
96
- ---help---
100
+ help
97101 Say Y here if you want to use Data Center Bridging (DCB) in the
98102 driver.
99103
....@@ -101,7 +105,7 @@
101105 tristate "Mellanox Technologies minimal I2C support"
102106 depends on MLXSW_CORE && MLXSW_I2C
103107 default m
104
- ---help---
108
+ help
105109 This driver supports I2C access for Mellanox Technologies Switch
106110 ASICs.
107111