Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d68ab680 authored by Mohamed Abbas's avatar Mohamed Abbas Committed by John W. Linville
Browse files

iwlwifi: earlier rx allocation



Value of count is used to decide when to replenish rx buffers. If it is
equal or above 8 we replenish the buffers. Ensure there is no starvation
by initializing count to 8 - thus forcing replenish at first iteration.

This is helpful when rx receives batches of buffers smaller than 8.

Signed-off-by: default avatarMohamed Abbas <mabbas@linux.intel.com>
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c342a1b9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4287,7 +4287,7 @@ static void iwl3945_rx_handle(struct iwl3945_priv *priv)
	int reclaim;
	unsigned long flags;
	u8 fill_rx = 0;
	u32 count = 0;
	u32 count = 8;

	/* uCode's read index (stored in shared DRAM) indicates the last Rx
	 * buffer that the driver may process (last buffer filled by ucode). */
+1 −1
Original line number Diff line number Diff line
@@ -4669,7 +4669,7 @@ static void iwl4965_rx_handle(struct iwl4965_priv *priv)
	int reclaim;
	unsigned long flags;
	u8 fill_rx = 0;
	u32 count = 0;
	u32 count = 8;

	/* uCode's read index (stored in shared DRAM) indicates the last Rx
	 * buffer that the driver may process (last buffer filled by ucode). */