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/mpls/mpls_features.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vnet/mpls/mpls_features.c') diff --git a/src/vnet/mpls/mpls_features.c b/src/vnet/mpls/mpls_features.c index 0281d0c2f63..9ed56dff554 100644 --- a/src/vnet/mpls/mpls_features.c +++ b/src/vnet/mpls/mpls_features.c @@ -104,6 +104,7 @@ VNET_FEATURE_ARC_INIT (mpls_input, static) = { .arc_name = "mpls-input", .start_nodes = VNET_FEATURES ("mpls-input"), + .last_in_arc = "mpls-lookup", .arc_index_ptr = &mpls_main.input_feature_arc_index, }; @@ -123,6 +124,7 @@ VNET_FEATURE_ARC_INIT (mpls_output, static) = { .arc_name = "mpls-output", .start_nodes = VNET_FEATURES ("mpls-output", "mpls-midchain"), + .last_in_arc = "interface-output", .arc_index_ptr = &mpls_main.output_feature_arc_index, }; -- cgit 1.2.3-korg