Commit 2198f591 authored by Sergey Bykov's avatar Sergey Bykov Committed by Yan Vugenfirer
Browse files

netkvm: Set m_nReusedRxBuffersLimit after all RX buffers are allocated


If allocation of all RX buffers fails then NetMaxReceiveBuffers will be decreased accordingly, however m_nReusedRxBuffersLimit will remain set as it is configured in NetKVM device settings.

For example, if Init.MaxRxBuffers is configured to 1024 and rx_queue_size is set 256, it may cause a VM to lose connectivity when all RX buffers are exhausted.

Signed-off-by: default avatarSergey Bykov <sergey.bykov@nutanix.com>
parent bf621b7e
No related merge requests found
Showing with 2 additions and 2 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment