gbp: do not scan gbp bihash if not instantiated 81/21081/2
authorBenoît Ganne <[email protected]>
Tue, 6 Aug 2019 11:47:21 +0000 (13:47 +0200)
committerNeale Ranns <[email protected]>
Wed, 14 Aug 2019 07:38:36 +0000 (07:38 +0000)
Type: fix
Fixes: 32dcd3b2f227dec638c39ade0c58d6741d83ec30

Change-Id: I42550fcc5b3fa486a05770d3e220d7a86315628e
Signed-off-by: Benoît Ganne <[email protected]>
src/plugins/gbp/gbp_endpoint.c

index 90eca41..1286546 100644 (file)
@@ -1385,6 +1385,9 @@ gbp_endpoint_scan_l2 (vlib_main_t * vm)
   f64 last_start, start_time, delta_t;
   int i, j, k;
 
+  if (!gte_table->instantiated)
+    return;
+
   delta_t = 0;
   last_start = start_time = vlib_time_now (vm);
 
@@ -1437,6 +1440,9 @@ gbp_endpoint_scan_l3 (vlib_main_t * vm)
   f64 last_start, start_time, delta_t;
   int i, j, k;
 
+  if (!gte_table->instantiated)
+    return;
+
   delta_t = 0;
   last_start = start_time = vlib_time_now (vm);