From ab9b7ec210059573c2cbe3ed961de533ba43e435 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Fri, 18 Jan 2019 20:24:44 +0100 Subject: buffers: remove freelist argument from vlib_buffer_add_data Change-Id: Idb224b807373128b78dc46f177b2d2e0ed288349 Signed-off-by: Damjan Marion --- src/vnet/ip/ip6_neighbor.c | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'src/vnet/ip') diff --git a/src/vnet/ip/ip6_neighbor.c b/src/vnet/ip/ip6_neighbor.c index 3acfb1a4897..d501832bed2 100755 --- a/src/vnet/ip/ip6_neighbor.c +++ b/src/vnet/ip/ip6_neighbor.c @@ -1691,8 +1691,7 @@ icmp6_router_solicitation (vlib_main_t * vm, sizeof (icmp6_router_advertisement_header_t); if (vlib_buffer_add_data - (vm, vlib_buffer_get_free_list_index - (p0), &bi0, (void *) &rh, + (vm, &bi0, (void *) &rh, sizeof (icmp6_router_advertisement_header_t))) { /* buffer allocation failed, drop the pkt */ @@ -1714,8 +1713,7 @@ icmp6_router_solicitation (vlib_main_t * vm, eth_if0->address, 6); if (vlib_buffer_add_data - (vm, vlib_buffer_get_free_list_index - (p0), &bi0, (void *) &h, + (vm, &bi0, (void *) &h, sizeof (icmp6_neighbor_discovery_ethernet_link_layer_address_option_t))) { @@ -1743,8 +1741,7 @@ icmp6_router_solicitation (vlib_main_t * vm, sizeof (icmp6_neighbor_discovery_mtu_option_t); if (vlib_buffer_add_data - (vm, vlib_buffer_get_free_list_index - (p0), &bi0, (void *) &h, + (vm, &bi0, (void *) &h, sizeof (icmp6_neighbor_discovery_mtu_option_t))) { @@ -1800,10 +1797,8 @@ icmp6_router_solicitation (vlib_main_t * vm, payload_length += sizeof( icmp6_neighbor_discovery_prefix_information_option_t); if (vlib_buffer_add_data - (vm, vlib_buffer_get_free_list_index (p0), - &bi0, - (void *)&h, - sizeof(icmp6_neighbor_discovery_prefix_information_option_t))) + (vm, &bi0, (void *)&h, + sizeof(icmp6_neighbor_discovery_prefix_information_option_t))) { error0 = ICMP6_ERROR_ALLOC_FAILURE; goto drop0; @@ -2846,9 +2841,8 @@ ip6_neighbor_send_mldpv2_report (u32 sw_if_index) num_addr_records++; - if(vlib_buffer_add_data - (vm, vlib_buffer_get_free_list_index (b0), &bo0, - (void *)&rr, sizeof(icmp6_multicast_address_record_t))) + if(vlib_buffer_add_data (vm, &bo0, (void *)&rr, + sizeof(icmp6_multicast_address_record_t))) { vlib_buffer_free (vm, &bo0, 1); goto alloc_fail; -- cgit 1.2.3-korg