X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vnet%2Fvnet%2Fadj%2Fadj_alloc.h;fp=vnet%2Fvnet%2Fip%2Fadj_alloc.h;h=7d1a3fb3133b3a93bbf4461ec1aa6adb019b028e;hb=0bfe5d8c792abcdbcf27bfcc7b7b353fba04aee2;hp=a10146c53a5c2522e5ae66c95d38a0c6195b6be7;hpb=60537f3d83e83d0ce10a620ca99aad4eddf85f5e;p=vpp.git diff --git a/vnet/vnet/ip/adj_alloc.h b/vnet/vnet/adj/adj_alloc.h similarity index 87% rename from vnet/vnet/ip/adj_alloc.h rename to vnet/vnet/adj/adj_alloc.h index a10146c53a5..7d1a3fb3133 100644 --- a/vnet/vnet/ip/adj_alloc.h +++ b/vnet/vnet/adj/adj_alloc.h @@ -16,7 +16,8 @@ #ifndef __adj_alloc_h__ #define __adj_alloc_h__ -/* +/** + * @brief * Adjacency allocator: heap-like in that the code * will dole out contiguous chunks of n items. In the interests of * thread safety, we don't bother about coalescing free blocks of size r @@ -43,10 +44,9 @@ static inline aa_header_t * aa_header (void * v) return vec_aligned_header (v, sizeof (aa_header_t), sizeof (void *)); } -ip_adjacency_t * -aa_alloc (ip_adjacency_t * adjs, ip_adjacency_t **blockp, u32 n); -void aa_free (ip_adjacency_t * adjs, ip_adjacency_t * adj); -ip_adjacency_t * aa_bootstrap (ip_adjacency_t * adjs, u32 n); +extern ip_adjacency_t *aa_alloc(void); +extern void aa_free (ip_adjacency_t * adj); +extern void aa_bootstrap (u32 n); format_function_t format_adj_allocation;