diff options
author | Damjan Marion <damarion@cisco.com> | 2019-01-18 20:24:44 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-01-18 23:18:05 +0000 |
commit | ab9b7ec210059573c2cbe3ed961de533ba43e435 (patch) | |
tree | 943cf516742a8537607181ebad9966cee0109698 /src/vnet/srp/node.c | |
parent | 64d557cd6723cc3a7ae3a0a68a52e220f8f2c7f1 (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/srp/node.c')
-rw-r--r-- | src/vnet/srp/node.c | 8 |
1 files changed, 3 insertions, 5 deletions
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) |