Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Refactor fragile msg macro W and W2 to not burry return control flow.
[vpp.git]
/
src
/
plugins
/
ioam
/
export-vxlan-gpe
/
vxlan_gpe_ioam_export_test.c
diff --git
a/src/plugins/ioam/export-vxlan-gpe/vxlan_gpe_ioam_export_test.c
b/src/plugins/ioam/export-vxlan-gpe/vxlan_gpe_ioam_export_test.c
index
a793821
..
17d31c9
100644
(file)
--- a/
src/plugins/ioam/export-vxlan-gpe/vxlan_gpe_ioam_export_test.c
+++ b/
src/plugins/ioam/export-vxlan-gpe/vxlan_gpe_ioam_export_test.c
@@
-94,6
+94,7
@@
api_vxlan_gpe_ioam_export_enable_disable (vat_main_t * vam)
unformat_input_t *i = vam->input;
int is_disable = 0;
vl_api_vxlan_gpe_ioam_export_enable_disable_t *mp;
unformat_input_t *i = vam->input;
int is_disable = 0;
vl_api_vxlan_gpe_ioam_export_enable_disable_t *mp;
+ int ret;
/* Parse args required to build the message */
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
/* Parse args required to build the message */
while (unformat_check_input (i) != UNFORMAT_END_OF_INPUT)
@@
-112,7
+113,8
@@
api_vxlan_gpe_ioam_export_enable_disable (vat_main_t * vam)
S (mp);
/* Wait for a reply... */
S (mp);
/* Wait for a reply... */
- W;
+ W (ret);
+ return ret;
}
/*
}
/*