From 6434430fd593840e463fff0acb8f6b1676fa7bba Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Sun, 20 Jan 2019 00:11:22 +0100 Subject: buffers: don't init metadata, as it is already initialized Change-Id: Ia083050389853c25b069f0f8286d50d3f4aef527 Signed-off-by: Damjan Marion --- docs/gettingstarted/developers/vnet.md | 3 --- 1 file changed, 3 deletions(-) (limited to 'docs/gettingstarted') diff --git a/docs/gettingstarted/developers/vnet.md b/docs/gettingstarted/developers/vnet.md index d8d9a3b4fec..79d539676b9 100644 --- a/docs/gettingstarted/developers/vnet.md +++ b/docs/gettingstarted/developers/vnet.md @@ -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 */ -- cgit 1.2.3-korg