buffers: don't init metadata, as it is already initialized

Change-Id: Ia083050389853c25b069f0f8286d50d3f4aef527
Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
Damjan Marion
2019-01-20 00:11:22 +01:00
committed by Florin Coras
parent d50e347763
commit 6434430fd5
18 changed files with 4 additions and 121 deletions

View File

@ -155,7 +155,6 @@ blindly cut-'n-pasted.
vlib_buffer_t *b0;
ip4_header_t *ip;
udp_header_t *udp;
vlib_buffer_free_list_t *fl;
/* Allocate a buffer */
if (vlib_buffer_alloc (vm, &bi0, 1) != 1)
@ -164,8 +163,6 @@ blindly cut-'n-pasted.
b0 = vlib_get_buffer (vm, bi0);
/* Initialize the buffer */
fl = vlib_buffer_get_free_list (vm, VLIB_BUFFER_DEFAULT_FREE_LIST_INDEX);
vlib_buffer_init_for_free_list (b0, fl);
VLIB_BUFFER_TRACE_TRAJECTORY_INIT (b0);
/* At this point b0->current_data = 0, b0->current_length = 0 */