aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-07-07 16:20:13 +0200
committerDave Barach <openvpp@barachs.net>2016-07-07 15:28:23 +0000
commit57bf403b34bcfda628c02e583e3c9c6bd80827b4 (patch)
treee8c1bc6fc736fb4edd4e3418c520f83edd735d60
parentb93222f7e49560917a3744e2b01d6ef14fa5174d (diff)
Remove duplicate code buffer_func.h
Change-Id: I57e442b1f3486c5e8caac9d2e288869ee10f37b8 Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--vlib/vlib/buffer_funcs.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/vlib/vlib/buffer_funcs.h b/vlib/vlib/buffer_funcs.h
index 1c3ffe2a..ed96df80 100644
--- a/vlib/vlib/buffer_funcs.h
+++ b/vlib/vlib/buffer_funcs.h
@@ -491,11 +491,7 @@ vlib_buffer_chain_append_data(vlib_main_t *vm,
u32 n_buffer_bytes = vlib_buffer_free_list_buffer_size (vm, free_list_index);
ASSERT(n_buffer_bytes >= last->current_length + last->current_data);
u16 len = clib_min(data_len, n_buffer_bytes - last->current_length - last->current_data);
-#if DPDK == 1
- clib_memcpy(vlib_buffer_get_current (last) + last->current_length, data, len);
-#else
clib_memcpy(vlib_buffer_get_current (last) + last->current_length, data, len);
-#endif
vlib_buffer_chain_increase_length(first, last, len);
return len;
}