Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Florian Fainelli and committed by
Jakub Kicinski
0d5044b4 445c0b69

+6 -3
+1 -1
lib/Kconfig
··· 628 628 Implementation is done using GnuPG MPI library 629 629 630 630 config DIMLIB 631 - bool 631 + tristate 632 632 help 633 633 Dynamic Interrupt Moderation library. 634 634 Implements an algorithm for dynamically changing CQ moderation values
+2 -2
lib/dim/Makefile
··· 2 2 # DIM Dynamic Interrupt Moderation library 3 3 # 4 4 5 - obj-$(CONFIG_DIMLIB) += dim.o 5 + obj-$(CONFIG_DIMLIB) += dimlib.o 6 6 7 - dim-y := dim.o net_dim.o rdma_dim.o 7 + dimlib-objs := dim.o net_dim.o rdma_dim.o
+3
lib/dim/dim.c
··· 82 82 return true; 83 83 } 84 84 EXPORT_SYMBOL(dim_calc_stats); 85 + 86 + MODULE_DESCRIPTION("Dynamic Interrupt Moderation (DIM) library"); 87 + MODULE_LICENSE("Dual BSD/GPL");