Skip to contentSkip to conversation

xen-netback: fix extra_info handling in xenvif_tx_err()

PATCH Applied Paul Durrant 3 participants 5 messages May 12, 2016 – May 13, 2016

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen-netback: fix extra_info handling in xenvif_tx_err()

Patch 562abd39 "xen-netback: support multiple extra info fragments passed from frontend" contained a mistake which can result in an in- correct number of responses being generated when handling errors encountered when processing packets containing extra info fragments. This patch fixes the problem.

---
 drivers/net/xen-netback/netback.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/xen-netback/netback.c +1 -0
index b42f260..4412a57 100644
@@ -711,6 +711,7 @@ static void xenvif_tx_err(struct xenvif_queue *queue,
 		if (cons == end)
 			break;
 		RING_COPY_REQUEST(&queue->tx, cons++, txp);
+		extra_count = 0; /* only the first frag can have extras */
 	} while (1);
 	queue->tx.req_cons = cons;
 }
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Paul Durrant

Patch 562abd39 "xen-netback: support multiple extra info fragments passed from frontend" contained a mistake which can result in an in- correct number of responses being generated when handling errors encountered when processing packets containing extra info fragments. This patch fixes the problem.

Quoted 19 lines
---
 drivers/net/xen-netback/netback.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/xen-netback/netback.c +1 -0
index b42f260..4412a57 100644
@@ -711,6 +711,7 @@ static void xenvif_tx_err(struct xenvif_queue *queue,
 		if (cons == end)
 			break;
 		RING_COPY_REQUEST(&queue->tx, cons++, txp);
+		extra_count = 0; /* only the first frag can have extras */
 	} while (1);
 	queue->tx.req_cons = cons;
 }
Signature · 1 line
2.1.4
Acked-by on v1 1/1
#2 lore raw
In reply to Paul Durrant
Quoted 9 lines · Paul Durrant

Patch 562abd39 "xen-netback: support multiple extra info fragments passed from frontend" contained a mistake which can result in an in- correct number of responses being generated when handling errors encountered when processing packets containing extra info fragments. This patch fixes the problem.

Quoted 19 lines
---
 drivers/net/xen-netback/netback.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/xen-netback/netback.c +1 -0
index b42f260..4412a57 100644
@@ -711,6 +711,7 @@ static void xenvif_tx_err(struct xenvif_queue *queue,
 		if (cons == end)
 			break;
 		RING_COPY_REQUEST(&queue->tx, cons++, txp);
+		extra_count = 0; /* only the first frag can have extras */
 	} while (1);
 	queue->tx.req_cons = cons;
 }
Signature · 1 line
2.1.4

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel

maintainer Applied
#3 lore raw
In reply to Paul Durrant

From: Paul Durrant <[email protected]>
Date: Thu, 12 May 2016 14:43:03 +0100

Quoted 8 lines

Patch 562abd39 "xen-netback: support multiple extra info fragments passed from frontend" contained a mistake which can result in an in- correct number of responses being generated when handling errors encountered when processing packets containing extra info fragments. This patch fixes the problem.

Applied.

maintainer Applied
#4 lore raw
In reply to Paul Durrant

From: Paul Durrant <[email protected]>
Date: Thu, 12 May 2016 14:43:03 +0100

Quoted 8 lines

Patch 562abd39 "xen-netback: support multiple extra info fragments passed from frontend" contained a mistake which can result in an in- correct number of responses being generated when handling errors encountered when processing packets containing extra info fragments. This patch fixes the problem.

Applied.

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel