aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2019-08-06 13:47:21 +0200
committerBenoît Ganne <bganne@cisco.com>2019-08-14 09:46:37 +0200
commit8ef151c90064df208b425a95c4f17b1206813ccc (patch)
tree322d1316c979a5170e7412a614566e765485ea92
parent3a7457201ca5752189d8ad0fc7025dcbda0f240a (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);