summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/af_packet/node.c
diff options
context:
space:
mode:
authorJakub Grajciar <Jakub.Grajciar@pantheon.tech>2017-11-15 17:25:50 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-11-15 18:19:59 +0000
commit5665a22f81dd48c6d211a9a2be83d174c62d73cf (patch)
treec8beddd21e3adfe4441c39cfc48f89b6b448105f /src/vnet/devices/af_packet/node.c
parent3904a0c72baefd5c48bf789105266a501ee2bf4c (diff)
Revert "vnet: af_packet mark l3 offload cksum"
This reverts commit fa600c9169c0d7104af7a9be12a0471a8a8c8262. Change-Id: I873b53b2c025d7aba2211cab9b3e2d780af33b32 Signed-off-by: Jakub Grajciar <Jakub.Grajciar@pantheon.tech>
Diffstat (limited to 'src/vnet/devices/af_packet/node.c')
-rw-r--r--src/vnet/devices/af_packet/node.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/devices/af_packet/node.c b/src/vnet/devices/af_packet/node.c
index 556d7489725..b627cfcb036 100644
--- a/src/vnet/devices/af_packet/node.c
+++ b/src/vnet/devices/af_packet/node.c
@@ -115,8 +115,7 @@ mark_tcp_udp_cksum_calc (vlib_buffer_t * b)
{
ip4_header_t *ip4 =
(vlib_buffer_get_current (b) + sizeof (ethernet_header_t));
- b->flags |= VNET_BUFFER_F_IS_IP4 | VNET_BUFFER_F_OFFLOAD_IP_CKSUM;
- ip4->checksum = 0;
+ b->flags |= VNET_BUFFER_F_IS_IP4;
if (ip4->protocol == IP_PROTOCOL_TCP)
{
b->flags |= VNET_BUFFER_F_OFFLOAD_TCP_CKSUM;