[dpdk-stable] patch 'net/netvsc: avoid possible live lock' has been queued to LTS release 18.11.9

Kevin Traynor ktraynor at redhat.com
Thu May 28 18:22:47 CEST 2020


Hi,

FYI, your patch has been queued to LTS release 18.11.9

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 06/03/20. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable-queue

This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable-queue/commit/f6a58bb9a8c7bc2ce1ebf9c9ef6ad615eb8861b0

Thanks.

Kevin.

---
>From f6a58bb9a8c7bc2ce1ebf9c9ef6ad615eb8861b0 Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <stephen at networkplumber.org>
Date: Tue, 31 Mar 2020 10:14:04 -0700
Subject: [PATCH] net/netvsc: avoid possible live lock

[ upstream commit 36274f287103d2f4a372a99dff2c4f47eeb75633 ]

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")

Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
 drivers/net/netvsc/hn_rxtx.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/net/netvsc/hn_rxtx.c b/drivers/net/netvsc/hn_rxtx.c
index caed452540..b526b490b2 100644
--- a/drivers/net/netvsc/hn_rxtx.c
+++ b/drivers/net/netvsc/hn_rxtx.c
@@ -1017,7 +1017,4 @@ retry:
 		if (tx_limit && tx_done >= tx_limit)
 			break;
-
-		if (rxq->rx_ring && rte_ring_full(rxq->rx_ring))
-			break;
 	}
 
-- 
2.21.3

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2020-05-28 17:13:02.217419207 +0100
+++ 0060-net-netvsc-avoid-possible-live-lock.patch	2020-05-28 17:12:59.136555608 +0100
@@ -1 +1 @@
-From 36274f287103d2f4a372a99dff2c4f47eeb75633 Mon Sep 17 00:00:00 2001
+From f6a58bb9a8c7bc2ce1ebf9c9ef6ad615eb8861b0 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 36274f287103d2f4a372a99dff2c4f47eeb75633 ]
+
@@ -14 +15,0 @@
-Cc: stable at dpdk.org
@@ -22 +23 @@
-index cbdfcc628b..19f00a0528 100644
+index caed452540..b526b490b2 100644
@@ -25 +26 @@
-@@ -1033,7 +1033,4 @@ retry:
+@@ -1017,7 +1017,4 @@ retry:



More information about the stable mailing list