lib: Allow for the DIM library to be modular
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Mon, 6 May 2024 17:50:40 +0000 (10:50 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 7 May 2024 23:42:45 +0000 (16:42 -0700)
commit0d5044b4e7749099b12da5f2c8618f04bb4fa82f
treee1cb983547408911f526a80a02b34343ca5afff6
parent445c0b69c72903528fdf0b34015b5b9142062c4b
lib: Allow for the DIM library to be modular

Allow the Dynamic Interrupt Moderation (DIM) library to be built as a
module. This is particularly useful in an Android GKI (Google Kernel
Image) configuration where everything is built as a module, including
Ethernet controller drivers. Having to build DIMLIB into the kernel
image with potentially no user is wasteful.

Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Alexander Lobakin <aleksander.lobakin@intel.com>
Link: https://lore.kernel.org/r/20240506175040.410446-1-florian.fainelli@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
lib/Kconfig
lib/dim/Makefile
lib/dim/dim.c