aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-08-01 16:08:13 -0400
committerAndrew Yourtchenko <ayourtch@gmail.com>2019-08-02 14:14:03 +0000
commitc62a83daeac52c8642206ac1660e4e3e6ead77bf (patch)
tree99a4e09615a9ce28a448c9970a72d29f5866bd41 /src
parent678d64d0b28f9ea1728ff35ae162c8f22d1cb8a9 (diff)
ethernet: fix ARP feature arc definition
This patch gets rid of an ugly warning during vpp startup: "vnet_feature_init:143: WARNING: arp arc: last node is arp-disabled, but expected error-drop!" Type: fix Fixes: 1ff56f00ca015e82ef29955986e503913d1c3b86 Signed-off-by: Dave Barach <dave@barachs.net> Change-Id: I80914a3c113c090a09bd5a5131e39f036871d92e
Diffstat (limited to 'src')
-rw-r--r--src/vnet/ethernet/arp.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/vnet/ethernet/arp.c b/src/vnet/ethernet/arp.c
index 86ad9f3decf..a42cfda0d3f 100644
--- a/src/vnet/ethernet/arp.c
+++ b/src/vnet/ethernet/arp.c
@@ -1711,7 +1711,7 @@ VNET_FEATURE_ARC_INIT (arp_feat, static) =
{
.arc_name = "arp",
.start_nodes = VNET_FEATURES ("arp-input"),
- .last_in_arc = "error-drop",
+ .last_in_arc = "arp-disabled",
.arc_index_ptr = &ethernet_arp_main.feature_arc_index,
};
@@ -1730,10 +1730,17 @@ VNET_FEATURE_INIT (arp_proxy_feat_node, static) =
.runs_before = VNET_FEATURES ("arp-disabled"),
};
-VNET_FEATURE_INIT (arp_drop_feat_node, static) =
+VNET_FEATURE_INIT (arp_disabled_feat_node, static) =
{
.arc_name = "arp",
.node_name = "arp-disabled",
+ .runs_before = VNET_FEATURES ("error-drop"),
+};
+
+VNET_FEATURE_INIT (arp_drop_feat_node, static) =
+{
+ .arc_name = "arp",
+ .node_name = "error-drop",
.runs_before = 0, /* last feature */
};