From a25def7807fb46bd48462be3ec5c598fc79e2a13 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Mon, 26 Nov 2018 11:04:45 -0500 Subject: Add a feature arc consistency check Verify that last node in the computed feature order matches reality. This check doesn't make sense in all cases, so we skip it if the newly-added vnet_feature_arc_registration_t ".last_in_arc" datum is a NULL pointer. Change-Id: Ia99c3e2b2da2e4780a7d5bc71670c5742a66fef2 Signed-off-by: Dave Barach --- src/vnet/ethernet/init.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vnet/ethernet/init.c') diff --git a/src/vnet/ethernet/init.c b/src/vnet/ethernet/init.c index a4689593ad7..5d10c60fd5f 100644 --- a/src/vnet/ethernet/init.c +++ b/src/vnet/ethernet/init.c @@ -66,6 +66,7 @@ add_type (ethernet_main_t * em, ethernet_type_t type, char *type_name) VNET_FEATURE_ARC_INIT (ethernet_output, static) = { .arc_name = "ethernet-output", + .last_in_arc = "error-drop", .start_nodes = VNET_FEATURES ("adj-l2-midchain"), .arc_index_ptr = ðernet_main.output_feature_arc_index, }; -- cgit 1.2.3-korg