aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/reass
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2019-09-30 09:25:04 +0000
committerDamjan Marion <dmarion@me.com>2019-10-07 20:21:04 +0000
commit3a1ef47c39eacdb2177cedca48db543d1c514f9c (patch)
treec8ac58b21939ce30a7334a3342633cedf7e66d46 /src/vnet/ip/reass
parent81e5e529e1f9b46c6bd4f9debf4668cda48b9481 (diff)
ip: remove dead code in ip6-svr
Type: fix Fixes: de34c35fc73226943538149fae9dbc5cfbdc6e75 Change-Id: Ia714c2e46627864091d3f686dbced4cdd9c1a773 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/vnet/ip/reass')
-rw-r--r--src/vnet/ip/reass/ip6_sv_reass.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/vnet/ip/reass/ip6_sv_reass.c b/src/vnet/ip/reass/ip6_sv_reass.c
index 0f5e0e29975..a7f360eb583 100644
--- a/src/vnet/ip/reass/ip6_sv_reass.c
+++ b/src/vnet/ip/reass/ip6_sv_reass.c
@@ -979,7 +979,6 @@ ip6_sv_reass_walk_expired (vlib_main_t * vm,
uword thread_index = 0;
int index;
const uword nthreads = vlib_num_workers () + 1;
- u32 *vec_icmp_bi = NULL;
for (thread_index = 0; thread_index < nthreads; ++thread_index)
{
ip6_sv_reass_per_thread_t *rt = &rm->per_thread_data[thread_index];
@@ -1007,33 +1006,7 @@ ip6_sv_reass_walk_expired (vlib_main_t * vm,
clib_spinlock_unlock (&rt->lock);
}
- while (vec_len (vec_icmp_bi) > 0)
- {
- vlib_frame_t *f =
- vlib_get_frame_to_node (vm, rm->ip6_icmp_error_idx);
- u32 *to_next = vlib_frame_vector_args (f);
- u32 n_left_to_next = VLIB_FRAME_SIZE - f->n_vectors;
- int trace_frame = 0;
- while (vec_len (vec_icmp_bi) > 0 && n_left_to_next > 0)
- {
- u32 bi = vec_pop (vec_icmp_bi);
- vlib_buffer_t *b = vlib_get_buffer (vm, bi);
- if (PREDICT_FALSE (b->flags & VLIB_BUFFER_IS_TRACED))
- {
- trace_frame = 1;
- }
- b->error = node->errors[IP6_ERROR_REASS_TIMEOUT];
- to_next[0] = bi;
- ++f->n_vectors;
- to_next += 1;
- n_left_to_next -= 1;
- }
- f->frame_flags |= (trace_frame * VLIB_FRAME_TRACE);
- vlib_put_frame_to_node (vm, rm->ip6_icmp_error_idx, f);
- }
-
vec_free (pool_indexes_to_free);
- vec_free (vec_icmp_bi);
if (event_data)
{
_vec_len (event_data) = 0;