summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
6f6f52a)
Changed vat_api_hookup(...) to <plugin-name>_api_hookup, change to
static functions. Fixed the related emacs-lisp plugin skeleton.
Change-Id: Id14f8fc3138751f469d48fecb26175e938f5f028
Signed-off-by: Dave Barach <dave@barachs.net>
#define foreach_vpe_api_msg \\
_(" plugin-name "_enable_disable, \"<intfc> [disable]\")
#define foreach_vpe_api_msg \\
_(" plugin-name "_enable_disable, \"<intfc> [disable]\")
-void vat_api_hookup (vat_main_t *vam)
+static void " plugin-name "_api_hookup (vat_main_t *vam)
{
" plugin-name "_test_main_t * sm = &" plugin-name "_test_main;
/* Hook up handlers for replies from the data plane plug-in */
{
" plugin-name "_test_main_t * sm = &" plugin-name "_test_main;
/* Hook up handlers for replies from the data plane plug-in */
sm->msg_id_base = vl_client_get_first_plugin_msg_id ((char *) name);
if (sm->msg_id_base != (u16) ~0)
sm->msg_id_base = vl_client_get_first_plugin_msg_id ((char *) name);
if (sm->msg_id_base != (u16) ~0)
+ " plugin-name "_api_hookup (vam);
#define foreach_vpe_api_msg \
_(sample_macswap_enable_disable, "<intfc> [disable]")
#define foreach_vpe_api_msg \
_(sample_macswap_enable_disable, "<intfc> [disable]")
-void vat_api_hookup (vat_main_t *vam)
+static void sample_api_hookup (vat_main_t *vam)
{
sample_test_main_t * sm = &sample_test_main;
/* Hook up handlers for replies from the data plane plug-in */
{
sample_test_main_t * sm = &sample_test_main;
/* Hook up handlers for replies from the data plane plug-in */
sm->msg_id_base = vl_client_get_first_plugin_msg_id ((char *) name);
if (sm->msg_id_base != (u16) ~0)
sm->msg_id_base = vl_client_get_first_plugin_msg_id ((char *) name);
if (sm->msg_id_base != (u16) ~0)
+ sample_api_hookup (vam);
_(sw_interface_set_dpdk_hqos_tctbl, \
"rx sw_if_index <id> entry <n> tc <n> queue <n>\n")
_(sw_interface_set_dpdk_hqos_tctbl, \
"rx sw_if_index <id> entry <n> tc <n> queue <n>\n")
-void vat_api_hookup (vat_main_t *vam)
+static void dpdk_api_hookup (vat_main_t *vam)
{
dpdk_test_main_t * dm __attribute__((unused)) = &dpdk_test_main;
/* Hook up handlers for replies from the data plane plug-in */
{
dpdk_test_main_t * dm __attribute__((unused)) = &dpdk_test_main;
/* Hook up handlers for replies from the data plane plug-in */
dm->msg_id_base = vl_client_get_first_plugin_msg_id ((char *) name);
if (dm->msg_id_base != (u16) ~0)
dm->msg_id_base = vl_client_get_first_plugin_msg_id ((char *) name);
if (dm->msg_id_base != (u16) ~0)
/* API messages we can send */
#define _(n,h) \
/* API messages we can send */
#define _(n,h) \
- hash_set_mem (vam->function_by_name, #n, api_##n); \
- clib_warning ("vam %llx add '%s' handler %llx", vam, #n, api_##n);
+ hash_set_mem (vam->function_by_name, #n, api_##n);
foreach_vpe_api_msg;
#undef _
foreach_vpe_api_msg;
#undef _