aboutsummaryrefslogtreecommitdiffstats
path: root/vnet
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-01-27 16:17:31 +0100
committerGerrit Code Review <gerrit@fd.io>2016-01-27 18:09:05 +0000
commitf46b7e6d7805ab0af8834a68780bd9972ef385fd (patch)
tree5d7a6ac048ad31581300c2e2743745f22a8c7edf /vnet
parentaa67d61f01ee5e1ae6968f4fe84f9efc0fb694be (diff)
Fix l2output error-drop next node index
Change-Id: I8a79f683350b77bd56b44e37a099293033aadd15 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vnet')
-rw-r--r--vnet/vnet/l2/l2_output.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/vnet/vnet/l2/l2_output.c b/vnet/vnet/l2/l2_output.c
index 31287645b14..31fe2d98243 100644
--- a/vnet/vnet/l2/l2_output.c
+++ b/vnet/vnet/l2/l2_output.c
@@ -485,17 +485,15 @@ u32 l2output_create_output_node_mapping (
if (cpu_number)
{
u32 oldflags;
- vlib_node_t *error_drop_node;
- error_drop_node = vlib_get_node_by_name (vlib_main, (u8 *) "error-drop");
oldflags = __sync_fetch_and_or(&hw0->flags,
VNET_HW_INTERFACE_FLAG_L2OUTPUT_MAPPED);
if ((oldflags & VNET_HW_INTERFACE_FLAG_L2OUTPUT_MAPPED) )
- return error_drop_node->index;
+ return L2OUTPUT_NEXT_DROP;
output_node_mapping_send_rpc (node_index, sw_if_index);
- return error_drop_node->index;
+ return L2OUTPUT_NEXT_DROP;
}
#endif