diff options
author | Damjan Marion <damarion@cisco.com> | 2019-01-20 00:11:22 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-01-20 19:24:46 +0000 |
commit | 6434430fd593840e463fff0acb8f6b1676fa7bba (patch) | |
tree | e4b533efa71fef52b5b30920b5915777f2222b35 /docs/gettingstarted/developers/vnet.md | |
parent | d50e3477635e6cc2592cbf30d4fdcee842053624 (diff) |
buffers: don't init metadata, as it is already initialized
Change-Id: Ia083050389853c25b069f0f8286d50d3f4aef527
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'docs/gettingstarted/developers/vnet.md')
-rw-r--r-- | docs/gettingstarted/developers/vnet.md | 3 |
1 files changed, 0 insertions, 3 deletions
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 */ |