From: Juuso Oikarinen Date: Thu, 18 Feb 2010 11:25:48 +0000 (+0200) Subject: wl1271: Optimized RX path packet retrieval X-Git-Tag: v2.6.34-rc1~233^2~88^2~23 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=6c71b0ea761da416af54df4f72f48e71050cc012;p=~emulex%2Finfiniband.git wl1271: Optimized RX path packet retrieval Instead of acking RX packets read from the FW once all (of several possible) buffered packets are retrieved, ack packets one by one as they are read. This enables the FW to start receiving more packets from the network while the host read operation is still ongoing. Signed-off-by: Juuso Oikarinen Reviewed-by: Kalle Valo Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/wl12xx/wl1271_rx.c b/drivers/net/wireless/wl12xx/wl1271_rx.c index ca645f38109..e8eee883848 100644 --- a/drivers/net/wireless/wl12xx/wl1271_rx.c +++ b/drivers/net/wireless/wl12xx/wl1271_rx.c @@ -218,7 +218,7 @@ void wl1271_rx(struct wl1271 *wl, struct wl1271_fw_status *status) wl->rx_counter++; drv_rx_counter = wl->rx_counter & NUM_RX_PKT_DESC_MOD_MASK; + wl1271_spi_write32(wl, RX_DRIVER_COUNTER_ADDRESS, + wl->rx_counter); } - - wl1271_spi_write32(wl, RX_DRIVER_COUNTER_ADDRESS, wl->rx_counter); }