diff options
author | Damjan Marion <damarion@cisco.com> | 2016-07-07 16:20:13 +0200 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-07-07 15:28:23 +0000 |
commit | 57bf403b34bcfda628c02e583e3c9c6bd80827b4 (patch) | |
tree | e8c1bc6fc736fb4edd4e3418c520f83edd735d60 /vlib | |
parent | b93222f7e49560917a3744e2b01d6ef14fa5174d (diff) |
Remove duplicate code buffer_func.h
Change-Id: I57e442b1f3486c5e8caac9d2e288869ee10f37b8
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vlib')
-rw-r--r-- | vlib/vlib/buffer_funcs.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/vlib/vlib/buffer_funcs.h b/vlib/vlib/buffer_funcs.h index 1c3ffe2a6e8..ed96df80e31 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; } |