summaryrefslogtreecommitdiffstats
path: root/src/vnet/l2/l2_flood.c
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-09-12 06:53:03 -0400
committerDamjan Marion <dmarion@me.com>2018-09-13 15:35:16 +0000
commitc25eb4547a4d25c0808a33e2a79fb7485b5bfe20 (patch)
tree9fed85b5bebdec24a9d49adc567b32598928d506 /src/vnet/l2/l2_flood.c
parent008eef3073e07de3e5802215ffb213fbc198814b (diff)
L2-FWD: use vlib_buffer_enqueue_to_next and cache prefetch fix
before: l2-fwd ... 1.72e1 256.00 after: l2-fwd ... 1.49e1 256.00 Change-Id: I24b29b799435776abc6e60df0dd0301b74aac99b Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/l2/l2_flood.c')
-rw-r--r--src/vnet/l2/l2_flood.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vnet/l2/l2_flood.c b/src/vnet/l2/l2_flood.c
index 668301731a9..5d9873e0304 100644
--- a/src/vnet/l2/l2_flood.c
+++ b/src/vnet/l2/l2_flood.c
@@ -155,11 +155,12 @@ l2flood_node_fn (vlib_main_t * vm,
while (n_left_from > 0 && n_left_to_next > 0)
{
- u32 next0, sw_if_index0, bi0, ci0;
u16 n_clones, n_cloned, clone0;
l2_bridge_domain_t *bd_config;
+ u32 sw_if_index0, bi0, ci0;
l2_flood_member_t *member;
vlib_buffer_t *b0, *c0;
+ u16 next0;
u8 in_shg;
i32 mi;