aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-08-06 13:47:21 +0200
committerNeale Ranns <nranns@cisco.com>2019-08-14 07:38:36 +0000
commit1b3ce39809d753689f5eabedc9972898a073597b (patch)
treef4a0055b985dfc5af836e3d3a4d1ec8af025081e
parent60f16c22b44625d517830b4266a225d3abaccefc (diff)
gbp: do not scan gbp bihash if not instantiated
Type: fix Fixes: 32dcd3b2f227dec638c39ade0c58d6741d83ec30 Change-Id: I42550fcc5b3fa486a05770d3e220d7a86315628e Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rw-r--r--src/plugins/gbp/gbp_endpoint.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/gbp/gbp_endpoint.c b/src/plugins/gbp/gbp_endpoint.c
index 90eca41ae66..12865461d18 100644
--- a/src/plugins/gbp/gbp_endpoint.c
+++ b/src/plugins/gbp/gbp_endpoint.c
@@ -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);