genode/repos/dde_linux/patches/iwlwifi_limit_rx_bufs.patch
Josef Söntgen 118fff0472 iwlwifi: limit rx bufs to 2048
Recent devices are configured with 4096 RX pages that lead to an
increased memory usage. For the moment lower the amount to 2048
and treat in potientially lower throughput for more conservative
memory consumption.

Fixes #4801.
2023-04-17 14:48:25 +02:00

14 lines
384 B
Diff

--- src/linux/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
+++ src/linux/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
@@ -1656,6 +1656,10 @@
trans_pcie->num_rx_bufs = RX_QUEUE_SIZE;
}
+ /* limit some recent cards that use 4096 */
+ if (trans_pcie->num_rx_bufs > 2048)
+ trans_pcie->num_rx_bufs = 2048;
+
ret = iwl_trans_init(iwl_trans);
if (ret)
goto out_free_trans;