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 /src/vnet/ipfix-export/flow_report.c | |
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 'src/vnet/ipfix-export/flow_report.c')
-rw-r--r-- | src/vnet/ipfix-export/flow_report.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vnet/ipfix-export/flow_report.c b/src/vnet/ipfix-export/flow_report.c index c9370a748cf..da91a7c3dfb 100644 --- a/src/vnet/ipfix-export/flow_report.c +++ b/src/vnet/ipfix-export/flow_report.c @@ -86,7 +86,6 @@ send_template_packet (flow_report_main_t * frm, udp_header_t *udp; vlib_main_t *vm = frm->vlib_main; flow_report_stream_t *stream; - vlib_buffer_free_list_t *fl; ASSERT (buffer_indexp); @@ -120,11 +119,9 @@ send_template_packet (flow_report_main_t * frm, 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); - ASSERT (vec_len (fr->rewrite) < VLIB_BUFFER_DEFAULT_FREE_LIST_BYTES); + ASSERT (vec_len (fr->rewrite) < VLIB_BUFFER_DATA_SIZE); clib_memcpy_fast (b0->data, fr->rewrite, vec_len (fr->rewrite)); b0->current_data = 0; |