summaryrefslogtreecommitdiff
path: root/drivers/net/vmxnet3
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2017-08-28 20:40:30 +0300
committerDavid S. Miller <davem@davemloft.net>2017-08-29 02:57:10 +0300
commit903649e718f80da2ba4b65a0adf6930219b4b2e5 (patch)
tree880db9002dc26dea7cc3977efa84c309e4d9f26b /drivers/net/vmxnet3
parent27573a7d905a49dc756fda9c0e148372136356e6 (diff)
downloadlinux-903649e718f80da2ba4b65a0adf6930219b4b2e5.tar.xz
bnxt_en: Improve -ENOMEM logic in NAPI poll loop.
If we cannot allocate RX buffers in the NAPI poll loop when processing an RX event, the current code does not count that event towards the NAPI budget. This can cause us to potentially loop forever in NAPI if we consistently cannot allocate new buffers. Improve it by counting -ENOMEM event as 1 towards the NAPI budget. Cc: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Reported-by: Martin KaFai Lau <kafai@fb.com> Acked-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vmxnet3')
0 files changed, 0 insertions, 0 deletions