summaryrefslogtreecommitdiffstats
path: root/src/vnet/mpls/mpls_features.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-03-16 16:12:57 -0400
committerDamjan Marion <dmarion.lists@gmail.com>2017-03-17 11:13:04 +0000
commitb85e43965ec9e23c4ae14b62f4bbfe839f75c427 (patch)
treea771ac3209193eac669652bc35b2c3cc6cfbeb47 /src/vnet/mpls/mpls_features.c
parent3983ac23bea6241c6f3d619043fea08d67be30c3 (diff)
Use the feature anchor in the MPLS input arc - it performs much better
Change-Id: I3d64ddb248478accd4d9b3124f018c9aab63a60f Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/mpls/mpls_features.c')
-rw-r--r--src/vnet/mpls/mpls_features.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/vnet/mpls/mpls_features.c b/src/vnet/mpls/mpls_features.c
index a7593c55b09..24147955153 100644
--- a/src/vnet/mpls/mpls_features.c
+++ b/src/vnet/mpls/mpls_features.c
@@ -104,18 +104,19 @@ VNET_FEATURE_ARC_INIT (mpls_input, static) =
{
.arc_name = "mpls-input",
.start_nodes = VNET_FEATURES ("mpls-input"),
+ .end_node = "mpls-lookup",
.arc_index_ptr = &mpls_main.input_feature_arc_index,
};
-VNET_FEATURE_INIT (mpls_lookup, static) = {
+VNET_FEATURE_INIT (mpls_not_enabled, static) = {
.arc_name = "mpls-input",
- .node_name = "mpls-lookup",
- .runs_before = VNET_FEATURES ("mpls-not-enabled"),
+ .node_name = "mpls-not-enabled",
+ .runs_before = VNET_FEATURES ("mpls-lookup"),
};
-VNET_FEATURE_INIT (mpls_not_enabled, static) = {
+VNET_FEATURE_INIT (mpls_lookup, static) = {
.arc_name = "mpls-input",
- .node_name = "mpls-not-enabled",
+ .node_name = "mpls-lookup",
.runs_before = VNET_FEATURES (0), /* not before any other features */
};