From dd9310389d96be94aa48f3169fd307c01168a7ec Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Tue, 13 Sep 2016 17:00:41 +0200 Subject: l2_output: reset bit after mapping is created Change-Id: I894d71b397e7451d4e596b10258933287b7e965f Signed-off-by: Damjan Marion --- vnet/vnet/l2/l2_output.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vnet') diff --git a/vnet/vnet/l2/l2_output.c b/vnet/vnet/l2/l2_output.c index 85678caf..f03796eb 100644 --- a/vnet/vnet/l2/l2_output.c +++ b/vnet/vnet/l2/l2_output.c @@ -634,6 +634,9 @@ l2output_create_output_node_mapping (vlib_main_t * vlib_main, vnet_main_t * vnet node = vec_elt_at_index (output_node_index_vec, sw_if_index); *node = next; + /* reset mapping bit, includes memory barrier */ + __sync_fetch_and_and (&hw0->flags, ~VNET_HW_INTERFACE_FLAG_L2OUTPUT_MAPPED); + return next; } -- cgit 1.2.3-korg