net/netvsc: avoid possible live lock
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 31 Mar 2020 17:14:04 +0000 (10:14 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:06 +0000 (13:57 +0200)
commit36274f287103d2f4a372a99dff2c4f47eeb75633
treef78a3ce8bb2e3652b3df9f981e242c4e5fe2b14d
parent99c67a0ae7755e742bc8c28fb5b63f1903b4f7cd
net/netvsc: avoid possible live lock

Since the ring buffer with host is shared for both transmit
completions and receive packets, it is possible that transmitter
could get starved if receive ring gets full.

Better to process all outstanding events which frees up transmit
buffer slots, even if means dropping some packets.

Fixes: 7e6c82430702 ("net/netvsc: avoid over filling Rx descriptor ring")
Cc: stable@dpdk.org
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/netvsc/hn_rxtx.c