lisp: fix ip and udp checksum computation 88/35388/2
authorFlorin Coras <fcoras@cisco.com>
Fri, 18 Feb 2022 23:16:20 +0000 (15:16 -0800)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Tue, 22 Feb 2022 16:21:52 +0000 (16:21 +0000)
Type: fix
Fixes: 6fdcc3d

Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I820c505482801ff2ab8dac41a0016bb3a741a4ee
(cherry picked from commit d85fe1a2164daf3cb23f48e6b9fd1ec2d97c87bc)

src/plugins/lisp/lisp-gpe/interface.c

index f1c49ea..9dcf52d 100644 (file)
@@ -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);