mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 15:02:25 +00:00
118fff0472
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.
14 lines
384 B
Diff
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;
|