diff options
author | Ole Troan <ot@cisco.com> | 2021-09-27 17:11:34 +0200 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-09-28 15:17:37 +0000 |
commit | 3459ece6da90627b161e2128b5926f1e58e7db65 (patch) | |
tree | 1416cae6fa48c233cfe1cf7b69d0446fef77aa50 /src/vlibmemory/memory_api.c | |
parent | 7d0e30bc642f9137188e962f3d1fe38303e674ba (diff) |
misc: vpe.api messages dynamically allocated
This is the last in the series of moving API messages from vpp/api/vpe.api to vlibmemory/memclnt.api.
This patch makes the remaining vpe.api messages dynamic, to help VAT2 binary-api command.
Moves the VAT test code to a separate file and removes the now unnused API meta files.
Type: improvement
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I01dd78eaff1d3715dff17d2643bf0f7f0089935b
Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vlibmemory/memory_api.c')
-rw-r--r-- | src/vlibmemory/memory_api.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vlibmemory/memory_api.c b/src/vlibmemory/memory_api.c index 4287bd36e5f..9db27ebd574 100644 --- a/src/vlibmemory/memory_api.c +++ b/src/vlibmemory/memory_api.c @@ -457,6 +457,14 @@ vl_mem_api_init (const char *region_name) foreach_vlib_api_msg; #undef _ +#define vl_msg_name_crc_list +#include <vlibmemory/memclnt.api.h> +#undef vl_msg_name_crc_list + +#define _(id, n, crc) vl_msg_api_add_msg_name_crc (am, #n "_" #crc, id); + foreach_vl_msg_name_crc_memclnt; +#undef _ + /* * special-case freeing of memclnt_delete messages, so we can * simply munmap pairwise / private API segments... |