summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIdo Shamay <idos@mellanox.com>2015-04-30 17:32:46 +0300
committerLuis Henriques <luis.henriques@canonical.com>2015-05-12 09:36:34 +0100
commitddef2b7f77d0ce1403ea97907af12cd3ccd0ae4e (patch)
tree657649c11df8ae59e3a66ec0f6c0b7aba8d31391 /include
parent0502c51a4a61b987a2ea4c7c60c3dee6c558bbdb (diff)
net/mlx4_en: Schedule napi when RX buffers allocation fails
commit 07841f9d94c11afe00c0498cf242edf4075729f4 upstream. 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> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions