ipsec: set l2_len for GRE-TEB tunnel decap 31/24731/3
authorJohn Lo <loj@cisco.com>
Sat, 1 Feb 2020 04:48:30 +0000 (23:48 -0500)
committerNeale Ranns <nranns@cisco.com>
Wed, 5 Feb 2020 14:29:59 +0000 (14:29 +0000)
Type: fix
Ticket: VPP-1831

Signed-off-by: John Lo <loj@cisco.com>
Change-Id: I655964b22021ac38cbced577091a1156286d4fd6

src/vnet/ipsec/esp_decrypt.c

index ee53b01..56724c0 100644 (file)
@@ -18,6 +18,7 @@
 #include <vnet/vnet.h>
 #include <vnet/api_errno.h>
 #include <vnet/ip/ip.h>
+#include <vnet/l2/l2_input.h>
 
 #include <vnet/ipsec/ipsec.h>
 #include <vnet/ipsec/esp.h>
@@ -506,6 +507,7 @@ esp_decrypt_inline (vlib_main_t * vm,
                  switch (clib_net_to_host_u16 (gre->protocol))
                    {
                    case GRE_PROTOCOL_teb:
+                     vnet_update_l2_len (b[0]);
                      next[0] = ESP_DECRYPT_NEXT_L2_INPUT;
                      break;
                    case GRE_PROTOCOL_ip4: