aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet')
-rwxr-xr-xsrc/vnet/ip/ip6_neighbor.c20
-rw-r--r--src/vnet/srp/node.c8
2 files changed, 10 insertions, 18 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;
diff --git a/src/vnet/srp/node.c b/src/vnet/srp/node.c
index cf9bd31c513..a852f61ab4d 100644
--- a/src/vnet/srp/node.c
+++ b/src/vnet/srp/node.c
@@ -333,8 +333,7 @@ srp_topology_packet (vlib_main_t * vm, u32 sw_if_index, u8 ** contents)
u32 * to_next;
u32 bi = ~0;
- if (vlib_buffer_add_data (vm, VLIB_BUFFER_DEFAULT_FREE_LIST_INDEX,
- /* buffer to append to */ &bi,
+ if (vlib_buffer_add_data (vm, /* buffer to append to */ &bi,
*contents, vec_len (*contents)))
{
/* complete or partial buffer allocation failure */
@@ -628,9 +627,8 @@ static void tx_ips_packet (srp_interface_t * si,
= ~ip_csum_fold (ip_incremental_checksum (0, &i->control,
sizeof (i[0]) - STRUCT_OFFSET_OF (srp_ips_header_t, control)));
- if (vlib_buffer_add_data (vm, VLIB_BUFFER_DEFAULT_FREE_LIST_INDEX,
- /* buffer to append to */ &bi,
- i, sizeof (i[0])))
+ if (vlib_buffer_add_data (vm, /* buffer to append to */ &bi, i,
+ sizeof (i[0])))
{
/* complete or partial allocation failure */
if (bi != ~0)