diff options
author | Xinming Hu <huxm@marvell.com> | 2015-09-18 06:32:06 -0700 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-09-29 10:47:31 +0300 |
commit | 9a9053c3420fcc5779319e4ea267c6dcbf8d7c04 (patch) | |
tree | 32f94e7d3395684ad31b93cd816ecb2e34cd3051 /drivers/net/rionet.c | |
parent | e3ad3d5b6ab2a9876773fe99d9d1866d3c1744ae (diff) |
mwifiex: fix driver init failure under memory pressure
64k Tx and Rx buffers are allocated during driver initialization
for SDIO level data aggregations. When host is under memory
pressure situation, kzalloc() request for 64k may fail.
We will try allocating 32k buffers and disable our rx single port
aggreagation feature in this situation.
If the allocation still fails, we will disable our sdio multport
aggregation feature as well. In this way, we will transmit and
receive packets one by one, thus reduce the demand for big
memory.
Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/rionet.c')
0 files changed, 0 insertions, 0 deletions