aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-04-19 21:47:24 +0200
committerFlorin Coras <florin.coras@gmail.com>2021-04-20 05:10:24 +0000
commit5b6f3dad9b05f21c31fe4b400e357feebd7792eb (patch)
tree541df731c43e1a55a2f2137494e8d95725ce5d03
parent6db633bde1dc5f89f7c8b434dc95dc225672b277 (diff)
vlib: remove unused code
Type: refactor Change-Id: I01dba12a7f8aa2fa6d2e4113c91dc97e638aca77 Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--src/vlib/threads.c30
-rw-r--r--src/vlib/threads.h8
2 files changed, 0 insertions, 38 deletions
diff --git a/src/vlib/threads.c b/src/vlib/threads.c
index f3a66437478..11d5a7220ad 100644
--- a/src/vlib/threads.c
+++ b/src/vlib/threads.c
@@ -1350,36 +1350,6 @@ cpu_config (vlib_main_t * vm, unformat_input_t * input)
VLIB_EARLY_CONFIG_FUNCTION (cpu_config, "cpu");
-void vnet_main_fixup (vlib_fork_fixup_t which) __attribute__ ((weak));
-void
-vnet_main_fixup (vlib_fork_fixup_t which)
-{
-}
-
-void
-vlib_worker_thread_fork_fixup (vlib_fork_fixup_t which)
-{
- vlib_global_main_t *vgm = vlib_get_global_main ();
- vlib_main_t *vm = vlib_get_main ();
-
- if (vgm->vlib_mains == 0)
- return;
-
- ASSERT (vlib_get_thread_index () == 0);
- vlib_worker_thread_barrier_sync (vm);
-
- switch (which)
- {
- case VLIB_WORKER_THREAD_FORK_FIXUP_NEW_SW_IF_INDEX:
- vnet_main_fixup (VLIB_WORKER_THREAD_FORK_FIXUP_NEW_SW_IF_INDEX);
- break;
-
- default:
- ASSERT (0);
- }
- vlib_worker_thread_barrier_release (vm);
-}
-
/*
* Enforce minimum open time to minimize packet loss due to Rx overflow,
* based on a test based heuristic that barrier should be open for at least
diff --git a/src/vlib/threads.h b/src/vlib/threads.h
index 9e83563a2e9..1da9d22234e 100644
--- a/src/vlib/threads.h
+++ b/src/vlib/threads.h
@@ -229,14 +229,6 @@ vlib_smp_unsafe_warning (void)
}
}
-typedef enum
-{
- VLIB_WORKER_THREAD_FORK_FIXUP_ILLEGAL = 0,
- VLIB_WORKER_THREAD_FORK_FIXUP_NEW_SW_IF_INDEX,
-} vlib_fork_fixup_t;
-
-void vlib_worker_thread_fork_fixup (vlib_fork_fixup_t which);
-
always_inline int
__foreach_vlib_main_helper (vlib_main_t *ii, vlib_main_t **p)
{