Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
virtio: fix the tcp/udp checksum offloads
[vpp.git]
/
src
/
vnet
/
devices
/
virtio
/
node.c
diff --git
a/src/vnet/devices/virtio/node.c
b/src/vnet/devices/virtio/node.c
index
78a8dd5
..
3bb2366
100644
(file)
--- a/
src/vnet/devices/virtio/node.c
+++ b/
src/vnet/devices/virtio/node.c
@@
-201,7
+201,6
@@
virtio_needs_csum (vlib_buffer_t * b0, struct virtio_net_hdr_v1 *hdr,
vnet_buffer
(b0)->l4_hdr_offset);
*l4_hdr_sz = tcp_header_bytes (tcp);
- tcp->checksum = 0;
}
else if (*l4_proto == IP_PROTOCOL_UDP)
{
@@
-210,7
+209,6
@@
virtio_needs_csum (vlib_buffer_t * b0, struct virtio_net_hdr_v1 *hdr,
vnet_buffer
(b0)->l4_hdr_offset);
*l4_hdr_sz = sizeof (*udp);
- udp->checksum = 0;
}
}