mwifiex: recover from skb allocation failures during RX
authorZhaoyang Liu <liuzy@marvell.com>
Mon, 23 Mar 2015 14:20:56 +0000 (19:50 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Mar 2015 08:34:51 +0000 (11:34 +0300)
commit4acaf048b1d27cb6e1b214d370ed993bb2aac664
treeda59e666cca69ad9029485a97c1f7832ecc3db0a
parent5ff46f7923b87f6cc5d5d66df08c9b6379a0461e
mwifiex: recover from skb allocation failures during RX

This patch adds recovery mechanism for SDIO RX during SKB allocation
failures.
For allocation failures during multiport aggregation, we skip and drop RX
packets.
For single port read case, we will use preallocated card->mpa_rx.buf to
complete cmd53 read.
Now we terminate SDIO operations only upon cmd53 failures.

CC: James Cameron <quozl@laptop.org>
Signed-off-by: Zhaoyang Liu <liuzy@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/sdio.c