From: John Lo Date: Sat, 1 Feb 2020 04:48:30 +0000 (-0500) Subject: ipsec: set l2_len for GRE-TEB tunnel decap X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=1d609270b61b551b9e81db0f573e861dedc1d3cf;p=vpp.git ipsec: set l2_len for GRE-TEB tunnel decap Type: fix Ticket: VPP-1831 Signed-off-by: John Lo Change-Id: I655964b22021ac38cbced577091a1156286d4fd6 --- diff --git a/src/vnet/ipsec/esp_decrypt.c b/src/vnet/ipsec/esp_decrypt.c index ee53b018552..56724c00239 100644 --- a/src/vnet/ipsec/esp_decrypt.c +++ b/src/vnet/ipsec/esp_decrypt.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -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: