aboutsummaryrefslogtreecommitdiffstats
path: root/src/vlib
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-04-04 19:43:30 +0200
committerFlorin Coras <florin.coras@gmail.com>2022-04-04 19:12:10 +0000
commit564005b094c627aaa130753eb43d95cb18c5aba5 (patch)
treeaa2474dab31f7c83e7afcfe7bdc82961cb75534c /src/vlib
parent2e90b299ac3f32bbf82785eda5e00a2e2d61f718 (diff)
vlib: remove unused fields
Type: refactor Change-Id: I449fcea92a1c96dd7dd0bcad893060ad1c614351 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vlib')
-rw-r--r--src/vlib/main.h9
-rw-r--r--src/vlib/threads.c4
-rw-r--r--src/vlib/unix/main.c4
3 files changed, 0 insertions, 17 deletions
diff --git a/src/vlib/main.h b/src/vlib/main.h
index 2581d491019..1413158ad53 100644
--- a/src/vlib/main.h
+++ b/src/vlib/main.h
@@ -154,15 +154,6 @@ typedef struct vlib_main_t
/* Error marker to use when exiting main loop. */
clib_error_t *main_loop_error;
- /* Start of the heap. */
- void *heap_base;
-
- /* Truncated version, to create frame indices */
- void *heap_aligned_base;
-
- /* Size of the heap */
- uword heap_size;
-
/* buffer main structure. */
vlib_buffer_main_t *buffer_main;
diff --git a/src/vlib/threads.c b/src/vlib/threads.c
index e34ef7c30cb..567ba62891b 100644
--- a/src/vlib/threads.c
+++ b/src/vlib/threads.c
@@ -638,10 +638,6 @@ start_workers (vlib_main_t * vm)
sizeof (*vm_clone));
vm_clone->thread_index = worker_thread_index;
- vm_clone->heap_base = w->thread_mheap;
- vm_clone->heap_aligned_base =
- (void *) (((uword) w->thread_mheap) &
- ~(CLIB_CACHE_LINE_BYTES - 1));
vm_clone->pending_rpc_requests = 0;
vec_validate (vm_clone->pending_rpc_requests, 0);
_vec_len (vm_clone->pending_rpc_requests) = 0;
diff --git a/src/vlib/unix/main.c b/src/vlib/unix/main.c
index 0ebda240899..0b73597dab3 100644
--- a/src/vlib/unix/main.c
+++ b/src/vlib/unix/main.c
@@ -708,10 +708,6 @@ vlib_unix_main (int argc, char *argv[])
vgm->exec_path = vgm->name = argv[0];
vgm->argv = (u8 **) argv;
- vm->heap_base = clib_mem_get_heap ();
- vm->heap_aligned_base =
- (void *) (((uword) vm->heap_base) & ~(CLIB_CACHE_LINE_BYTES - 1));
- ASSERT (vm->heap_base);
clib_time_init (&vm->clib_time);