]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dim: make DIMLIB dependent on NET
authorHeng Qi <hengqi@linux.alibaba.com>
Fri, 21 Jun 2024 10:13:50 +0000 (18:13 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Jun 2024 00:15:06 +0000 (17:15 -0700)
DIMLIB's capabilities are supplied by the dim, net_dim, and
rdma_dim objects, and dim's interfaces solely act as a base for
net_dim and rdma_dim and are not explicitly used anywhere else.
rdma_dim is utilized by the infiniband driver, while net_dim
is for network devices, excluding the soc/fsl driver.

In this patch, net_dim relies on some NET's interfaces, thus
DIMLIB needs to explicitly depend on the NET Kconfig.

The soc/fsl driver uses the functions provided by net_dim, so
it also needs to depend on NET.

Signed-off-by: Heng Qi <hengqi@linux.alibaba.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20240621101353.107425-3-hengqi@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/soc/fsl/Kconfig
lib/Kconfig

index fcec6ed83d5e275342274a59db5f7ad48e0bbfb9..a1e0bc8c175733d7e66e6e6d5c9ed651c9300672 100644 (file)
@@ -22,7 +22,7 @@ config FSL_GUTS
 
 config FSL_MC_DPIO
         tristate "QorIQ DPAA2 DPIO driver"
-        depends on FSL_MC_BUS
+        depends on FSL_MC_BUS && NET
         select SOC_BUS
         select FSL_GUTS
         select DIMLIB
index b0a76dff5c1821a4a54d6f1340e5d70154d64cd2..b38849af6f1302a0402d47051423603bc1ab46cb 100644 (file)
@@ -623,6 +623,7 @@ config SIGNATURE
 
 config DIMLIB
        tristate
+       depends on NET
        help
          Dynamic Interrupt Moderation library.
          Implements an algorithm for dynamically changing CQ moderation values