Skip to content

Commit f6b19b3

Browse files
jpirkodavem330
authored andcommitted
net: devlink: select NET_DEVLINK from drivers
Some drivers are becoming more dependent on NET_DEVLINK being selected in configuration. With upcoming compat functions, the behavior would be wrong in case devlink was not compiled in. So make the drivers select NET_DEVLINK and rely on the functions being there, not just stubs. Signed-off-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent b8f9755 commit f6b19b3

File tree

10 files changed

+13
-497
lines changed

10 files changed

+13
-497
lines changed

drivers/net/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ source "drivers/net/hyperv/Kconfig"
505505
config NETDEVSIM
506506
tristate "Simulated networking device"
507507
depends on DEBUG_FS
508+
select NET_DEVLINK
508509
help
509510
This driver is a developer testing tool and software model that can
510511
be used to test various control path networking APIs, especially

drivers/net/ethernet/broadcom/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ config BNXT
196196
depends on PCI
197197
select FW_LOADER
198198
select LIBCRC32C
199+
select NET_DEVLINK
199200
---help---
200201
This driver supports Broadcom NetXtreme-C/E 10/25/40/50 gigabit
201202
Ethernet cards. To compile this driver as a module, choose M here:

drivers/net/ethernet/cavium/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ config LIQUIDIO
6868
imply PTP_1588_CLOCK
6969
select FW_LOADER
7070
select LIBCRC32C
71+
select NET_DEVLINK
7172
---help---
7273
This driver supports Cavium LiquidIO Intelligent Server Adapters
7374
based on CN66XX, CN68XX and CN23XX chips.

drivers/net/ethernet/mellanox/mlx4/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ config MLX4_EN_DCB
2626
config MLX4_CORE
2727
tristate
2828
depends on PCI
29+
select NET_DEVLINK
2930
default n
3031

3132
config MLX4_DEBUG

drivers/net/ethernet/mellanox/mlx5/core/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
config MLX5_CORE
66
tristate "Mellanox 5th generation network adapters (ConnectX series) core driver"
77
depends on PCI
8+
select NET_DEVLINK
89
imply PTP_1588_CLOCK
910
imply VXLAN
1011
default n

drivers/net/ethernet/mellanox/mlxsw/Kconfig

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

55
config MLXSW_CORE
66
tristate "Mellanox Technologies Switch ASICs support"
7+
select NET_DEVLINK
78
---help---
89
This driver supports Mellanox Technologies Switch ASICs family.
910

drivers/net/ethernet/netronome/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ config NFP
1919
tristate "Netronome(R) NFP4000/NFP6000 NIC driver"
2020
depends on PCI && PCI_MSI
2121
depends on VXLAN || VXLAN=n
22+
select NET_DEVLINK
2223
---help---
2324
This driver supports the Netronome(R) NFP4000/NFP6000 based
2425
cards working as a advanced Ethernet NIC. It works with both

0 commit comments

Comments
 (0)