Skip to content

Commit

Permalink
xen-netback: fix extra_info handling in xenvif_tx_err()
Browse files Browse the repository at this point in the history
Patch 562abd3 "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: Paul Durrant <[email protected]>
Reported-by: Jan Beulich <[email protected]>
Cc: Wei Liu <[email protected]>
Acked-by: Wei Liu <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Paul Durrant authored and davem330 committed May 13, 2016
1 parent 2073dba commit 72eec92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/xen-netback/netback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 72eec92

Please sign in to comment.