mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
net: devlink: turn devlink into a built-in
Being able to build devlink as a module causes growing pains. First all drivers had to add a meta dependency to make sure they are not built in when devlink is built as a module. Now we are struggling to invoke ethtool compat code reliably. Make devlink code built-in, users can still not build it at all but the dynamically loadable module option is removed. Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Acked-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
d8cf757fbd
commit
f4b6bcc700
13 changed files with 8 additions and 39 deletions
11
net/Kconfig
11
net/Kconfig
|
|
@ -429,21 +429,12 @@ config NET_SOCK_MSG
|
|||
with the help of BPF programs.
|
||||
|
||||
config NET_DEVLINK
|
||||
tristate "Network physical/parent device Netlink interface"
|
||||
bool "Network physical/parent device Netlink interface"
|
||||
help
|
||||
Network physical/parent device Netlink interface provides
|
||||
infrastructure to support access to physical chip-wide config and
|
||||
monitoring.
|
||||
|
||||
config MAY_USE_DEVLINK
|
||||
tristate
|
||||
default m if NET_DEVLINK=m
|
||||
default y if NET_DEVLINK=y || NET_DEVLINK=n
|
||||
help
|
||||
Drivers using the devlink infrastructure should have a dependency
|
||||
on MAY_USE_DEVLINK to ensure they do not cause link errors when
|
||||
devlink is a loadable module and the driver using it is built-in.
|
||||
|
||||
config PAGE_POOL
|
||||
bool
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue