Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
LISP-GPE: return index of newly created fwd entry, VPP-868
[vpp.git]
/
src
/
vnet
/
lisp-gpe
/
lisp_gpe_api.c
diff --git
a/src/vnet/lisp-gpe/lisp_gpe_api.c
b/src/vnet/lisp-gpe/lisp_gpe_api.c
index
e2c055b
..
ab081b3
100644
(file)
--- a/
src/vnet/lisp-gpe/lisp_gpe_api.c
+++ b/
src/vnet/lisp-gpe/lisp_gpe_api.c
@@
-358,7
+358,12
@@
vl_api_gpe_add_del_fwd_entry_t_handler (vl_api_gpe_add_del_fwd_entry_t * mp)
rv = vnet_lisp_gpe_add_del_fwd_entry (a, 0);
vec_free (pairs);
send_reply:
rv = vnet_lisp_gpe_add_del_fwd_entry (a, 0);
vec_free (pairs);
send_reply:
- REPLY_MACRO (VL_API_GPE_ADD_DEL_FWD_ENTRY_REPLY);
+ /* *INDENT-OFF* */
+ REPLY_MACRO2 (VL_API_GPE_ADD_DEL_FWD_ENTRY_REPLY,
+ {
+ rmp->fwd_entry_index = clib_host_to_net_u32 (a->fwd_entry_index);
+ });
+ /* *INDENT-ON* */
}
static void
}
static void