aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ip6_neighbor.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-01-18 20:24:44 +0100
committerFlorin Coras <florin.coras@gmail.com>2019-01-18 23:18:05 +0000
commitab9b7ec210059573c2cbe3ed961de533ba43e435 (patch)
tree943cf516742a8537607181ebad9966cee0109698 /src/vnet/ip/ip6_neighbor.c
parent64d557cd6723cc3a7ae3a0a68a52e220f8f2c7f1 (diff)
buffers: remove freelist argument from vlib_buffer_add_data
Change-Id: Idb224b807373128b78dc46f177b2d2e0ed288349 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/ip/ip6_neighbor.c')
-rwxr-xr-xsrc/vnet/ip/ip6_neighbor.c20
1 files changed, 7 insertions, 13 deletions
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;