From 6754a16ca3e01556f6d0383737aa22d89d32733b Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Fri, 9 Oct 2020 11:33:55 -0400 Subject: wireguard: park the timer process Until the feature is configured. It would make sense to push more of the feature init code into the newly-added wg_feature_init() function. This patch fixes a severe hemorrhoid. Type: improvement Signed-off-by: Dave Barach Change-Id: I87095575363baa41407dd52492159a7b8c2899e7 --- src/plugins/wireguard/wireguard.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/wireguard/wireguard.h') diff --git a/src/plugins/wireguard/wireguard.h b/src/plugins/wireguard/wireguard.h index 2c892a374b8..ef308c4c397 100755 --- a/src/plugins/wireguard/wireguard.h +++ b/src/plugins/wireguard/wireguard.h @@ -41,12 +41,16 @@ typedef struct u32 out_fq_index; wg_per_thread_data_t *per_thread_data; + u8 feature_init; tw_timer_wheel_16t_2w_512sl_t timer_wheel; } wg_main_t; extern wg_main_t wg_main; +#define WG_START_EVENT 1 +void wg_feature_init (wg_main_t * wmp); + #endif /* __included_wg_h__ */ /* -- cgit 1.2.3-korg