summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2019-03-11 05:54:56 -0700
committerFilip Tehlar <ftehlar@cisco.com>2019-03-11 05:57:26 -0700
commitf3a5a9327bfe94968b25f44cc184e1f2518323e4 (patch)
tree0e4f5d89e7fc81cafc3a904ece53d6f471c86d13
parent0c656748ad729267314acbf05427de8dc2dfca95 (diff)
disable multiarch for error-drop
this is a workaround that avoids building/linking other archs for error-node. Combination error-node + avx512 arch triggers a crash in pg during test run. Change-Id: I6ed39fdf0a58f82d951082b1cf91ab2a57d8108c Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
-rw-r--r--src/vnet/interface_output.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vnet/interface_output.c b/src/vnet/interface_output.c
index 2f62023aa4e..65ae6cba075 100644
--- a/src/vnet/interface_output.c
+++ b/src/vnet/interface_output.c
@@ -1398,8 +1398,9 @@ vnet_pcap_drop_trace_filter_add_del (u32 error_index, int is_add)
}
#endif /* CLIB_MARCH_VARIANT */
-VLIB_NODE_FN (drop_buffers) (vlib_main_t * vm,
- vlib_node_runtime_t * node, vlib_frame_t * frame)
+static uword
+drop_buffers_fn (vlib_main_t * vm, vlib_node_runtime_t * node,
+ vlib_frame_t * frame)
{
vnet_interface_main_t *im = &vnet_get_main ()->interface_main;
@@ -1417,6 +1418,7 @@ VLIB_NODE_FN (punt_buffers) (vlib_main_t * vm,
/* *INDENT-OFF* */
VLIB_REGISTER_NODE (drop_buffers) = {
+ .function = drop_buffers_fn,
.name = "error-drop",
.flags = VLIB_NODE_FLAG_IS_DROP,
.vector_size = sizeof (u32),