aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/arp
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2020-09-15 10:53:34 +0200
committerDave Barach <openvpp@barachs.net>2020-09-18 15:24:52 +0000
commit3d81267945a732753b0dbd0a83a50ab0625b448a (patch)
treec00b5e6a5e798cbb29c9c450eb37d43f9303cb85 /src/vnet/arp
parent34262d4d56295b0872ad4e9a4a4791953f3fa444 (diff)
vat: add infrastructure to align vnet test code and plugin test code
Split vat/api_format.c also for VNET features. Use auto-generated VAT test code and support dynamic message ID allocation as for plugins. The arp and geneve features as Guinea pigs. Type: improvement Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I461591496766bdf10c5f950fd30f1a0ae05909da Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'src/vnet/arp')
-rw-r--r--src/vnet/arp/arp_test.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vnet/arp/arp_test.c b/src/vnet/arp/arp_test.c
index 861d0739406..29eeeb59d0f 100644
--- a/src/vnet/arp/arp_test.c
+++ b/src/vnet/arp/arp_test.c
@@ -41,8 +41,8 @@ arp_test_main_t arp_test_main;
uword unformat_sw_if_index (unformat_input_t * input, va_list * args);
/* Declare message IDs */
-#include <arp/arp.api_enum.h>
-#include <arp/arp.api_types.h>
+#include <vnet/arp/arp.api_enum.h>
+#include <vnet/arp/arp.api_types.h>
#include <vpp/api/vpe.api_types.h>
static int
@@ -156,8 +156,9 @@ api_proxy_arp_intfc_enable_disable (vat_main_t * vam)
return ret;
}
-#include <arp/arp.api_test.c>
+#include <vnet/arp/arp.api_test.c>
+VAT_REGISTER_FEATURE_FUNCTION (vat_arp_plugin_register);
/*
* fd.io coding-style-patch-verification: ON