aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2020-10-08 10:39:07 +0000
committerNeale Ranns <nranns@cisco.com>2020-10-08 10:39:07 +0000
commit0c25492eb42645f43e3fbbcf7407462429a03c65 (patch)
tree9fdcdfcb57c5dc395ddd6967065ade8e761abab1
parenteabd4249826259d2221ed339ea4bbe9e7bf7560e (diff)
l2: Fix compile error on unused next_index
Type: fix Signed-off-by: Neale Ranns <nranns@cisco.com> Change-Id: Ifc6b4c15f6055df4f403e9cd633e31f061a6d2da
-rw-r--r--src/vnet/l2/l2_input_node.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/vnet/l2/l2_input_node.c b/src/vnet/l2/l2_input_node.c
index 898e16ab347..972529ad92a 100644
--- a/src/vnet/l2/l2_input_node.c
+++ b/src/vnet/l2/l2_input_node.c
@@ -53,7 +53,6 @@ typedef struct
{
/* per-pkt trace data */
u8 dst_and_src[12];
- u32 next_index;
u32 sw_if_index;
u32 feat_mask;
} l2input_trace_t;
@@ -237,14 +236,12 @@ l2input_node_inline (vlib_main_t * vm,
int do_trace)
{
u32 n_left, *from;
- l2input_next_t next_index;
l2input_main_t *msm = &l2input_main;
vlib_buffer_t *bufs[VLIB_FRAME_SIZE], **b = bufs;
u16 nexts[VLIB_FRAME_SIZE], *next = nexts;
from = vlib_frame_vector_args (frame);
n_left = frame->n_vectors; /* number of packets to process */
- next_index = node->cached_next_index;
vlib_get_buffers (vm, from, bufs, n_left);