diff options
author | Filip Varga <fivarga@cisco.com> | 2020-05-07 14:28:56 +0200 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2020-05-07 17:04:00 +0000 |
commit | 9bb09afb56b1aa787ca574cc732085272059fd5f (patch) | |
tree | 38a3051033c5ed864386969f710a07b89c224728 /src/plugins/nat/nat64.c | |
parent | 5505ee8904fafc7c1f017f88853f80a616784cf2 (diff) |
nat: fix per thread data vlib_main_t usage
Type: fix
Change-Id: If6784c9eb278f525e05304d10fd1a00641faaaf0
Signed-off-by: Filip Varga <fivarga@cisco.com>
Diffstat (limited to 'src/plugins/nat/nat64.c')
-rw-r--r-- | src/plugins/nat/nat64.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/nat/nat64.c b/src/plugins/nat/nat64.c index 3aff99ddf85..abf59a341f4 100644 --- a/src/plugins/nat/nat64.c +++ b/src/plugins/nat/nat64.c @@ -413,6 +413,7 @@ nat64_add_interface_address (u32 sw_if_index, int is_add) int nat64_add_del_interface (u32 sw_if_index, u8 is_inside, u8 is_add) { + vlib_main_t *vm = vlib_get_main (); nat64_main_t *nm = &nat64_main; snat_interface_t *interface = 0, *i; snat_address_t *ap; @@ -445,7 +446,7 @@ nat64_add_del_interface (u32 sw_if_index, u8 is_inside, u8 is_add) interface->flags |= NAT_INTERFACE_FLAG_IS_OUTSIDE; nm->total_enabled_count++; - vlib_process_signal_event (nm->sm->vlib_main, + vlib_process_signal_event (vm, nm->nat64_expire_walk_node_index, NAT64_CLEANER_RESCHEDULE, 0); |