aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-02-18 15:16:20 -0800
committerDave Barach <openvpp@barachs.net>2022-02-21 17:32:03 +0000
commitd85fe1a2164daf3cb23f48e6b9fd1ec2d97c87bc (patch)
tree521110724b65c8dc7ab0c2696aea82184ac3a180 /src
parentad3187fe23bb139b44c1bac7cd13dd86523fb90a (diff)
lisp: fix ip and udp checksum computation
Type: fix Fixes: 6fdcc3d Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I820c505482801ff2ab8dac41a0016bb3a741a4ee
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lisp/lisp-gpe/interface.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/plugins/lisp/lisp-gpe/interface.c b/src/plugins/lisp/lisp-gpe/interface.c
index f1c49eadda8..9dcf52d1ba6 100644
--- a/src/plugins/lisp/lisp-gpe/interface.c
+++ b/src/plugins/lisp/lisp-gpe/interface.c
@@ -92,7 +92,6 @@ VLIB_NODE_FN (lisp_tunnel_output)
(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *from_frame)
{
u32 n_left_from, next_index, *from, *to_next;
- lisp_gpe_main_t *lgm = &lisp_gpe_main;
from = vlib_frame_vector_args (from_frame);
n_left_from = from_frame->n_vectors;
@@ -111,7 +110,6 @@ VLIB_NODE_FN (lisp_tunnel_output)
const ip_adjacency_t *adj0;
const dpo_id_t *dpo0;
vlib_buffer_t *b0;
- u8 is_v4_0;
bi0 = from[0];
to_next[0] = bi0;
@@ -123,11 +121,6 @@ VLIB_NODE_FN (lisp_tunnel_output)
b0 = vlib_get_buffer (vm, bi0);
b0->flags |= VNET_BUFFER_F_LOCALLY_ORIGINATED;
- /* Fixup the checksum and len fields in the LISP tunnel encap
- * that was applied at the midchain node */
- is_v4_0 = is_v4_packet (vlib_buffer_get_current (b0));
- ip_udp_fixup_one (lgm->vlib_main, b0, is_v4_0);
-
/* Follow the DPO on which the midchain is stacked */
adj_index0 = vnet_buffer (b0)->ip.adj_index[VLIB_TX];
adj0 = adj_get (adj_index0);