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: checksum error reported for ip6 traffic with GSO enable
[vpp.git]
/
src
/
vnet
/
devices
/
virtio
/
vhost_user_input.c
diff --git
a/src/vnet/devices/virtio/vhost_user_input.c
b/src/vnet/devices/virtio/vhost_user_input.c
index
8d0ee4a
..
001ef07
100644
(file)
--- a/
src/vnet/devices/virtio/vhost_user_input.c
+++ b/
src/vnet/devices/virtio/vhost_user_input.c
@@
-292,15
+292,11
@@
vhost_user_handle_rx_offload (vlib_buffer_t * b0, u8 * b0_data,
tcp_header_t *tcp = (tcp_header_t *)
(b0_data + vnet_buffer (b0)->l4_hdr_offset);
l4_hdr_sz = tcp_header_bytes (tcp);
tcp_header_t *tcp = (tcp_header_t *)
(b0_data + vnet_buffer (b0)->l4_hdr_offset);
l4_hdr_sz = tcp_header_bytes (tcp);
- tcp->checksum = 0;
b0->flags |= VNET_BUFFER_F_OFFLOAD_TCP_CKSUM;
}
else if (l4_proto == IP_PROTOCOL_UDP)
{
b0->flags |= VNET_BUFFER_F_OFFLOAD_TCP_CKSUM;
}
else if (l4_proto == IP_PROTOCOL_UDP)
{
- udp_header_t *udp =
- (udp_header_t *) (b0_data + vnet_buffer (b0)->l4_hdr_offset);
- l4_hdr_sz = sizeof (*udp);
- udp->checksum = 0;
+ l4_hdr_sz = sizeof (udp_header_t);
b0->flags |= VNET_BUFFER_F_OFFLOAD_UDP_CKSUM;
}
b0->flags |= VNET_BUFFER_F_OFFLOAD_UDP_CKSUM;
}