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.

net: don't set sw irq coalescing defaults in case of PREEMPT_RT

If PREEMPT_RT is set, then assume that the user focuses on minimum
latency. Therefore don't set sw irq coalescing defaults.
This affects the defaults only, users can override these settings
via sysfs.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/f9439c7f-c92c-4c2c-703e-110f96d841b7@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Heiner Kallweit and committed by
Jakub Kicinski
748b4428 60cbd38b

+4 -2
+4 -2
net/core/dev.c
··· 10571 10571 { 10572 10572 WARN_ON(dev->reg_state == NETREG_REGISTERED); 10573 10573 10574 - dev->gro_flush_timeout = 20000; 10575 - dev->napi_defer_hard_irqs = 1; 10574 + if (!IS_ENABLED(CONFIG_PREEMPT_RT)) { 10575 + dev->gro_flush_timeout = 20000; 10576 + dev->napi_defer_hard_irqs = 1; 10577 + } 10576 10578 } 10577 10579 EXPORT_SYMBOL_GPL(netdev_sw_irq_coalesce_default_on); 10578 10580