summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-05-20 18:53:50 +0200
committerDave Barach <openvpp@barachs.net>2020-05-28 11:09:45 +0000
commitdcd4aa2110e274f9185e1e5b47ec22d66cc23136 (patch)
treee65ba70b4ca335ea2d08c16ef4f34bb515cf96d1 /src/plugins
parent7f475bf4b77ae2e74d65c62a22dc550329bb59c1 (diff)
dhcp: use per-thread vlib main instead of global one
Type: fix Change-Id: I8890aa5cc3c576fc9fb68735549dfab721714310 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dhcp/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/dhcp/client.c b/src/plugins/dhcp/client.c
index 6d3f7b47ce6..cd90df6a244 100644
--- a/src/plugins/dhcp/client.c
+++ b/src/plugins/dhcp/client.c
@@ -276,10 +276,10 @@ dhcp_client_for_us (u32 bi, vlib_buffer_t * b,
udp_header_t * udp, dhcp_header_t * dhcp)
{
dhcp_client_main_t *dcm = &dhcp_client_main;
- vlib_main_t *vm = dcm->vlib_main;
+ vlib_main_t *vm = vlib_get_main ();
dhcp_client_t *c;
uword *p;
- f64 now = vlib_time_now (dcm->vlib_main);
+ f64 now = vlib_time_now (vm);
u8 dhcp_message_type = 0;
dhcp_option_t *o;