diff options
author | Damjan Marion <damarion@cisco.com> | 2022-03-21 15:06:57 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-03-21 17:46:23 +0000 |
commit | 8a96c6d0e71428df0ea98e52c5e8f8e1318adc0d (patch) | |
tree | 7a82b0b6a2dc2b35d7598dae4629a54ed071af3f /src/examples | |
parent | d23c55fa56a0f564be290f9f301094fd5ba45361 (diff) |
vppinfra: use clib_mem_alloc
Type: refactor
Change-Id: I26a2a410f8f4070d10696f796d5887842cad3916
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/srv6-sample-localsid/srv6_localsid_sample.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/examples/srv6-sample-localsid/srv6_localsid_sample.c b/src/examples/srv6-sample-localsid/srv6_localsid_sample.c index 8ea3218e412..5b33ed6d091 100644 --- a/src/examples/srv6-sample-localsid/srv6_localsid_sample.c +++ b/src/examples/srv6-sample-localsid/srv6_localsid_sample.c @@ -91,8 +91,7 @@ unformat_srv6_localsid_sample (unformat_input_t * input, va_list * args) if (unformat (input, "new_srv6_localsid %u", &table_id)) { /* Allocate a portion of memory */ - ls_mem = clib_mem_alloc_aligned_at_offset ( - sizeof(srv6_localsid_sample_per_sid_memory_t), 0, 0, 1); + ls_mem = clib_mem_alloc (sizeof (srv6_localsid_sample_per_sid_memory_t)); /* Set to zero the memory */ clib_memset (ls_mem, 0, sizeof(srv6_localsid_sample_per_sid_memory_t)); |