IPSEC-GRE: fixes and API update to common types.
[vpp.git] / src / vnet / ipsec / esp_decrypt.c
index 3e09d9d..c6cb439 100644 (file)
@@ -396,7 +396,7 @@ esp_decrypt_inline (vlib_main_t * vm,
            }
        }
 
-      if (vnet_buffer (b[0])->ipsec.flags & IPSEC_FLAG_IPSEC_GRE_TUNNEL)
+      if (PREDICT_FALSE (ipsec_sa_is_set_IS_GRE (sa0)))
        next[0] = ESP_DECRYPT_NEXT_IPSEC_GRE_INPUT;
 
     trace: