From d85fe1a2164daf3cb23f48e6b9fd1ec2d97c87bc Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Fri, 18 Feb 2022 15:16:20 -0800 Subject: lisp: fix ip and udp checksum computation Type: fix Fixes: 6fdcc3d Signed-off-by: Florin Coras Change-Id: I820c505482801ff2ab8dac41a0016bb3a741a4ee --- src/plugins/lisp/lisp-gpe/interface.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/plugins') 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); -- cgit 1.2.3-korg