Commit 72eec92a authored by Paul Durrant's avatar Paul Durrant Committed by David S. Miller

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.
Signed-off-by: default avatarPaul Durrant <>
Reported-by: default avatarJan Beulich <>
Cc: Wei Liu <>
Acked-by: default avatarWei Liu <>
Signed-off-by: default avatarDavid S. Miller <>
parent 2073dbad
......@@ -711,6 +711,7 @@ static void xenvif_tx_err(struct xenvif_queue *queue,
if (cons == end)
RING_COPY_REQUEST(&queue->tx, cons++, txp);
extra_count = 0; /* only the first frag can have extras */
} while (1);
queue->tx.req_cons = cons;
Markdown is supported
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