diff options
author | Damjan Marion <damarion@cisco.com> | 2021-03-06 12:26:28 +0100 |
---|---|---|
committer | Damjan Marion <damarion@cisco.com> | 2021-03-26 16:33:42 +0100 |
commit | fd8deb48c7ad63b47c5d7465ceefcadef0316f93 (patch) | |
tree | 3e5f319c7c57f526a6e571fd96847563bedf2706 /src/plugins/nat/pnat/tests | |
parent | f553a2cbbb8cca84ebf033335ebd2cd26dc19d69 (diff) |
vlib: split vlib_main_t into global and per-thread
Type: refactor
Change-Id: I8b273bc3bf16aa360f031f1b2692f766e5fc4613
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/nat/pnat/tests')
-rw-r--r-- | src/plugins/nat/pnat/tests/pnat_test_stubs.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/plugins/nat/pnat/tests/pnat_test_stubs.h b/src/plugins/nat/pnat/tests/pnat_test_stubs.h index 62aa050989a..1b7450146f5 100644 --- a/src/plugins/nat/pnat/tests/pnat_test_stubs.h +++ b/src/plugins/nat/pnat/tests/pnat_test_stubs.h @@ -55,17 +55,6 @@ int vnet_feature_enable_disable(const char *arc_name, const char *node_name, } vnet_main_t *vnet_get_main(void) { return 0; } -static struct { - vec_header_t h; - vlib_main_t *vm; -} __attribute__((packed)) __bootstrap_vlib_main_vector - __attribute__((aligned(CLIB_CACHE_LINE_BYTES))) = { - .h.len = 1, - .vm = &vlib_global_main, -}; - -vlib_main_t **vlib_mains = &__bootstrap_vlib_main_vector.vm; - /* Compute TCP/UDP/ICMP4 checksum in software. */ u16 ip4_tcp_udp_compute_checksum(vlib_main_t *vm, vlib_buffer_t *p0, ip4_header_t *ip0) { |