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/ip | |
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/ip')
-rwxr-xr-x | src/vnet/ip/ip6_neighbor.c | 3 | ||||
-rw-r--r-- | src/vnet/ip/ip_frag.c | 3 | ||||
-rwxr-xr-x | src/vnet/ip/ping.c | 3 |
3 files changed, 0 insertions, 9 deletions
diff --git a/src/vnet/ip/ip6_neighbor.c b/src/vnet/ip/ip6_neighbor.c index d501832bed2..b4b6888a934 100755 --- a/src/vnet/ip/ip6_neighbor.c +++ b/src/vnet/ip/ip6_neighbor.c @@ -2307,7 +2307,6 @@ create_buffer_for_rs (vlib_main_t * vm, ip6_radv_t * radv_info) { u32 bi0; vlib_buffer_t *p0; - vlib_buffer_free_list_t *fl; icmp6_router_solicitation_header_t *rh; u16 payload_length; int bogus_length; @@ -2322,8 +2321,6 @@ create_buffer_for_rs (vlib_main_t * vm, ip6_radv_t * radv_info) } p0 = vlib_get_buffer (vm, bi0); - fl = vlib_buffer_get_free_list (vm, VLIB_BUFFER_DEFAULT_FREE_LIST_INDEX); - vlib_buffer_init_for_free_list (p0, fl); VLIB_BUFFER_TRACE_TRAJECTORY_INIT (p0); p0->flags |= VNET_BUFFER_F_LOCALLY_ORIGINATED; diff --git a/src/vnet/ip/ip_frag.c b/src/vnet/ip/ip_frag.c index de0998779a8..de297767a70 100644 --- a/src/vnet/ip/ip_frag.c +++ b/src/vnet/ip/ip_frag.c @@ -78,9 +78,6 @@ frag_buffer_alloc (vlib_buffer_t * org_b, u32 * bi) return 0; vlib_buffer_t *b = vlib_get_buffer (vm, *bi); - vlib_buffer_free_list_t *fl = - vlib_buffer_get_free_list (vm, VLIB_BUFFER_DEFAULT_FREE_LIST_INDEX); - vlib_buffer_init_for_free_list (b, fl); VLIB_BUFFER_TRACE_TRAJECTORY_INIT (b); vlib_buffer_copy_trace_flag (vm, org_b, *bi); diff --git a/src/vnet/ip/ping.c b/src/vnet/ip/ping.c index 92a92e50201..890285f2606 100755 --- a/src/vnet/ip/ping.c +++ b/src/vnet/ip/ping.c @@ -745,15 +745,12 @@ send_ip46_ping (vlib_main_t * vm, u32 bi0 = 0; int n_buf0 = 0; vlib_buffer_t *b0; - vlib_buffer_free_list_t *fl; n_buf0 = vlib_buffer_alloc (vm, &bi0, 1); if (n_buf0 < 1) ERROR_OUT (SEND_PING_ALLOC_FAIL); b0 = vlib_get_buffer (vm, bi0); - 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); /* |