summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorIdo Shamay <idos@mellanox.com>2015-04-30 17:32:46 +0300
committerDavid S. Miller <davem@davemloft.net>2015-04-30 16:47:50 -0400
commit07841f9d94c11afe00c0498cf242edf4075729f4 (patch)
treec92c000d3119f222b8fcee9fe732bd796804f193 /kernel
parentc232d8a8bb1416f7ec21bb1aabc7c4ec8a5a899e (diff)
net/mlx4_en: Schedule napi when RX buffers allocation fails
When system is out of memory, refilling of RX buffers fails while the driver continue to pass the received packets to the kernel stack. At some point, when all RX buffers deplete, driver may fall into a sleep, and not recover when memory for new RX buffers is once again availible. This is because hardware does not have valid descriptors, so no interrupt will be generated for the driver to return to work in napi context. Fix it by schedule the napi poll function from stats_task delayed workqueue, as long as the allocations fail. Signed-off-by: Ido Shamay <idos@mellanox.com> Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions