[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH 2/3] Set correct payload offset when processing checksums
The receiver code was not accounting for a non-zero packet offset when processing checksums. This lead to inbound packets being corrupted. Signed-off-by: Ben Chalmers <ben.chalmers@xxxxxxxxxx> Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx> --- src/xenvif/receiver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenvif/receiver.c b/src/xenvif/receiver.c index c7510ce..c9e865e 100644 --- a/src/xenvif/receiver.c +++ b/src/xenvif/receiver.c @@ -455,7 +455,7 @@ ReceiverRingProcessChecksum( Info = Packet->Info; Payload.Mdl = &Packet->Mdl; - Payload.Offset = Info->Length; + Payload.Offset = Packet->Offset + Info->Length; Payload.Length = Packet->Length - Info->Length; ASSERT3U(Payload.Offset, <=, Payload.Mdl->ByteCount); -- 2.1.1 _______________________________________________ win-pv-devel mailing list win-pv-devel@xxxxxxxxxxxxxxxxxxxx http://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |